Help:Marker data

From Mapping on MediaWiki
Jump to: navigation, search

User manual

Introduction

Coordinates

Geocoding

Displaying maps

Displaying markers

Customizing markers

Mapping services

Semantic mapping

Coordinates data-type

Querying coordinate data

Distance query

Maps in forms

Admin manual

Maps allows you to specify point specific data. In other words, you can have different pop-ups and icons for different markers.

There are 3 marker specific parameters. They are unnamed, meaning you notate them as value, not name=value, and therefore have a fixed order. Each parameter is separated by '~'. This is the correct order of the 3 parameters: coordinates or address, (optional) title, (optional) label, (optional) icon. Both title and label will use the value of their general, non marker specific, parameter, when it's set . This example demonstrate the parameters usage:

{{
#display_points:
Moscow, Russia~Moscow~A city in Russia; New York~New York city; London~London~Capital of England~green-marker.png;Brussels
}}
  • Moscow, Russia~Moscow~A city in Russia: The address is followed by a title (Moscow), and a label (A city in Russia), and will therefore display a marker with both values.
  • New York~New York city: This address only has a title parameter (New York city), and will not have any label, unless either title= or label= parameters are provided.
  • London~London~Capital of England~green-marker.png: This address has all 3 parameters, and will display a pop-up with it's own title, it's own text, and will have it's own marker (an image with the name green-marker.png).
  • Brussels: This address does not have any specific parameters, and therefore will use the default marker icon, and won't display any pop-up, unless either title= or label= parameters are provided.

This is a stripped down example of one point and it's related data:

Address~Title~Label~Icon

Examples

Also see the Maps examples, which are much more extensive.

{{#display_point:New York City~New York City~I'm in your marker! o_O}}
Loading map...
The following error has been detected in your syntax:
* Parameter coordinates must be one or more valid locations.
{{#display_points:New York City~NYC;Moscow;Berlin~Berlin~Has a blue marker~Blue marker.png|geoservice=geonames|service=openlayers|layers=osmarender}}
Loading map...
The following error has been detected in your syntax:
* Parameter coordinates must be one or more valid locations.

See also

This documentation page applies to all (Semantic) Maps versions from 0.1 to the most current version.
     

Help:Marker data en 0.1