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.


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 4 + 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. HexUUIDToNum_cf (_uuid)
  (Sat, Jun 16, 1:55pm)
2. httpResponseCode ( responseHeaders )
  (Tue, Jun 12, 10:40pm)
3. FindDuplicateCharacters ( string )
  (Fri, Jun 08, 5:01pm)
4. FieldRepetitionLast ( field ; maxRepetition )
  (Wed, Jun 06, 6:05pm)
5. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp )
  (Mon, May 28, 8:23am)
6. JSONArrayLength ( JSONArrayStr )
  (Fri, May 25, 7:46am)
7. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd)
  (Sat, May 19, 3:55am)
8. @JSONFormatElements ( json )
  (Tue, May 15, 3:31am)

RSS Feed of Custom Functions