Software Venture Consulting

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

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


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:  

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

Yvonne Dutreaux, self
none

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='http://local.google.com/maps?q=37.66395,-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

Description:

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 BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

The correct spelling is Latitude, not Latitute.

Emilio Faro, Vigo, Spain
November 12, 2009 11:25pm

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?

Thanks

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

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

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

Your Name:
City/Location:
Comment:
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 + 3 =
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. decFromHex ( hexValue )
  (Mon, Oct 16, 12:34pm)
2. MonthYearList ( startmonth ; startyear ; numbermonth ; short )
  (Mon, Oct 16, 3:38am)
3. ErrorDescription ( errorNumber )
  (Wed, Sep 27, 2:51am)
4. decodeEntities (text)
  (Wed, Sep 27, 1:22am)
5. HexidecimalToNumber ( HexidecimalValue ; counter )
  (Mon, Sep 25, 12:39pm)
6. FixedFieldConverter ( Fieldname ; f1 ; f2 ; f3 ; f4 ; f5 ; f6 ; f7 ; f8 ; f9 ; f10 ; f11 ; f12 ; f13 ; f14 ; f15 ; f16 ; f17 ; f18 ; f1
  (Fri, Sep 15, 12:34pm)
7. ShannonEntropy ( text )
  (Thu, Sep 07, 5:59am)
8. LetterCount ( text ; summary )
  (Thu, Sep 07, 5:53am)

RSS Feed of Custom Functions