|
|
Line 1: |
Line 1: |
| <noinclude>{{page warning}}</noinclude><includeonly>{{#switch:{{{map|V3}}}|V1= | | <noinclude>{{page warning}}</noinclude><includeonly>{{#switch:{{{map|V3}}}|V1= |
| | map is work in progress |
| {{#display_map: | | {{#display_map: |
| 50, 50~Center~Test~Minimap-quest.gif; | | 50, 50~Center~Test~Minimap-quest.gif; |
Line 12: |
Line 13: |
| |maxzoom=6 | | |maxzoom=6 |
| }}|V3= | | }}|V3= |
| | map is work in progress |
| {{#display_map: | | {{#display_map: |
| {{#expr:((-5001*0.006510)+50)}}, {{#expr:((-4550*0.006510)+50)}}~Portal to Silent Woods~ ~Minimap-portal.gif; | | {{#expr:((-5001*0.006510)+50)}}, {{#expr:((-4550*0.006510)+50)}}~Portal to Silent Woods~ ~Minimap-portal.gif; |
| {{#expr:((-4906*0.006510)+50)}}, {{#expr:((-4468*0.006510)+50)}}~Bindstone~ ~Minimap-bindstone.gif; | | {{#expr:((-4906*0.006510)+50)}}, {{#expr:((-4468*0.006510)+50)}}~Bindstone~ ~Minimap-bindstone.gif; |
| {{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}~[[Rog Imperial City (V3)|Rog Imperial City]]~ ~Minimap-etc.gif; | | {{#expr:((-5342*0.006510)+50)}}, {{#expr:((-4330*0.006510)+50)}}~[[Rog Imperial City (V3)|Rog Imperial City]]~ ~Minimap-bindstone.gif; |
| | {{#expr:((-5306*0.006510)+50)}}, {{#expr:((-4222*0.006510)+50)}}~Luke Savage (Weapon)~ ~Minimap-etc.gif; |
| | {{#expr:((-5315*0.006510)+50)}}, {{#expr:((-4222*0.006510)+50)}}~Roy Clower (Weapon)~ ~Minimap-etc.gif; |
| | {{#expr:((-5315*0.006510)+50)}}, {{#expr:((-4229*0.006510)+50)}}~Elmo Leon (Weapon)~ ~Minimap-etc.gif; |
| | {{#expr:((-5306*0.006510)+50)}}, {{#expr:((-4229*0.006510)+50)}}~Bibia Layialbol (Weapon)~ ~Minimap-etc.gif; |
| | {{#expr:((-5311*0.006510)+50)}}, {{#expr:((-4218*0.006510)+50)}}~Norah Chamberlain (Magic Goods)~ ~Minimap-etc.gif; |
| |circles={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:1~{{{name}}}~{{{description}}}~red~0.5~3~yellow~0.25;}} | | |circles={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}:1~{{{name}}}~{{{description}}}~red~0.5~3~yellow~0.25;}} |
| |center={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}|15,22}} | | |center={{#if:{{{N|}}}|{{#expr:(({{{N}}}*0.006510)+50)}}, {{#expr:(({{{E}}}*0.006510)+50)}}|15,22}} |
Line 125: |
Line 132: |
| * Adjust zoom values for smaller maps | | * Adjust zoom values for smaller maps |
| * Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes. | | * Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes. |
| | * Look into adding cluster function |
|
| |
|
| </noinclude> | | </noinclude> |
Description
This is the Interactive map template.
It should be transcluded in the following format:
{{Interactive map
|map=
|N=
|E=
|name=
|description=
}}
Parameters
- map
- Required. Map to display.
- N
- Required. In-game N coordinate (N from world map, or y from /location).
- E
- Required. In-game E coordinate (E from world map, or x from /location).
- name
- Optional. Marker title.
- description
- Optional. Marker description.
Example
{{interactive map|map=V1|N=3289|E=3502|name=Cave Troll|description=Cave Troll, level 40, NE V1 near North Gate}}
map is work in progress
Loading map...
{"minzoom":4,"maxzoom":6,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":80.452851,"lon":82.425018,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ECave Troll\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ECave Troll, level 40, NE V1 near North Gate\n\u003C/p\u003E\u003C/div\u003E","title":"Cave Troll\n","link":"","strokeColor":"red","strokeOpacity":"0.5","strokeWeight":"3","fillColor":"yellow","fillOpacity":"0.25","centre":{"lon":82.425018,"lat":80.452851},"radius":1}],"rectangles":[],"copycoords":false,"static":false,"zoom":5,"defzoom":14,"layers":["OpenStreetMap"],"image layers":["V1 detailed map.png"],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[{"name":"V1 detailed map.png","url":"/images/f/fe/V1_detailed_map.png","width":100,"height":100}],"locations":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ECenter\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ETest\n\u003C/p\u003E\u003C/div\u003E","title":"Center\n","link":"","lat":50,"lon":50,"icon":"/images/d/d7/Minimap-quest.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ENorth Gate\n\u003C/p\u003E\u003C/div\u003E","title":"North Gate\n","link":"","lat":83.4,"lon":74.5,"icon":"/images/e/e1/Minimap-portal.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ERog (V1)\n\u003C/p\u003E\u003C/div\u003E","title":"Rog (V1)\n","link":"","lat":60.5,"lon":46.8,"icon":"/images/f/f1/Minimap-etc.gif"}],"imageoverlays":null}
{{interactive map|map=V3}}
map is work in progress
Loading map...
{"minzoom":4,"maxzoom":8,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":15,"lon":22,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":6,"defzoom":14,"layers":["OpenStreetMap"],"image layers":["V3 detailed map.png"],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[{"name":"V3 detailed map.png","url":"/images/d/db/V3_detailed_map.png","width":100,"height":96.66666666666667}],"locations":[{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EPortal to Silent Woods\n\u003C/p\u003E\u003C/div\u003E","title":"Portal to Silent Woods\n","link":"","lat":17.44349,"lon":20.3795,"icon":"/images/e/e1/Minimap-portal.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EBindstone\n\u003C/p\u003E\u003C/div\u003E","title":"Bindstone\n","link":"","lat":18.06194,"lon":20.91332,"icon":"Minimap-bindstone.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003E\u003Ca href=\"/Rog_Imperial_City_(V3)\" title=\"Rog Imperial City (V3)\"\u003ERog Imperial City\u003C/a\u003E\n\u003C/p\u003E\u003C/div\u003E","title":"Rog Imperial City\n","link":"","lat":15.22358,"lon":21.8117,"icon":"Minimap-bindstone.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ELuke Savage (Weapon)\n\u003C/p\u003E\u003C/div\u003E","title":"Luke Savage (Weapon)\n","link":"","lat":15.45794,"lon":22.51478,"icon":"/images/f/f1/Minimap-etc.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ERoy Clower (Weapon)\n\u003C/p\u003E\u003C/div\u003E","title":"Roy Clower (Weapon)\n","link":"","lat":15.39935,"lon":22.51478,"icon":"/images/f/f1/Minimap-etc.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EElmo Leon (Weapon)\n\u003C/p\u003E\u003C/div\u003E","title":"Elmo Leon (Weapon)\n","link":"","lat":15.39935,"lon":22.46921,"icon":"/images/f/f1/Minimap-etc.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EBibia Layialbol (Weapon)\n\u003C/p\u003E\u003C/div\u003E","title":"Bibia Layialbol (Weapon)\n","link":"","lat":15.45794,"lon":22.46921,"icon":"/images/f/f1/Minimap-etc.gif"},{"text":"\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ENorah Chamberlain (Magic Goods)\n\u003C/p\u003E\u003C/div\u003E","title":"Norah Chamberlain (Magic Goods)\n","link":"","lat":15.42539,"lon":22.54082,"icon":"/images/f/f1/Minimap-etc.gif"}],"imageoverlays":null}
{{interactive map|map=Great Rebellion|N=0|E=0|name=Test|description=}}
map is work in progress
Loading map...
{"minzoom":3,"maxzoom":5,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":50,"lon":50,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[{"text":"","title":"","link":"","strokeColor":"red","strokeOpacity":"0.5","strokeWeight":"3","fillColor":"yellow","fillOpacity":"0.25","centre":{"lon":50,"lat":50},"radius":2}],"rectangles":[],"copycoords":false,"static":false,"zoom":3,"defzoom":14,"layers":["OpenStreetMap"],"image layers":["Great Rebellion map.png"],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[{"name":"Great Rebellion map.png","url":"/images/4/4a/Great_Rebellion_map.png","width":100,"height":100}],"locations":[],"imageoverlays":null}
TODO
- Add {{#if:}} condition to N/E parameters to make them required, and return a default/error marker if missing.
- Do the same with map parameter.
- Add condition to name parameter to default to {{PAGENAME}} if not included.
- Allow center to be configurable
- Allow height/width to be configurable
- Adjust circle radius for smaller maps
- Adjust zoom values for smaller maps
- Upload lower res "clean" versions of each map to display as thumbnails in location infoboxes.
- Look into adding cluster function