Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages

Shopping Cart
Shopping Cart


Free Newsletter


Privacy Policy

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.


 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

GoogleMapsbyCoords ( Latitute ; Longitude ; Zoom ; WebViewerObjectName )

Rate this function:  

  Average rating: 4.3  (39 votes)
  Discuss this Custom Function

Yvonne Dutreaux, self

Shows embedded Google Map in a webviewer by Lat/Lon coordinates

Sample Input:
GoogleMapsbyCoords ( 37.66395 ; -122.4181 ; 12 ; "web" )
Sample Output:
data:text/html, <style type='text/css'> html,body { overflow:hidden; } </style> <html> <head> <title>NavText</title> </head> <body bgcolor='#FFFFFF' TopMargin='0' style='border:0'> <iframe width='-10' height='-25' frameborder='0' scrolling='15' marginheight='0' marginwidth='0' src=',-122.4181&z=12&li=37.66395,-122.4181&output=embed&iwloc=0'> </iframe> </body> </html>

 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed


Jeremy Upton uploaded a CF for easy formatting of code for a web viewer showing an embedded Google map that used address information. Here is a modified variation that uses latitude and longitude information if you have it.

I also added a parameter so you can name the web viewer object anything you wish and pass it via the custom function.

Update to add code to center the maps on the coordinates in case the coordinates do not correspond to an address. otherwise the map will center on the nearest city or county seat, which is not always helpful. A green arrow will show your point, the A marker will show the nearest address, city center or county seat, whichever google can determine first.

Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it


5 most recent comments | Show all 6 comments

Can this be applied to multiple Lat/Long locations?

Gary Wallis, Milwuakee
December 07, 2009 5:13am

Hy there:

I'm trying this function and it very usefull.
I'd like to increase the latitude in amounts of 0,0001 in the latitude (for exemple), within a script.
But when i just add that amout in the latitude with a script, the value changed from 37.66395 to 3766395,00001, not the way I intend, because of the point (and i need to use ,). How can i avoid this?


Nuno Pedrosa, Caldas da Rainha
February 08, 2010 11:57am

Hi Yvonne!! This function it´s great!

Sorry for my english, that´s not so good than your function.

I´m a Filemaker Developer, and I need to print in PDF the map generated with your Fn, but I can´t do it...

I understood that I need to convert the map in an image... ¿Can you help me?

Thank you a lot,


Jorge Mc Loughlin, Mexico City
June 09, 2013 11:57am

Do you have to comment out all the quotes from <script type= ?

Shaun, LA
September 18, 2015 11:24am

I was looking for this simple solution for so long :)

João Coutinho, Trofa, Portugal
January 10, 2018 11:10am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 5 + 6 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. ExcludeValues(MyList ; Out)
  (Wed, Mar 21, 7:23am)
2. PreviousMonthEndDate ( myDate )
  (Wed, Mar 07, 3:35am)
3. PreviousMonthName (myDate)
  (Wed, Mar 07, 3:33am)
4. FmTableFields ( tableName ; fieldsInclude ; fieldsExclude ; classExclude ; typeExclude ; prefixExclude )
  (Fri, Mar 02, 6:32am)
5. sql.getTable ( fullyQualifiedFieldObject )
  (Thu, Feb 22, 8:36am)
6. sql.getField ( fullyQualifiedFieldObject )
  (Thu, Feb 22, 8:34am)
7. FilterOut ( ListA ; ListB )
  (Wed, Feb 21, 6:11pm)
8. Char0 ( )
  (Sun, Feb 18, 2:35am)

RSS Feed of Custom Functions