diff --git a/plugins/bookmarks-by-zaso.user.js b/plugins/bookmarks-by-zaso.user.js index 83a7038a..abbe6dfb 100644 --- a/plugins/bookmarks-by-zaso.user.js +++ b/plugins/bookmarks-by-zaso.user.js @@ -754,7 +754,7 @@ }); 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(); var layer, layerType; @@ -784,7 +784,7 @@ } if(view) { - map.fitBounds(newItem.getBounds()); + map.fitBounds(layer.getBounds()); } } else{