Please create an account or log in to build a reputation and unlock more editing privileges!!!

Bikemap

From MediaWiki Widgets
Jump to: navigation, search
This widget replaces the MediaWiki extension IncludeBikemap because of its code simplicity.
Bikemap widget
Author:move
Widget Provider:Embed a map from bikemap.net
Widget Code:Widget:Bikemap
Inv-Icon tools.svg.png

To copy this widget to your wiki, cut and paste the entire source of the Bikemap widget code page into a page called Widget:Bikemap on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on MediaWiki.org and follow the installation instructions.

Contents


This widget allows you to add maps from bikemap.net to your wiki page (Note: This widget ist not offered by bikemap.net but by a user!).

To insert this widget, use the following code:

{{#widget:Bikemap
|id=859435
}}

The code above creates a default map, id is only an example.

You can add some parameters to change size (of iframe and map), maptype, unit and if extended view climb inclination diagram sould be shown. Not used paramters show default, see section Parameters for a short description.

Example:

{{#widget:Bikemap
|id=859435
|unit=miles
|maptype=1
|size=small
|extended=no
}}

Parameters

  • id - This is the ID (only numbers) of the map located at the end of the map URL (example: 859435), must be set!
  • unit - Unit, can be km or miles, default is km
  • maptype - Maptype, can be 0 (card (googlemaps)), 1 (hybrid (googlemaps)), 2 (terrain (googlemaps)), 3 (osm (openstreetmap)), 4 (ocm (opencyclemap)) or 5 (sat (googlemaps)), default is 3 (osm)
  • size - Size of the iframe and map, can be small, medium or big, default is medium
  • extended - Extended view, can be no, default is true

To do

  • Change width and heigth of map as you want and not only in three fixed sizes

Sample result

Result of the example above:


Radroute 859435 - powered by Bikemap 

See also

Comments

blog comments powered by Disqus

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox