Satellite Mode for FileMaker Maps

A customer recently wanted ProMaps to default to Satellite mode, and since customers have access to the map’s html, this was a pretty easy mod to make. Step by step instructions follow, but here’s what it looks like:

(You can toggle the 3D display and switch back to an overhead display by clicking the grid icon in the lower right.)

Making satellite mode the default in your FileMaker map

1. To make this change in your copy of ProMaps, first backup your file. Really.

2. ProMaps stores its settings in a single FileMaker record on the MapSettings table. The HTML template is stored in the MapDataTemplate field. To update the MapDataTemplate, you’ll have to add the MapDataTemplate field to one of the Settings layouts. I chose the General Settings layout. Once you can get at this MapDataTemplate field, enter browse mode and select all the contents of the field, copy them, and paste all that HTML into a text editor of your choice.

3. In your text editor, search for the following line:

mapTypeId: google.maps.MapTypeId.ROADMAP,

Change that line to the following:

mapTypeId: google.maps.MapTypeId.SATELLITE,

4. Once you’ve made that change, copy the contents of your text editor and paste the entirety back into the MapDataTemplate field in your settings layout and commit the record. After making this change, you can run the “Upon Opening ProMaps” script and your map will now default to satellite view. =)

5. If the file is cloned, this record will get deleted, so we needed a way to restore the default settings automatically. To do this, you’ll find a hidden layout called “ProMaps Template”. You’ll want to update the layout in order to ensure these settings are carried over if you ever clone the file in the future.

In order to update the layout, navigate to the ProMaps Template layout in layout mode. Then replace the contents of the left-most field with your text editor contents and save the layout. Don’t add a new object to the layout: select the text in the object already there and replace the text with the new HTML you’ve edited.

With these changes, you should be all set to have ProMaps open in satellite mode by default, and any cloned files will have the settings preserved.

Enjoy!

[ba-button link=”https://www.seedcode.com/promaps/” color=”Yellow” target=”blank”]Learn more about adding ProMaps to your file[/ba-button]

Featured Posts

Follow Along

Stay up to date with the latest news & examples from SeedCode

Leave a Reply

Your email address will not be published. Required fields are marked *

Check out some of our other posts ...

Suggesting Appointment Slots

Show Available Slots that Match Multiple Criteria Schedulers often look for gaps in their schedules to find the open resources for each opportunity. But sometimes,

Introducing Draft Settings Mode

Following up on this idea that people stretch themselves when they feel a little safer, we’ve been very focused on the customization experience for DayBack

New Longer Timescales for DayBack

Resource Scheduling Swimlanes You can now extend the pivoted scheduling view in DayBack to show items by week instead of solely by day. This lets

FileMaker Summer Camp – Recap

Unconference Sessions If you missed Pause in October, here’s a look at the sessions that attendees hosted. All the sessions are listed in this post

COMPANY

FOLLOW ALONG

Stay up to date with the latest news & examples from SeedCode

© 2024 SeedCode, Inc.