Open main menu

The Aruba Wiki β

Changes

Help:Map syntax

3,234 bytes added, 21:44, 7 July 2018
Created page with "This article will give some understanding in the use of the Kartographer map function in this wiki. Due to some limitations in the extension, the complete syntax needs to be u..."
This article will give some understanding in the use of the Kartographer map function in this wiki. Due to some limitations in the extension, the complete syntax needs to be used as it cannot be incorporated into a template.

== Sample Usage ==
<mapframe text="Marker Icons" width=260 height=260 zoom=12 latitude="12.5828272" longitude="-70.0420925">
{
"type": "Feature",
"geometry": { "type": "Point", "coordinates": [-70.0420925, 12.5828272] },
"properties": {
"title": "[https://www.boardwalkaruba.com/en-us Boardwalk Small Hotel Aruba]",
"marker-color": "228b22",
"marker-symbol": "lodging",
"marker-size": "medium",
}
}
</mapframe>
<pre>
<mapframe text="" width=260 height=260 zoom=12 latitude="12.5828272" longitude="-70.0420925"> //Replace the latitude and longitude value here for the location you want to mark
{
"type": "Feature",
"geometry": { "type": "Point", "coordinates": [-70.0420925, 12.5828272] }, //Replace values for the coordinates using this format longitude, latitudefor the location you want to mark
"properties": {
"title": "[https://www.boardwalkaruba.com/en-us Boardwalk Small Hotel Aruba]", //Replace this value for the name of the establishment marked
"marker-color": "228b22", //Marker color using hex values
"marker-symbol": "lodging", //Marker icon, please refer to list of usable icons below
"marker-size": "medium", //Marker icon size, can be set to small, medium or large
}
}
</mapframe>
</pre>
== Marker Icons ==
<mapframe text="" width="400" height="200" align="center" zoom="10" longitude="0.12" latitude="0">
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "geometry": { "type":"Point", "coordinates":[0, 0] }, "properties": { "title":"Hotel", "marker-size":"large", "marker-symbol":"lodging"} },
{ "type": "Feature", "geometry": { "type":"Point", "coordinates":[0.04, 0] }, "properties": { "title":"Airport", "marker-size":"large", "marker-symbol":"airport"} },
{ "type": "Feature", "geometry": { "type":"Point", "coordinates":[0.08, 0] }, "properties": { "title":"Shop", "marker-size":"large", "marker-symbol":"shop"} },
{ "type": "Feature", "geometry": { "type":"Point", "coordinates":[0.12, 0] }, "properties": { "title":"Marker", "marker-size":"large", "marker-symbol":"marker"} },
{ "type": "Feature", "geometry": { "type":"Point", "coordinates":[0.16, 0] }, "properties": { "title":"Landmark", "marker-size":"large", "marker-symbol":"monument"} },
{ "type": "Feature", "geometry": { "type":"Point", "coordinates":[0.2, 0] }, "properties": { "title":"Restaurant", "marker-size":"large", "marker-symbol":"restaurant"} },
{ "type": "Feature", "geometry": { "type":"Point", "coordinates":[0.24, 0] }, "properties": { "title":"Star", "marker-size":"large", "marker-symbol":"star"} },
]
}
</mapframe>
{| style="width:40%"
|- bgcolor=yellow
| Establishment || Icon
|-
| Hotel || lodging
|-
| Airport || airport
|-
| Shop || shop
|-
| Marker || marker
|-
| Landmark || monument
|-
| Restaurant|| restaurant
|-
| Star || star
|}

== See Also ==
* [https://www.mediawiki.org/wiki/Help:Extension:Kartographer/Icons Kartographer Icons]
* [https://www.mediawiki.org/wiki/Help:Extension:Kartographer Kartographer Help]