- This topic has 1 reply, 1 voice, and was last updated 10 months, 4 weeks ago by
– MiKa –.
-
AuthorPosts
-
thx
GuestHi there,
we are currently using OSM 5.3.6 on WordPress 5.2.5.
We have a Map with four pins on them.After upgrading OSM to 5.3.6 (From I believe 5.2.1) the Pins are at a totally different place, and when resizing the window, the hover strangely around.
Also, they are not clickable.Something seems to have changed in the process of the update.
But what? And more importantly: How do I fix this?I have rechecked the kml-file with the example kml-file.
It could not be the coordinates, since they worked before the upgrade.
I tend to install the old version, if I cannot find the problem.This is the kml-file:
<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <Document> <Style id="pushpin"> <IconStyle> <scale>1</scale> <Icon> <href>/img/se_pin.png</href> </Icon> <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/> </IconStyle> </Style> <Placemark> <name>Name1</name> <description> Address and phone1 </description> <ExtendedData><Data name="_storage_options"><value>[object Object]</value></Data><Data name="name"><value><![CDATA[<h4>headline</h4>]]></value></Data> <Data name="description"><value> <![CDATA[<strong>address</strong><br /> phone<br /> <a href="https://maps.openrouteservice.org/directions?n1=50.10901&n2=8.527552&n3=14&a=null,null,50.10901,8.527552&b=0&c=0&k1=en-US&k2=km" target="_blank"><strong>Route berechnen</strong></a>]]> </value></Data></ExtendedData><styleUrl>#pushpin</styleUrl> <Point><coordinates>8.527552485466005,50.109009575597305</coordinates></Point></Placemark> <Placemark><name>name2</name><description>address2 </description> <ExtendedData><Data name="_storage_options"><value>[object Object]</value></Data><Data name="name"><value><![CDATA[<h4>name2</h4>]]></value></Data><Data name="description"><value><![CDATA[ <strong>address2<br /> <a href="https://maps.openrouteservice.org/directions?n1=50.119385&n2=8.698243&n3=14&a=null,null,50.119385,8.698243&b=0&c=0&k1=en-US&k2=km" target="_blank"><strong>Route berechnen</strong></a> ]]> </value></Data></ExtendedData><styleUrl>#pushpin</styleUrl><Point><coordinates>8.698242902755739,50.11938456767099</coordinates></Point></Placemark> <Placemark> <name>name3</name> <description>address3 </description> <ExtendedData><Data name="_storage_options"><value>[object Object]</value></Data><Data name="name"> <value><![CDATA[<h4>name3</h4>]]></value></Data> <Data name="description"><value> <![CDATA[<strong>address3<br /> <a href="https://maps.openrouteservice.org/directions?n1=49.976645&n2=8.419197&n3=14&a=null,null,49.976645,8.419197&b=0&c=0&k1=en-US&k2=km" target="_blank"><strong>Route berechnen</strong></a>]]> </value></Data></ExtendedData><styleUrl>#pushpin</styleUrl><Point><coordinates>8.419196605682375,49.9766451635338</coordinates></Point></Placemark> <Placemark> <name>name4</name><description>#address4 </description> <ExtendedData><Data name="_storage_options"><value>[object Object]</value></Data> <Data name="name"><value><![CDATA[<h4>nam4</h4>]]></value></Data> <Data name="description"><value> <![CDATA[<strong>address4</strong><br /> tel4<br /> <a href="https://maps.openrouteservice.org/directions?n1=50.141362&n2=8.566251&n3=14&a=null,null,50.141362,8.566251&b=0&c=0&k1=en-US&k2=km" target="_blank"><strong>Route berechnen</strong></a> ]]> </value></Data></ExtendedData><styleUrl>#pushpin</styleUrl><Point><coordinates>8.566251397132875,50.14136207762607</coordinates></Point></Placemark> </Document></kml>
It gets called in the page with:
[osm_map_v3 map_center="50.065,8.573" zoom="10" width="100%" height="500" map_border="thin solid grey" file_list="/wp-content/uploads/file.kml" control="fullscreen,scaleline"]
– MiKa –
KeymasterHi Guest,
I do not know the issue. In March a new version is going to be released which includes also a new version of OpenLayers, where some style topics were addressed. Maybe a goog choice just to wait for the new update.
Br, Mika
-
AuthorPosts