|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| The wiki has built-in funtionality that lets us display a map with parametric coordinates. | | The wiki has built-in functionality that lets us display a map with parametric coordinates. See [[North Forge:Mapping]] for more info. |
| {{#display_map: | | {{#display_map: |
| 80,80~Test tool~The [[Test tool]] is a cool tool; | | 80,80~Test tool~The [[Test tool]] is a cool tool; |
Line 8: |
Line 8: |
| |zoom=2 | | |zoom=2 |
| }} | | }} |
|
| |
| This means we could store the coordinates once and then show a full floor map with many markers with hovers and pop-ups somewhere prominent, and a map with the location of the tool on the tool's page. I have set this up on a different wiki before. I could see this being useful for e.g. a map of our fire extinguishers or eye wash stations or...; or they could be on the general map in a red when tools are a different colour.
| |
|
| |
| == bug ==
| |
| However, right now there is some bug with the cargo extension that would pull the coordinates. I have [https://www.mediawiki.org/wiki/Extension_talk:Cargo#getting_error_%22Identifier_must_not_contain_quote,_dot_or_null_characters%22_when_trying_to_use_Concatenate bug reported the bug] and will work on this some more when it is fixed.
| |
|
| |
| Found work-around for bug, work can continue.
| |
The wiki has built-in functionality that lets us display a map with parametric coordinates. See North Forge:Mapping for more info.
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"450px","height":"740px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":2,"defzoom":14,"layers":["OpenStreetMap"],"image layers":["1st Floor Plan.png"],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[{"name":"1st Floor Plan.png","url":"/images/d/d7/1st_Floor_Plan.png","width":100,"height":162.24924012158056}],"locations":[{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-content-ltr mw-parser-output\" lang=\"en\" dir=\"ltr\"\u003E\u003Cp\u003ETest tool\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-content-ltr mw-parser-output\" lang=\"en\" dir=\"ltr\"\u003E\u003Cp\u003EThe \u003Ca href=\"/index.php?title=Test_tool\" title=\"Test tool\"\u003ETest tool\u003C/a\u003E is a cool tool\n\u003C/p\u003E\u003C/div\u003E","title":"Test tool\n","link":"","lat":80,"lon":80,"icon":""},{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-content-ltr mw-parser-output\" lang=\"en\" dir=\"ltr\"\u003E\u003Cp\u003Epopup title\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-content-ltr mw-parser-output\" lang=\"en\" dir=\"ltr\"\u003E\u003Cp\u003Epopup \u003Ca href=\"/index.php?title=Text\u0026amp;action=edit\u0026amp;redlink=1\" class=\"new\" title=\"Text (page does not exist)\"\u003Etext\u003C/a\u003E\n\u003C/p\u003E\u003C/div\u003E","title":"popup title\n","link":"","lat":50,"lon":50,"icon":""}],"imageoverlays":null}