Commit 84724f5b authored by Valo's avatar Valo

Sets zoon to 18 when searching, used to improve usability in obres

parent 92463707
......@@ -862,7 +862,7 @@ L.Storage.Search = L.PhotonSearch.extend({
},
zoomToFeature: function (feature) {
var zoom = Math.max(this.map.getZoom(), 16); // Never unzoom.
var zoom = Math.max(this.map.getZoom(), 18); // Never unzoom.
this.map.setView([feature.geometry.coordinates[1], feature.geometry.coordinates[0]], zoom);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment