Widget:OpenStreetMap: Unterschied zwischen den Versionen

Aus Stratum 0
Wechseln zu:Navigation, Suche
K (noinclude-fail)
(+height, width)
Zeile 10: Zeile 10:
 
* '''lat''', '''lon''' - latitude and longitude
 
* '''lat''', '''lon''' - latitude and longitude
 
* '''zoom''' - zoom, ranging from 1 (overview) to 18 (detailed)
 
* '''zoom''' - zoom, ranging from 1 (overview) to 18 (detailed)
 +
* '''height''', '''width''': height and width of the map widget. Default height is 250px, default width is auto.
  
 
== Sample result ==
 
== Sample result ==
 
{{#widget:OpenStreetMap|lat=52.2785658|lon=10.5211247|zoom=16}}
 
{{#widget:OpenStreetMap|lat=52.2785658|lon=10.5211247|zoom=16}}
</noinclude><includeonly><div id="mapdiv"></div>
+
</noinclude><includeonly><div id="mapdiv" style="height:<!--{$height|escape:'html'|default:'300px'}-->; width:<!--{$width|escape:'html'|default:'auto'}-->"></div>
 
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
 
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
 
<script>
 
<script>

Version vom 7. Februar 2012, 06:01 Uhr

This widget allows you to add an OpenStreetMap widget to your wiki page.

Using this widget

To insert this widget, use the following code:

 {{#widget:OpenStreetMap|lat=<latitude>|lon=<longitude>|zoom=<zoom>}}

Parameters

  • lat, lon - latitude and longitude
  • zoom - zoom, ranging from 1 (overview) to 18 (detailed)
  • height, width: height and width of the map widget. Default height is 250px, default width is auto.

Sample result