Maps in Mediawiki: Difference between revisions
Appearance
Ttenbergen (talk | contribs) |
Ttenbergen (talk | contribs) |
||
Line 16: | Line 16: | ||
== Display a location as a map == | == Display a location as a map == | ||
* data only | |||
{{#cargo_query: table=Place | |||
|fields = Name, Description, PlaceCoordinates | |||
}} | |||
* Openlayers | * Openlayers | ||
{{#cargo_query: table=Place | {{#cargo_query: table=Place | ||
|format = openlayers | |format = openlayers | ||
|fields = Name, | |fields = Name, Description, Coordinates | ||
|width = 1000 | |width = 1000 | ||
|height = 600 | |height = 600 | ||
}} | }} |
Revision as of 13:02, 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).
Display a location as a map
- data only
Error: No field named "PlaceCoordinates" found for any of the specified database tables.
- Openlayers