Курсор поинтер при наведение на иконку

This commit is contained in:
zakhy 2025-01-10 11:11:04 +07:00
parent c2e3be3eec
commit e26d521220

View File

@ -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();