fix geojson example for IE
This commit is contained in:
parent
fe9516579e
commit
6e5b37c36b
@ -103,13 +103,17 @@
|
|||||||
function highlightFeature(e) {
|
function highlightFeature(e) {
|
||||||
var layer = e.target;
|
var layer = e.target;
|
||||||
|
|
||||||
layer.bringToFront().setStyle({
|
layer.setStyle({
|
||||||
weight: 5,
|
weight: 5,
|
||||||
color: '#666',
|
color: '#666',
|
||||||
dashArray: '',
|
dashArray: '',
|
||||||
fillOpacity: 0.7
|
fillOpacity: 0.7
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!L.Browser.ie) {
|
||||||
|
layer.bringToFront();
|
||||||
|
}
|
||||||
|
|
||||||
info.update(layer.feature.properties);
|
info.update(layer.feature.properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user