Extension:Gis/map sources

Map sources
The map sources extension is the target of the &lt;geo&gt; tag wikilink, and provides a page of available Internet map resources, in a manner much like the ISBN resource page. The extension provides functionality to preload external URLs with coordinates, so that most maps are essentially one click away.

There are currently 30 different built in replacement strings, supporting various form of specification of scaling and coordinates, such as UTM, OSGB36 and CH1903.

The map source file can be constructed from scratch, or one can use the map source example as a starting point, where there are preloaded pointers to around 20 different map engines, in addition to a pointer to http://GeoURL.org, which lists nearby resources on the Internet, and a pointer to the Extension:Gis/neighbor page and a direct link for the open source en:NASA World Wind software that provides interactive travel using aerial imagery and topological data. World Wind has a plug-in layer for Wikipedia articles that are tagged with a geographic coordinate. Note that this requires the worldwind URL tag to be enabled in Wikipedia.

The URL format for the map sources mechanism is:

$mediawiki/extensions/gis/index.php?geo=GEOBODY

where GEOBODY has exactly the same format as the body of the geo tag. Note that this URL form is used by the geo tag, so one would normally not need to refer to it explicitly.

Definition of the map source page
The definition of the map sources page is via Map sources, or a subpage of this. If you've just installed the Geo MediaWiki extension, replace "Wikipedia" with your wiki name, or simply follow a generated link from a geo tag on one of your pages and click the ‘Please add this page’ link.

Based on the map sources file, the following argument strings will be replaced, based on the coordinates and attributes given:

Latitude/longitude
 {latdegdec}  is the latitude expressed as a signed decimal number of degrees.  {latdegint}  is the latitude expressed as a signed number of whole degrees.  {latdegabs}  is the latitude expressed as a positive number of whole degrees.  {latNS}  is an N or S.  {latmindec}  is the latitude decimal number of minutes.  {latminint}  is the latitude number of whole minutes 0..59.  {latsecdec} </tt> is for latitude decimal number of seconds.  {latsecint} </tt> is for latitude number of whole seconds 0..59.

 {londegdec} </tt> is the longitude expressed as a signed decimal number of degrees.  {londegneg} </tt> is the same as londegdec, except with the sign switched, i.e positive for East.  {londegint} </tt> is the longitude expressed as a signed number of whole degrees.  {londegabs} </tt> is the longitude expressed as a positive number of whole degrees.  {lonEW} </tt> is an E or W.  {lonmindec} </tt> is the longitude decimal number of minutes.  {lonminint} </tt> is the longitude number of whole minutes 0..59.  {lonsecdec} </tt> is the longitude decimal number of seconds.  {lonsecint} </tt> is the longitude number of whole seconds 0..59.

UTM and variations
 {utmzone} </tt> is the UTM standard zone, e.g. 32V</tt>  {utmnorthing} </tt> is the UTM Northing reference (for utmzone</tt>)  {utmeasting} </tt> is the UTM Easting reference (for <tt>utmzone</tt>) <tt> {utm33northing} </tt> is the UTM Northing reference for zone 33 <tt> {utm33easting} </tt> is the UTM Easting reference for zone 33 <tt> {osgb36ref} </tt> is an Ordnance Survey OSGB36 map reference. It is valid for a zone surrounding the British Isles, and is emtpy otherwise <tt> {osgb36northing} </tt> is the OSGB36 Northing reference <tt> {osgb36easting} </tt> is the OSGB36 Easting reference <tt> {ch1903northing} </tt> is the Northing reference for Switzerland (Swiss grid) <tt> {ch1903easting} </tt> is the Easting reference for Switzerland

Scale
<tt> {scale} </tt> is a map scale factor, e.g. 10000 for 1:10000. <tt> {mmscale} </tt> is also the map scale factor, but rounded to the nearest scale supported by Multimap. <tt> {zoom} </tt> is a Mapquest style zoom factor, derived from <tt>scale</tt> <tt> {altitude} </tt> is an altitude equivalent scale indicator derived from <tt>scale</tt>, suitable for MSN maps et al <tt> {span} </tt> is a scale indicator derived from <tt>scale</tt>, suitable for Google maps et al.