<p></p>
<p dir="auto">I have this code with openstreetmaps (is a cicle, then I have more marker named marker1, marker2 ,marker3 and so on), but property curosor: pointer dont workk (I tried with a lot of browser of course).</p>
<pre class="notranslate"><code class="notranslate"> // Create a marker feature 1
var marker1 = new ol.Feature({
geometry: new ol.geom.Point(ol.proj.fromLonLat([14.3619382, 46.0649361])),
name: 'some text',
description: 'other some text'
});
// Create a marker style 1
var markerStyle1 = new ol.style.Style({
image: new ol.style.Icon({
src: '/assets/images/ico.png',
scale: 1 }),
cursor: 'pointer'
});
// Set style to marker feature 1
marker1.setStyle(markerStyle1);
// Add the marker feature 1 to the vector source
vectorSource.addFeature(marker1);
</code></pre>
<pre class="notranslate"><code class="notranslate">Also tried with css:
</code></pre>
<pre class="notranslate"><code class="notranslate">.ol-marker .ol-icon {
cursor: pointer;
}
</code></pre>
<p dir="auto">the same, dont work :(<br>
Someone can help me plese?<br>
Thanks in advanced</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3914">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM247VR2V3JYHHTTTTWVKFRHANCNFSM6AAAAAAUN6CO6I">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJB2WCSNF5BCDPOOUDWVKFRHA5CNFSM6AAAAAAUN6CO6KWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHF2XOK5U.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/3914</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3914",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3914",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>