Help:Maps

From UBC Wiki
Jump to: navigation, search

You can add maps to the wiki. Adding maps to your wiki page can be useful when:

  • you are writing an article about regions/countries.
  • you want to show the venue of the event.
  • you want to organize multiple wiki pages using map.


Example

Basics Maps

{{#display_map:Vancouver,BC}}
Loading map...

Adding description to the marker

You can add the description to the marker in the format Location~Title~Label

{{#display_map:Vancouver,BC~Title of the marker~This is Vancouver}}


Loading map...

Maps with multiple points

You can add multiple points to the map using the comma.

{{
#display_points:
Vancouver, BC;
Calgary, AB;
Saskatoon, SK
}}
Loading map...

Adding descriptions to multiple markers

Similar to maps with single points, you can add descriptions to maps with multiple points as well.

{{
#display_map:
Vancouver, BC~Vancouver~This is Vancouver;
Calgary, AB~Calgary~This is Calgary;
Saskatoon, SK~Saskatoon~This is Saskatoon;
}}
Loading map...

Alternative syntax

When you have many customized markers, using the #display_map parser function can get unwieldy. For this reason you can also use the <display_map> tag. It has all the same parameters as the parser function, the only difference is the syntax. Each location goes own its own line and they do not need to be separated with a semicolon.


<display_map height="600" service="leaflet">
Vancouver, BC~Vancouver~This is Vancouver~
Calgary, AB~Calgary~This is Calgary~
Saskatoon, SK~Saskatoon~This is Saskatoon~
</display_map>
Loading map...


Add maps via Geo-coordinates

You can create a map through Geo-coordinates. This feature is useful if you want to map specific location. You can find out Geo-coordinates through websites such as GPS Coordinates.

{{
#display_map:
49.2673031,-123.2524766~Irving K. Barber Learning Centre~Centre for Teaching, Learning and Technology is located at the Irving K. Barber Learning Centre.;
}}
Loading map...

Formatting within the marker description

you can add formats to the marker description including adding [Help:Links|links]].

{{
#display_map:
49.2673031,-123.2524766~Irving K. Barber Learning Centre~[[Center for Teaching, Learning and Technology|Centre for Teaching, Learning and Technology]] is located at the Irving K. Barber Learning Centre.;}}
Loading map...

Resources

More documentation can be found on Semantic Mediawiki website