Курсор поинтер при наведение на иконку
This commit is contained in:
parent
c2e3be3eec
commit
e26d521220
@ -241,6 +241,16 @@
|
||||
popover.show();
|
||||
});
|
||||
map.on('movestart', disposePopover);
|
||||
map.on("pointermove", function (evt) {
|
||||
var hit = this.forEachFeatureAtPixel(evt.pixel, function (feature, layer) {
|
||||
return true;
|
||||
});
|
||||
if (hit) {
|
||||
this.getTargetElement().style.cursor = 'pointer';
|
||||
} else {
|
||||
this.getTargetElement().style.cursor = '';
|
||||
}
|
||||
});
|
||||
|
||||
// Загрузка маркеров
|
||||
updateMarkers();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user