Widget:TChartlet static
From CruisersWiki
(Difference between revisions)
(staticmap.openstreetmap.de) |
|||
Line 23: | Line 23: | ||
assign var='h' value=$height|replace:"px":"" | assign var='h' value=$height|replace:"px":"" | ||
}--><!--{ | }--><!--{ | ||
- | assign var='url' value= | + | assign var='url' value=https://maps.wikimedia.org/img/osm-intl,`$zoom`,`$lat`,`$lon`,`$w`x`$h`.png |
}--><!--{ | }--><!--{ | ||
assign var='style' value="width:`$width`; height:`$height`; background-image:url($url)"|escape | assign var='style' value="width:`$width`; height:`$height`; background-image:url($url)"|escape | ||
Line 41: | Line 41: | ||
div class="chartlet-static" style="width:<!--{$width}-->; height:<!--{$height}-->; background-image:url(https://maps.wikimedia.org/img/osm-intl,<!--{$zoom}-->,<!--{$lat}-->,<!--{$lon}-->,<!--{$w}-->x<!--{$h}-->.png)" | div class="chartlet-static" style="width:<!--{$width}-->; height:<!--{$height}-->; background-image:url(https://maps.wikimedia.org/img/osm-intl,<!--{$zoom}-->,<!--{$lat}-->,<!--{$lon}-->,<!--{$w}-->x<!--{$h}-->.png)" | ||
- | |||
- | |||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 09:01, 14 November 2018