Improved www.ttss.krakow.pl
Jacek Kowalski
2017-04-14 8c66c4773dba920e5b95fd8704712796b7fa93ea
Fix cursor pointer change on hovering over active element
1 files modified
6 ■■■■■ changed files
map.html 6 ●●●●● patch | view | raw | blame | history
map.html
@@ -140,10 +140,8 @@
    // change mouse cursor when over marker
    map.on('pointermove', function(e) {
        var pixel = map.getEventPixel(e.originalEvent);
        var hit = map.hasFeatureAtPixel(pixel);
        var target = map.getTarget();
        if(target.style)
        var hit = map.hasFeatureAtPixel(e.pixel);
        var target = map.getTargetElement();
            target.style.cursor = hit ? 'pointer' : '';
    });
}