summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b8f126b)
When clicking on search results the respective osm object is loaded
asynchronously and afterwards shown on the map. Some objects can take
a few seconds to load however.
If a user already panned/zoomed the map manually during this time then
their actions are reverted because the map fits to the object again.
There is actually no need for this behaviour, because a good geocoder
already returns an appropriate bounding box for the search result.
}
if (data.type && data.id) {
}
if (data.type && data.id) {
- addObjectToMap(data, map, { zoom: true, style: { opacity: 0.2, fill: false } });
+ addObjectToMap(data, map, { zoom: false, style: { opacity: 0.2, fill: false } });
}
map.markerLayer.clearLayers();
}
map.markerLayer.clearLayers();