You can override the default behavior of hotspots on interactive maps and floor plans using the advanced marker features. These features let you write JavaScript code to make markers behave exactly the way you need them to. There are three advanced features:
|
The sample above lets you set advanced marker options. First try using the map — the markers change color and display text when you mouse over them, and they display a dialog when you click on them. Now try changing an option and see how the behavior changes.
|
Hidden
When you make a marker hidden, it will not be visible and will not respond to mouseover, mouseout, or click events. When a marker is hidden, it’s as though it were not on the map. You can make markers appear or disappear using this feature. Try it with the sample at left.
Disabled
When you make a marker disabled, it will not respond to mouseover, mouseout, or click events, and it will not change appearance when the mouse is over it. However, you can still click the hotspot name in the directory and the marker will become selected and the hotspot content will display. When a marker is disabled, it's as though it were just a graphic element of the map image.
Static
When you make a marker static, it will not change appearance when the mouse is over it. It will however still respond to mouseover, mouseout, and click events by performing the action associated with those events. When a marker is static, it’s as though its normal and selected appearance are the same.
|
How do I access the advanced marker features?
Choose in the menu.
The advanced marker options are in the and sections.
| |
|