Maps in Mediawiki: Difference between revisions
From Squirrel's Lair
Ttenbergen (talk | contribs) m (→Maps extension) |
Ttenbergen (talk | contribs) m (→Maps extension) |
||
Line 3: | Line 3: | ||
== Maps extension == | == Maps extension == | ||
[https://maps.extension.wiki Maps extension] - installed 2022-11 to test this. | [https://maps.extension.wiki Maps extension] - installed 2022-11 to test this. | ||
{{#cargo_query: table=Place | |||
|fields = CONCAT(Coordinates__full, '~', Name , '~',Description ) | |||
|format=list | |||
|delimiter=; | |||
}} | |||
{{#display_map: | |||
{{#cargo_query: table=Place | |||
|fields = CONCAT(Coordinates__full, '~', Name , '~',Description ) | |||
|format=list | |||
|delimiter=; | |||
}} | |||
|copycoords=yes | |||
|resizable=on | |||
|layers=OpenStreetMap,Esri.WorldImagery | |||
}} | |||
== Cargo Displayformat Maps == | == Cargo Displayformat Maps == |
Revision as of 20:18, 2022 November 11
This page is a test ground and demo for using maps in mediawiki.
Maps extension
Maps extension - installed 2022-11 to test this.
49.88086121609553, -97.13063599481808~WRC~A rowing club; 49.89959808249238, -97.14224677575343~North Forge~A makerspace
{{#display_map:
49.88086121609553, -97.13063599481808~WRC~A rowing club; 49.89959808249238, -97.14224677575343~North Forge~A makerspace |copycoords=yes |resizable=on |layers=OpenStreetMap,Esri.WorldImagery
}}
Cargo Displayformat Maps
Notes
- parameters:
- |icon = Squirrelslair 200.png - works, but poor visibility
- googlemaps would require billing
Encode locations
Template:Place defines Cargo Table Place.
Locations can be grabbed from Google Maps by right-clicking on an area and then clicking on the coordinates. They can be pasted into the Coordinates template paramater.
Here are the template calls (see edit view).