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

GoogleMapsByAddress ( Street ; Suburb ; State ; PostCode ; Zoom ; WebViewerObjectName )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.8  (24 votes)
  Discuss this Custom Function

Benjamin Hadfield, Knowledge & information Management (KiM)
http://www.kim.net.au

Google Maps Address from fields in iframe

Sample Input:
GoogleMapsbyAddress ( Project::Delivery Address ; Project::Delivery Suburb ; Project::Delivery State ; Project::Delivery PostCode ; 15 ; "WV_MyWebViewerObject" )
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='654' height='552' frameborder='0' scrolling='15' marginheight='0' marginwidth='0' src='http://local.google.com/maps?q=Unit 12 / 6-8 Enterprise Street,MOLENDINAR,QLD,4214&z=15&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:

i Cant take full credit for this CF as i worked off the

GoogleMapsByCoords Function also posted on this site by Yvonne Dutreaux

Gives you an embedded google map in iFrame to suit 2014 google maps change in api

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:

5 most recent comments | Show all 12 comments

Hi Benjamin,

I love your CF - it's exactly what I was hoping to find to work around Google maps' new iframe requirement for embedded maps.

Your CF and your .fmp12 file DO work in Filemaker version 12. The interesting thing is that it also works when I use it in Filemaker version 13, but the Webviewer doesn't render the html as anything other than a grey-filled iframe... I believe it's about FM13 and not your code. But I haven't found a solution around this problem...

Any thoughts?

Patrick

Patrick Hentsch-Cowles, Dallas, Texas, USA
March 28, 2014 9:44am

The file I created \Version 11 worked as I stated.

The file I created in Version 13 failed, the results was confirmed by Patrick.

Your own file also failed in version 13.

My setup is

Macintosh OS Maverick and Safari is my default browser.

I also created a new file in version 12, and it gave the same result.
I redownloaded your file, and opened in version 12. The map drew and then turned to gray as if I had opened it in version 13.

I hope this helps.

Lee Smith, Woodland
March 28, 2014 4:29pm

Not sure what to say other than I created it in fmpa13
Haven't tried it in 12
Also works fine for me in fmpa11

Benjamin Hadfield, Sydney NSW
March 29, 2014 8:42am

Has anyone else experienced the problem of getting the map cluttered by the sudden appearance of all the default login info from Google after the API change? I used to have a clean view of just a central marker based on a slightly modified version of the code above but after the API change, I get: 1) a login box/banner, 2) a "Show in Google Maps" box, 3) a "Log in to see more" text, 4) a hybrid map instead of the satellite one that the code specifies, 5) WGS84 coordinates next to the marker. The code runs on FMPA 11 on a FMPSA 11.

Have been trying to find parameter change documentation at Google but without success, have also tried using the code with a key but still get all the login stuff.

Any help/suggestions would be greatly appreciated. Cheers, Lars

Lars Pettersson, Lund Sweden
April 14, 2014 2:41am

Pasting your example into a web object results in the flash of a map and then a gray rectangle that does not refresh or otherwise show any content

David, Sacramento
August 17, 2014 3:18pm

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 7 + 7 =
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