Popovers
ProMaps.Popovers History
Hide minor edits - Show changes to markup
http://www.seedcode.com/rootimages/stikipad/gomaps/popover.png
http://archive.seedcode.com/rootimages/stikipad/gomaps/popover.png
http://www.seedcode.com/rootimages/stikipad/promaps2/settings.jpg
http://archive.seedcode.com/rootimages/stikipad/promaps2/settings.jpg
http://www.seedcode.com/rootimages/stikipad/gomaps/objectname.png
http://archive.seedcode.com/rootimages/stikipad/gomaps/objectname.png
To do this, edit the script "Compile Map Data" in ProMaps and find the last line where we edit the field "Properties::gm_MapData". Inside that calc you'll see a comment "HTML content for popup...": edit the html that follows and then run the script "Compile Map Data And Settings" to see your change take effect.
To do this, edit the calculation of the gm_MapData field in your Properties table. Inside that calc you'll see a comment "HTML content for popup...": edit the html that follows and then run the script "Compile Map Data And Settings" to see your change take effect.
Find the comment "View a record" toward the bottom of that field and edit the next line. You'll see each button called out in html with a FileMaker script associated with it. Here is what the "View Record" button looks like:
Find the comment "View a record" toward the bottom of that field; three buttons are defined after that. You'll see each button called out in html with a FileMaker script associated with it. Here is what the "View Record" button looks like:
Can I add my own links or changes the scripts the current links run?
ProMaps ships with two links at the bottom of the popover: "View Record" and "Get Directions." Both links run FileMaker scripts and you can configure these (change their names, call new scripts, and add your own scripts) by editing the script "Compile Map Data".
Find the comment "Button Links" in that script and edit the next SetVariable line. You'll see each button called out in html with a FileMaker script associated with it. Here is what "View Record" looks like:
Can I add my own links or change the scripts the current links run?
ProMaps ships with two links at the bottom of the popover: "View Record" and "Get Directions." Both links run FileMaker scripts and you can configure these (change their names, call new scripts, and add your own scripts) by editing the gm_MapData calculation field in your Properties table.
Find the comment "View a record" toward the bottom of that field and edit the next line. You'll see each button called out in html with a FileMaker script associated with it. Here is what the "View Record" button looks like:
You'll see a third entry that you can use as the basis for your own link, and it also helps decode the link syntax for you: there is placeholder text in there for "YourScriptName", "ParametersGoHere", and "Link Displays As This".
You can edit that link, but you'll also see a third entry that you can use as the basis for your own link. That third entry helps decode the link syntax for you: there is placeholder text in there for "YourScriptName", "ParametersGoHere", and "Link Displays As This".
Just be sure to run the script "Compile Map Data and Settings" when you're done to see your changes in the map.
Just be sure to refresh the map when you're done to see your changes in the map.
This is done in the ProMaps file itself, on one of the Setup layouts. Navigate to "Setup" using the layout menu or from the "Settings" button on the home screen...
http://www.seedcode.com/rootimages/stikipad/gomaps/settings.png
...and select "Popover" from the tabs in the upper right. There you'll be able to change the field mapping and field labels on the popover.
This is done in the ProMaps file itself, on one of the Setup layouts. Click on the Settings "gear" in the left hand side bar...
http://www.seedcode.com/rootimages/stikipad/promaps2/settings.jpg
...and select "Format the Popover" from the subsections available. There you'll be able to change the field mapping and field labels on the popover.
http://www.seedcode.com/rootimages/stikipad/ProMaps/popover.png
http://www.seedcode.com/rootimages/stikipad/gomaps/popover.png
http://www.seedcode.com/rootimages/stikipad/ProMaps/settings.png
http://www.seedcode.com/rootimages/stikipad/gomaps/settings.png
http://www.seedcode.com/rootimages/stikipad/ProMaps/objectname.png
http://www.seedcode.com/rootimages/stikipad/gomaps/objectname.png
Creating custom html for your popovers is best done by folks who are familiar editing html and javascript. SeedCode offers implementation packages to help with this if you get stuck.
Creating custom html for your popovers is best done by folks who are familiar editing html and javascript. SeedCode offers implementation packages to help with this if you get stuck.
Using a completely custom display
If field mapping won't let you get the popover display the way you'd like it, you can bypass that completely and write your own html for the popover, including fields from your properties table as you see fit.
To do this, edit the script "Compile Map Data" in ProMaps and find the last line where we edit the field "Properties::gm_MapData". Inside that calc you'll see a comment "HTML content for popup...": edit the html that follows and then run the script "Compile Map Data And Settings" to see your change take effect.
Creating custom html for your popovers is best done by folks who are familiar editing html and javascript. SeedCode offers implementation packages to help with this if you get stuck.
(:include PropertyImages:)
(:include PropertyImages:)
Popovers are the spites that come up when you click on a pin in the map:
Popovers are the sprites that come up when you click on a pin in the map:
You'll see a third entry that you can use as the basis for your own link, and it also helps decode the link syntax for you: there is placeholder text in there for "YourScriptName", "ParametersGoHere", and "Link Displays As This".
Change those three values to your liking and you'll have your own link.
Just be sure to run the script "Compile Map Data and Settings" when you're done to see your changes in the map.
//View a record "<a href=\"fmp://$/<<fileName>>?script=ViewPropertyRecord (propertyID)¶m=" & SC_EncodeEntities ($sc_propertyRecordID) & "\"" & sc_isHostedCheck & ">View Record</a>"
Using a calc for more control
dvdv
>> coming soon
ProMaps ships with two links at the bottom of the popover: "View Record" and "Get Directions." Both links run FileMaker scripts and you can configure these (change their names, call new scripts, and add your own scripts) by editing the script "Compile Map Data".
Find the comment "Button Links" in that script and edit the next SetVariable line. You'll see each button called out in html with a FileMaker script associated with it. Here is what "View Record" looks like:
//View a record "<a href=\"fmp://$/<<fileName>>?script=ViewPropertyRecord (propertyID)¶m=" & SC_EncodeEntities ($sc_propertyRecordID) & "\"" & sc_isHostedCheck & ">View Record</a>"
To change a field, just double click on one of the existing fields and select a new field from your properties table. To use a related field, create a calc for it in properties.
Using a calc for more control
To change a label, select an existing label and change the text in layout mode.
To get rid of a field, just delete it (and its label) from the layout.
Using a calc for more control
Before you get started, note that every field and label on this layout has a object name...
Before you get started, note that every field and label on this layout has a object name. The object name of the selected object below is "DataOption1"...
...
...and without these names, none of this works. So the work you'll do editing this layout is in renaming and repointing the fields and field labels already on the layout, rather than adding new objects to the layout. You won't change the object names themselves but will point the fields to new fields and change the text of the labels.
To change a field, just double click on one of the existing fields and select a new field from your properties table. To use a related field, create a calc for it in properties.
To change a label, select an existing label and change the text in layout mode.
To get rid of a field, just delete it (and its label) from the layout.
sdvasf
By manipulating the fields on this Popover Setup layout you can change which fields show up the map popover: changing not just the fields, but their labels as well.
Before you get started, note that every field and label on this layout has a object name...
http://www.seedcode.com/rootimages/stikipad/ProMaps/objectname.png
...
What's a popover?
Popovers are the spites that come up when you click on a pin in the map:
http://www.seedcode.com/rootimages/stikipad/ProMaps/popover.png
> > coming soon
This is done in the ProMaps file itself, on one of the Setup layouts. Navigate to "Setup" using the layout menu or from the "Settings" button on the home screen...
http://www.seedcode.com/rootimages/stikipad/ProMaps/settings.png
...and select "Popover" from the tabs in the upper right. There you'll be able to change the field mapping and field labels on the popover.
(:include PropertyImages:)
>> coming soon
>> coming soon
(:include PropertyImages:)