ထႅမ်းပလဵတ်ႉ:OSM Location map/examples
numbered dots with an auto-caption
[မႄးထတ်းငဝ်ႈငႃႇ]| minimap = file bottom right
| mini-file = New Zealand North Island relief map.jpg
| mini-width = 65
|mini-height = 88
| minipog-gx = 54
| minipog-gy = 59 <!-- Upper left is (0,0), lower right is (100,100). -->
| minimap-boxwidth = 13 <!-- gx,gy is centre of box -->
| mark-coord1= {{coord|-38.50990|175.69186}}
| mark-title1 =Kaiwha
| shape1=n-circle
| shape-color1=dark blue
| shape-outline1=white
| mark-size1=16
| mark-coord2 = {{coord|38.762649|S|175.685639|E}}
| mark-title2 = [[Waihaha]]
| mark-coord3= {{coord|-38.88643|175.95359}}
| mark-title3 = [[Motutere, New Zealand|Motutere]]
| mark-coord4 = {{coord|38|55.0|S|175|45.3|E}}
| mark-title4 = [[Pukawa|Pūkawa]]
| mark-coord5 = {{coord|38|25|S|175|35|E}}
| mark-title5 = [[Rangitoto Range]]
| mark-coord6 = {{coord|38.526348|S|175.903913|E }}
| mark-title6 =Tuaropakai ([[Mōkai]])
| mark-coord7 = {{coord|-38.944333|175.781431}}
| mark-title7 = Waitahanui pa
| mark-coord8 = {{coord|-38.92148|175.86236}}
| mark-title8 = [[Motuoapa]]
| caption = Places in the life of Herea
| auto-caption=10
A map with a variety of features and a main subject.
| mark-coord = {{coord|51.9990|-4.7700}}
| mark-size = 14
| mark-title = Pentre Ifan, [[List of Scheduled prehistoric Monuments in north Pembrokeshire|Pembrokeshire]]
| mark-image = DMPentreIfanFront.JPG
| mark-description = The largest and best preserved [[Neolithic British Isles|neolithic]] [[dolmen]] in [[Wales]]
| label = Pentre Ifan
| label-size = 14,outline,background
|label-color = dark grey
| label-pos = left,with-line
| ldx=-14|ldy=3
Using new features: live-link markers and a dashed-line feature to mark out a distance
[မႄးထတ်းငဝ်ႈငႃႇ]|mark-coord3={{coord|54.6|-4.305}}
|mark-size3=350
|shape3=rule
|shape-angle3=-80.2
|label-angle3=-80.2
|label-pos3=center
|ldy3=-74| ldx3=14
|label3=Direct line distance^^= 603 miles (970 km)
|shape-outline3=dark grey,5,40,dotted
Using the new photo-panel feature to highlight a landmark
[မႄးထတ်းငဝ်ႈငႃႇ]| mark-coord1 = {{coord|-35.2985|149.1417}} <!--nb panel-height defaults to 50 -->
| label-pos1=left, photo-panel, 0.65, 83 <!-- photo-dim, panel-width[, panel-height]-->
| label-color1=hard blue <!-- in photo-panel this is also outline/line color -->
| ldx1=-36| ldy1=-93 <!-- sets relative position of panel to it's mark -->
| label1=National ^Carillon <!-- label text is put inside the panel -->
| mark-title1=[[National Carillon]] <!-- if wikilink the dot will be 'live' -->
| mark-image1=National Carillon, Canberra ACT.jpg <!--used in panel and fullscreen-->
Using numbered dots, including the new lines features to sort out crowded dots
[မႄးထတ်းငဝ်ႈငႃႇ]Country-scale map with live-link locator dots (zoom=5)
Austria
| label6=
| label-pos6=top, n-line
| label-size6=12,outline,background
| ldx6=-11|ldy6=-18
| mark-coord6={{coord|48.45|10.1}}
| mark-title6=[[Battle of Elchingen]] on 14 October 1805
Using new shapes and line features to add items relevant to the article
[မႄးထတ်းငဝ်ႈငႃႇ]Landscape-scale map with a selection of features. (zoom=14)
| mark-coord1 = {{coord|51.78365|-3.6553}}
| shape1=box
| mark-size1=17,17,3
| shape-outline1=hard grey,1,70
| shape-color1=white
| shape-angle1=-9
| label1 = Roman Fort
| ldx1=-3
| mark-title1 = [[Roman auxiliaries in Britain|Roman Auxiliary Fort]]
| label-pos1=left
| label-angle1=0
| label-size1 = 12
...
| mark-coord8 = {{coord|51.7860|-3.6667}}
| mark-size8=0
| mark-title8 = none
| label8=Powys^Neath Port Talbot
| label-size8=8
| label-angle8=-1
| label-pos8=center
| label-color8=black,40
Example from Margam Stones Museum (right) landscape scale locator dots (zoom=12)
Using map-raw to show customised areas and lines
[မႄးထတ်းငဝ်ႈငႃႇ]- ထႅမ်းပလဵတ်ႉ:Legend-inline
- ထႅမ်းပလဵတ်ႉ:Legend-inline
- ထႅမ်းပလဵတ်ႉ:Legend-inline
- ထႅမ်းပလဵတ်ႉ:Legend-inline
- Active extension boundaries
- Active trench subduction boundaries
- Inactive trench subduction boundaries
- ထႅမ်းပလဵတ်ႉ:Legend-inline
- ထႅမ်းပလဵတ်ႉ:Legend-inline
- Mouse hover over feature to see its name/link
This Solomon Sea map makes use of raw GeoJSON files to show complex tectonic features. The GeoJSON code can be contained within a separate file. In this case it uses two data files called by:
|map-raw={{Wikipedia:Map data/Solomon Sea plate}},{{Wikipedia:Map data/New Britain subduction zone}}
In production note that only selected tectonic features were selected out that were most relevant to an article, as such complex maps can be hard to understand.
Raw GeoJSON has been used in many {{mapframe}} calls used in say infoboxs, before this capacity existed via {{OSM Location map}}. According the GeoJSON code between square brackets [...] in a {{mapframe}} could be used now in a {{OSM Location map}} call if an editor desired to say add extra labels to the map. Complex large raw GeoJSON files can have significant server side processing overhead and some {{mapframe}} code has needed an optimisation trick #tag: to get Lua processing time consistently below the 10 second maximum allowed. An example is on the page Mount Cargill. Such GeoJSON could now be used in a {{OSM Location map}} call and is unlikely to create such issues. See Wikipedia:Map data for a list of the many pre-existing raw GeoJSON files that can now be used in {{OSM Location map}} calls. Changing a {{mapframe}} to {{OSM Location map}} call can improve server side page processing times if the optimisation trick mentioned has not been used.
Map using WikiData Query Service (WDQS)
[မႄးထတ်းငဝ်ႈငႃႇ]Using a Sparql query it is possible to add live data extracted from Wikidata, to show on a map. The US State Governor party allegiance map also adds links and photos within the fullscreen version, and is created using
|map-wdqs-type=geoshape
|map-wdqs=SELECT ?id ?head (SAMPLE(?img) as ?img_) (min(?partyId) as ?party) (if(?party = '0', '#DB3123', if(?party = '1', '#4B77D6', '#008000')) as ?fill) (concat('[[w:', substr(str(?link),31,400), '{{!}}', ?headLabel, ']]') as ?title) (concat(?stateLabel, '\\n', '[[File:', substr(str(?img_), 52, 400), '{{!}}200px]]') as ?description) WHERE { ?id wdt:P31 wd:Q35657 . ?id wdt:P6 ?head . ?head wdt:P102 ?party . BIND(if(?party = wd:Q29468, '0', if(?party = wd:Q29552, '1', '2')) as ?partyId) SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' . ?head rdfs:label ?headLabel . ?id rdfs:label ?stateLabel . } OPTIONAL { ?head wdt:P18 ?img . } ?link schema:about ?head . ?link schema:isPartOf <https://en.wikipedia.org/> .} GROUP BY ?id ?head ?headLabel ?link ?stateLabel
Map using WikiData en:Wikipedia template calls
[မႄးထတ်းငဝ်ႈငႃႇ]Several templates exist that allow access WikiData. The en:Wikipedia has templates/modules {{Coord}}, {{wd}} and {{WikidataIB}} as well as others that are depreciated. An example of a hard coded population map of a locality is given that calls code like:
| coord = {{Coord|qid=Q1753006}}
| map-data-inverse =Q1753006
| label-sizeD =14,background,outline
| label-posD = top
| shapeD = circle
| shape-colorD = soft red,70
and repeats for each population centre
| mark-coord1 = {{Coord|qid=Q3057492}}
| mark-size1 = {{#expr:1+{{#invoke:wd|property|Q3057492|P1082}}/{{#invoke:wd|property|Q1753006|P1082}}*200}}
| mark-description1 = {{#invoke:wd|description|Q3057492}}
| label1 = {{#invoke:wd|label|Q3057492}}
| mark-title1 = [[{{#invoke:wd|label|Q3057492}}]] ({{#invoke:wd|property|Q3057492|P1082}} population), {{#invoke:wd|description|Q3057492}}
Some pages with example uses for OSM Location map
[မႄးထတ်းငဝ်ႈငႃႇ]Roman Britain fortress ground plans, etc
[မႄးထတ်းငဝ်ႈငႃႇ]Townscape scale maps to show 'on-the-ground' features (zoom 15/16)
- Caerleon Roman Fortress and Baths
- Isca Augusta (Roman Fortress at Caerleon)
- Burrium (Roman fortress at Usk)
- Nidum (Roman auxiliary fortress at Neath)
- Leucarum (Roman auxiliary fortress at Loughor)
- Banwen (Roman and other sites)
Building-scale architectural plan
[မႄးထတ်းငဝ်ႈငႃႇ](zoom=19) St Illtyd's Church, Llantwit Major
- ↑ Royal Commission on the Ancient and Historical Monuments of Wales (1976). Glamorgan Inventory, Vol 1, Part 2: The Iron Age and Roman Occupation. p. 100.
