VOCWiki:BCMap

From VOC Wiki
Revision as of 19:14, 28 February 2008 by Cmich (talk | contribs) (New page: ==BCMap Extension== There's a custom mediawiki extension on VOCWiki which allows one to embed a map from bcbasemap. To use this feature, write something like this in a wiki page <code><no...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

BCMap Extension

There's a custom mediawiki extension on VOCWiki which allows one to embed a map from bcbasemap. To use this feature, write something like this in a wiki page <bcmap>lat=50.1|long=123.2</bcmap>. You must specify the center of the map using (lat and long) OR you can specify the bounding box of the map using (north and south and east and west) parameters.

Additionally, there are some optional paramaters :

  1. height: height of the map in km (default:10km)
  2. width: width of the map in km (default:10km)
  3. scale: map scale in pixels / km (default:100 pixels/km)
  4. linkscale: when you click on the map you'll be shown an image with this scale (default:2*scale)
  5. alttext: what text-only web browsers will see instead of the map (default:BC Basemap)

BC Basemaps can be a bit slow to load since they are generated on the fly. The html code generated does include WIDTH and HEIGHT tags so the slow image shouldn't prevent the rest of the page from rendering quickly.

Example: <bcmap>lat=49.9|long=123.0|scale=100|width=8|height=4</bcmap> gives this: <bcmap>lat=49.9|long=123.0|scale=100|width=8|height=4</bcmap>