Talk:Simple image MediaWiki Extension

From OpenStreetMap Wiki
Jump to navigation Jump to search

It is unclear to me how the new syntax should be used in a parametrized template. The following template definition:

{{#if: {{{lat|}}} | {{#if: {{{lon|}}} | <map lat="{{{lat}}}" lon="{{{lon}}}" z="14" w="300" h="200" format="jpeg" /> }} }}

gives an error: "Map error: latitude (lat) value '%1' is not a valid number" — Fnielsen 12:30, 21 October 2009 (UTC)

Ok, so I found out of this myself via the page Template:ExampleLocation:

{#if: {{{lat|}}} | {{#if: {{{lon|}}} | {{#tag:map||lat="{{{lat}}}"|lon="{{{lon}}}"|z="13"|w="300"|h="200"|format="jpeg"}} }} }}

Thanks for the extension. — Fnielsen 13:22, 21 October 2009 (UTC)

Marker

Hi Harry, it would be fine to have a marker on the map:

<map lat="51.485" lon="-0.15" mlat="51.45" mlon="-0.1509" z="11" w="300" h="200" format="jpeg" />

and a smaller syntax:

<map lat=51.485 lon=-0.15 mlat=51.45 mlon=-0.1509 z=11 w=300 h=200 format=jpeg />

also I miss "style=..."

Thanks, --Markus 16:10, 25 December 2009 (UTC)

Simple image MediaWiki extension is broken

The simple image MediaWiki extension is broken. Can anybody help? This means that no map is displayed, see example on the main page.--geozeisig (talk) 06:57, 26 September 2018 (UTC)

People, please discuss that at Talk:Wiki#Map_extensions. Dropping comments here is not helpful, because it is discussed somewhere else. If you would like to fix it now please read the threat I linked to and contact the persons relevant! Otherwise, I will take a new approach next week.
PS: This problem has been reported at fossgis/openstreetmap.de/issues/25 GitHub already, but unfortunately no one from FOSSGIS cares about fixing it. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 17:49, 21 October 2018 (UTC)