FMStudio Google Maps Module

From FMWebschool Reference

Jump to: navigation, search

The FMStudio Google Maps Module allows FMStudio users to create powerful dynamic maps from FMStudio recordsets that display addresses and coordinates. Features such as custom icons and preset zoom settings are easily accessible using this module.

Contents

Version History

Version 1.0.0 (December 12, 2007)

  • Google Maps module released with support for both addresses and coordinates

Version 2.0.0 (October 15, 2009)

  • Added FMStudio Pro compatibility to the module

Version 2.1.0 (February 23, 2010)

  • Fixed a problem when some address points would return address not found errors at random. This had to do with timing of the requests - now requests to Google are spaced out 0.25 seconds apart. The points will be a bit slower to appear but things should be more consistent now.

Quick Tutorial

  • In a new FMStudio PHP page insert a recordset to find multiple records
  • Select a region on the page where you want to display the map
  • Select "Server Behaviors > Modules > Google Maps > FMStudio Google Map"
  • Select your map settings, making sure to give it a name with no spaces or special characters
  • Next add a Google Map Address from the "Server Behaviors > Modules > Google Maps" menu
  • For the address select your dynamic bindings from the recordset in the address fields
  • Once you are done setting up the address, select its icon in design view and apply a repeating region around it
  • It will now have all the addresses from your repeating region mapped onto the dynamic Google Map

User Guide

1. Positioning within the Page

  • The Google Maps module must be applied somewhere within the visible area of your design view
  • The "FMStudio Google Map" server behavior creates and sets up a map view port with predefined settings but no actual locations

2. Adding Coordinate Locations

  • If you know the exact coordinates of your location marker, it is much more efficient to use coordinates then address lookups
  • To add a coordinate location, find the server behavior under Modules > Google Maps
  • In the server behavior settings you are asked for the map created in step 1 and then two coordinates that can be dynamic

3. Adding Address Locations

  • To add an address location, find the server behavior under Modules > Google Maps
  • In the server behavior settings you are asked for the map created in step 1 and then the address details

4. About Default Locations

  • If you select a location to be made default, the map will scroll towards it right after it is added
  • Multiple default locations will be scrolled through until the last one is reached, an effect that will be visible to the user when the page loads

External Links

Personal tools