Difference between revisions of "MediaWiki:Embed www.openstreetmap.org"

From Culture.si
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#custom:raw|<div class="map" lat="{{{lat}}}" lon="{{{lon}}}" zoom="{{{zoom|16}}}">
+
{{#eval:html|
<a href="http://www.openstreetmap.org/?lat={{{lat}}}&lon={{{lon}}}&zoom={{{zoom|16}}}">Zemljevid</a>
+
<iframe width="{{{width|220}}}" height="{{{height|220}}}" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.culture.si/static/embed-osm.html?lon={{{lon|14.49172}}}&lat={{{lat|46.04499}}}&zoom={{{zoom|14}}}&layer=mapnik" style="border: 1px solid black"></iframe>
</div>
+
<p><a href="https://maps.google.com/?ll={{{lat|46.04499}}},{{{lon|14.49172}}}&spn=0.003045,0.004823&t=h&z=18&vpsrc=6" target="GoogleMaps">See on Google Maps</a></p>
 
 
 
 
<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.openstreetmap.org/export/embed.html?bbox=14.49172,46.04499,14.50453,46.05666&layer=mapnik" style="border: 1px solid black"></iframe><br />
 
<small><a href="http://www.openstreetmap.org/?lat={{{lat}}}&lon={{{lon}}}&zoom={{{zoom|16}}}">Ve&#269;ji zemljevid</a></small>
 
 
}}
 
}}
 +
{{#set:lat={{{lat}}}}}
 +
{{#set:lon={{{lon}}}}}
 +
[[Category:HAS MAP]]
 
<noinclude>
 
<noinclude>
 
+
<p><a href="https://www.openstreetmap.org/?lat={{{lat}}}&lon={{{lon}}}&zoom={{{zoom|14}}}">Bigger map</a></p>
 +
<pre>
 
LAT {{{lat}}}
 
LAT {{{lat}}}
 
LON {{{lon}}}
 
LON {{{lon}}}
 
ZOOM {{{zoom}}}
 
ZOOM {{{zoom}}}
 
+
</pre>
 
path {{{path}}}
 
path {{{path}}}
 
fragment {{{fragment}}}
 
fragment {{{fragment}}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:21, 11 October 2017

See on Google Maps

"{{{lat}}}" is not a number. "{{{lon}}}" is not a number.

<a href="https://www.openstreetmap.org/?lat={{{lat}}}&lon={{{lon}}}&zoom=14">Bigger map</a>

LAT {{{lat}}}
LON {{{lon}}}
ZOOM {{{zoom}}}

path {{{path}}} fragment {{{fragment}}}