Lepší hoover na obvody.
parent
c54b372571
commit
d6158d1c9f
|
|
@ -10,6 +10,6 @@ final class Konstanty
|
||||||
* Verze aplikace.
|
* Verze aplikace.
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const verze = '1.2';
|
public const verze = '1.3';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -516,28 +516,20 @@
|
||||||
iconSize: [58, 46],
|
iconSize: [58, 46],
|
||||||
iconAnchor: [29, 14],
|
iconAnchor: [29, 14],
|
||||||
}),
|
}),
|
||||||
interactive: false,
|
interactive: true,
|
||||||
keyboard: false,
|
keyboard: true,
|
||||||
});
|
});
|
||||||
marker.obvodMesice = info ? info.mesice : null;
|
marker.obvodMesice = info ? info.mesice : null;
|
||||||
marker.odPrideleni = info ? info.prideleni : null;
|
marker.odPrideleni = info ? info.prideleni : null;
|
||||||
marker.obvodProbiha = nedokonceny;
|
marker.obvodProbiha = nedokonceny;
|
||||||
|
marker.on('click', function (e) {
|
||||||
|
L.DomEvent.stopPropagation(e);
|
||||||
|
map.fitBounds(layer.getBounds(), { padding: [24, 24] });
|
||||||
|
});
|
||||||
znacky.addLayer(marker);
|
znacky.addLayer(marker);
|
||||||
}
|
}
|
||||||
|
|
||||||
layer.bindPopup(popupHtml(cislo, info));
|
layer.bindPopup(popupHtml(cislo, info));
|
||||||
layer.on({
|
|
||||||
mouseover: function (e) {
|
|
||||||
e.target.setStyle({ weight: 4, fillOpacity: 0.8 });
|
|
||||||
e.target.bringToFront();
|
|
||||||
},
|
|
||||||
mouseout: function (e) {
|
|
||||||
geojson.resetStyle(e.target);
|
|
||||||
},
|
|
||||||
click: function (e) {
|
|
||||||
map.fitBounds(e.target.getBounds(), { padding: [24, 24] });
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var geojson = null;
|
var geojson = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue