Jump to content

Maps in Mediawiki

From Squirrel's Lair

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 WRC's Location is 49.88086121609553, -97.13063599481808

Here are the template calls (see edit view).


  • Cargo

{{#cargo_store: _table = Place | Name= North Forge | Description= A place entry for testing | Coordinates = 49.89959808249238, -97.14224677575343 }}


  • Cargo

{{#cargo_store: _table = Place | Name= WRC | Description= A place entry for testing | Coordinates = 49.88086121609553, -97.13063599481808 }}

Display a location as a map

{{#cargo_query: table=Place |format = openlayers |fields = Name, Description, Coordinates |width = 400 |height = 300 }}

{{#cargo_query: table=Place |format = leaflet |fields = Name, Description, Coordinates |width = 400 |height = 300 }}

Notes

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