simplemaps

State-specific Settings | Documentation

Note: Depending on the map, state could refer to a state, province or country.

Properties (these overwrite the properties in the main settings)
name Primarily for identification purposes. However, you can overwrite a state's name.
description This will fill up the popup and can include HTML/CSS. If it exists, it will overwrite main_settings.state_description.
color The state's color. If it exists, it will overwrite main_settings.state_color.
hover_color The state's hover_color. If it exists, it will overwrite main_settings.state_hover_color.
url The url when the state is clicked. (e.g. 'http://simplemaps.com'). If it exists, it will overwrite main_settings.state_url.
hide 'yes' makes the state invisible.
hide_label 'yes' will hide the state's label. If it exists, it will overwrite main_settings.hide_labels
zoomable 'yes' will zoom into the state upon click instead of redirecting to the url. If it exists, it will overwrite main_settings.all_states_zoomable
zoom_percentage The percentage of the canvas that a zoomed state should take up. (e.g. '.9', would create a 10% border around the zoomed state).
inactive 'yes' will make hovering or clicking on a state have no effect. If it exists, it will overwrite main_settings.all_states_inactive
popup Override main_settings.popups for this state.

HTML5 Map Documentation v3.2

The current version is 3.2. Older docs: 3.0, 2.9
Already a customer and need to update?

Customization

Installation

Common Questions

Troubleshooting

JavaScript API

© Simplemaps.com 2010-2015 | License | Privacy Policy | Releases | Testimonials | Resources | Documentation
Deprecated Maps: Flash USA Map | Flash World Map | Flash Canada Map | Flash Europe Map | Flash Congress Map
Formerly FlashUSAmap.com and Flashworldmap.com