Help:Marker data
From Mapping on MediaWiki
Revision as of 15:40, June 3, 2011 by C.holtermann (Talk | contribs)
|
Customizing markers |
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 eithertitle=orlabel=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 eithertitle=orlabel=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...
{{#display_points:New York City~NYC;Moscow;Berlin~Berlin~Has a blue marker~Blue marker.png|geoservice=geonames|service=openlayers|layers=osmarender}}
Loading map...
See also
This documentation page applies to all (Semantic) Maps versions from 0.1 to the most current version.
Facts about "Marker data"RDF feed
| From version | 0.1 + |
| Is master page | true + |
| Language code | en + |
| Master page | Help:Marker data + |
