parent
86bec261dc
commit
eaf65e005b
@ -754,7 +754,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(latlngs.length >= 2 && latlngs.length <= 3) {
|
if(latlngs.length >= 2 && latlngs.length <= 3) {
|
||||||
// TODO: add an API to draw-tools rather than assuming things about it's internals
|
// TODO: add an API to draw-tools rather than assuming things about its internals
|
||||||
window.plugin.drawTools.setOptions();
|
window.plugin.drawTools.setOptions();
|
||||||
|
|
||||||
var layer, layerType;
|
var layer, layerType;
|
||||||
@ -784,7 +784,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(view) {
|
if(view) {
|
||||||
map.fitBounds(newItem.getBounds());
|
map.fitBounds(layer.getBounds());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user