Jump to content

Maps in Mediawiki: Difference between revisions

From Squirrel's Lair
Ttenbergen (talk | contribs)
Ttenbergen (talk | contribs)
Line 29: Line 29:
}}
}}


* googlemaps
* googlemaps would require billing <!--
{{#cargo_query: table=Place
{{#cargo_query: table=Place
|format  = googlemaps
|format  = googlemaps
Line 35: Line 35:
|width    = 400
|width    = 400
|height  = 300
|height  = 300
}}
}} -->

Revision as of 14:13, 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

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

Display a location as a map

  • data only

{{#cargo_query: table=Place |fields = Name, Description, Coordinates }}

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

  • googlemaps would require billing