You can make as many location markers as you like, but each location must be numbered in ascending order (0, 1, 2, etc).
Location Properties (these overwrite the properties in the main settings) | |
---|---|
name | The name of the location. |
lat | The latitude of the location in decimal form. |
lng | The longitude of the location in decimal form. |
color | The location's color. If it exists, it will overwrite main_settings.location_color. |
description | This will fill up the popup and can include HTML/CSS. If it exists, it will overwrite main_settings.location_description. |
url | The url when the location is clicked. (e.g. 'http://simplemaps.com'). If it exists, it will overwrite main_settings.location_url. |
hide | 'yes' makes the location invisible. | inactive | 'yes' will make hovering or clicking on a location have no effect. If it exists, it will overwrite main_settings.all_states_inactive |
size | The size of the location. If it exists, it will overwrite main_settings.location_size |
type | The shape of the location. If it exists, it will overwrite main_settings.location_type. ['circle', 'square, 'image'] | image_source | If type is set to 'image', this is the name of the image which must be placed in the map_images folder. [e.g. 'frog.png'] |
opacity | The opacity of the location. If it exists, it will overwrite main_settings.location_opacity. [0-1] |
region | When set, the location will only appear when the map is zoomed into this region number. |
It is possible to add labels to locations. Labels are an ideal way to highlight an island nation that is too small to appear at scale. Labels only appear when region is defined for a location. Labels will not appear in IE7 or IE8 due to browser limitations. Here is an example label:
Location Label Properties (add to the location object) | |
---|---|
region | The region number where the location and label will appear. Must be set to 'yes' for the label to appear. |
label | Must be set to 'yes' for the label to appear. The label text will always be the location's name. |
font_size | The size of the label text. 14 by default. |
x_adjust | The location of the label relative to the location marker. 10 by default. This means the label starts 10 pixels to the right of the location marker unless otherwise defined. Can be negative. |
y_adjust | The location of the label relative to the location marker. 10 by default. This means the label starts 10 pixels below the location marker unless otherwise defined. Can be negative. |
© 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