Test, ob linien eingeblendet sind
This commit is contained in:
parent
01c3ace60a
commit
b5f4a8e747
1 changed files with 3 additions and 1 deletions
|
@ -236,7 +236,9 @@
|
|||
}).done(function (data) {
|
||||
lines.addData(data);
|
||||
var id = data.features[0].properties.id;
|
||||
lines.getLayer(linesArray[id]["leafletId"]).openPopup();
|
||||
if (map.hasLayer(lines)) {
|
||||
lines.getLayer(linesArray[id]["leafletId"]).openPopup();
|
||||
}
|
||||
var bounds = lines.getLayer(linesArray[id]["leafletId"]).getBounds();
|
||||
map.flyToBounds(bounds);
|
||||
});
|
||||
|
|
Reference in a new issue