Brian Dunning's FileMaker Custom Functions

GoogleMap ( Zoom ; Width ; Height ; Mcolor ; Msize ; p1 ; p2 )

Shows clean google map in webviewer

  Average rating: 4.3 (4 votes) Log in to vote

Dick Impens   Dick Impens - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
Let ( [
$a1 = Substitute ( Contacts::Addres1 ; " " ; "+" ) ;
$a2 = Contacts::Town ;
$width = GetAsNumber ( GetLayoutObjectAttribute ( "GMap" ; "width") );
$height = GetAsNumber ( GetLayoutObjectAttribute ( "GMap" ; "height") );
$color = "red";
$markersize = "small"
GoogleMap (GMapZoom; $width; $height; $color; $markersize; $a1; $a2)
  Sample output:|size:small|StreetName,Townname&sensor=false

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function creates a 'clean' google map, no route, no satellite, no light mode, no controls. Zoom functions can be created. Most of this code is done by Tom Gellar.

The map will automatically adjust to the window size (Object name of webviewer in this function must be "GMap" so the width and height can be calculated. It is not perfect yet, as google maps API retrain proportions.

I've created two buttons to zoom-in and zoom-out. Values are stored in the numeric field GMapZoom. Default of this field is set to 14 (auto enter). Set this to the size you need to be default.



Omelyan Burtnyk   Omelyan Burtnyk, Go To Logistics
Mar 13, 2017
Thank you Dick
Dick Impens   Dick Impens, MaltaCode
Mar 14, 2017
You're welcome, Omelyan :)

Log in to post comments.


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

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: