Widget:OpenStreetMap: Unterschied zwischen den Versionen
Aus Stratum 0
(+height, width) |
(lokale OpenLayers-Installation, die auch über HTTPS funktioniert) |
||
Zeile 15: | Zeile 15: | ||
{{#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" style="height:<!--{$height|escape:'html'|default:'300px'}-->; width:<!--{$width|escape:'html'|default:'auto'}-->"></div> | </noinclude><includeonly><div id="mapdiv" style="height:<!--{$height|escape:'html'|default:'300px'}-->; width:<!--{$width|escape:'html'|default:'auto'}-->"></div> | ||
− | <script src=" | + | <script src="/openlayers/OpenLayers.js"></script> |
<script> | <script> | ||
map = new OpenLayers.Map("mapdiv"); | map = new OpenLayers.Map("mapdiv"); |
Version vom 21. August 2013, 00:57 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.