Jump to content
Sign in to follow this  
pacific707

google map embed links in webviewer

Recommended Posts

I want to use the google maps feature with webviewer but don't want all the extra boarders and crap google maps adds. I would love to have just what is shown with an embed link. Just the map at a custom size and zoom level I choose.

I have been able to get the embed link to work but can't figure a calculation to make it generate from some address fields.

Share this post


Link to post
Share on other sites

Not sure if you still need help with this, but there is a solution that Mike over at the Proof group came up with that helped me. You can read about it here:

http://www.proofgroup.com/blog/2009/feb/google_mapping_single_address_cross_platform

The trick is to pass the address info from FileMaker to a file on a web server you control via php $_GET, which is usually used for forms. You'll need an API key generated specifically for that host url for it to work.

It's pretty straight forward, and Mike's script will work for you with only a little bit of customization.

To add a zoom control, just add this function call to the php file he provides.

map.addControl(new GSmallMapControl());

Hope this helps.

Share this post


Link to post
Share on other sites

In FM10 (possibly earlier versions) you can pass custom HTML code to the web viewer by using the MIME type "data:text/html" followed by a string of your HTML code. The string can include fields from your solution (i.e. address fields) and other calculations (If, Case, etc.).

Just remember that it's all a string, so if you need to include quotes in your string they need to be preceded by a back slash ().

A good starting reference on how to do this technique can be found here

I hope this helps.

Share this post


Link to post
Share on other sites

I posted something about that here.

Share this post


Link to post
Share on other sites

Awesome! After playing with my map solution for a while, I began to wonder how to prevent the location bubble from appearing AND how to automatically set the zoom level!

Thanks!

Edited by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.