Maps in Mediawiki: Difference between revisions

From Squirrel's Lair
Line 16: Line 16:


== Display a location as a map ==
== Display a location as a map ==
* data only
parameters:  
{{#cargo_query: table=Place
* |icon = Squirrelslair 200.png - works, but poor visibility
|fields  = Name, Description, Coordinates
}}


* [https://openlayers.org/ Openlayers]
* [https://openlayers.org/ Openlayers]
Line 27: Line 25:
|width    = 400
|width    = 400
|height  = 300
|height  = 300
|icon = Squirrelslair 200.png
}}
}}



Revision as of 14:17, 2022 November 11

Testing the functionality of Cargo Displayformat Maps.

Encode a location

Template:Place defines Cargo Table Place.

As per https://www.google.com/maps

North Forge's location is 49.89959808249238, -97.14224677575343

Here is a template call that encodes a place with coordinates (see edit view).


  • Cargo


Display a location as a map

parameters:

  • |icon = Squirrelslair 200.png - works, but poor visibility
  • googlemaps would require billing