- var bounds = map._objectLayer.getBounds();
- if (bounds.isValid()) {
- OSM.route.moveListenerOff();
- map.once('moveend', OSM.route.moveListenerOn);
-
- map.fitBounds(bounds);
+ if (!window.location.hash) {
+ var bounds = map._objectLayer.getBounds();
+ if (bounds.isValid()) {
+ OSM.route.moveListenerOff();
+ map.once('moveend', OSM.route.moveListenerOn);
+ map.fitBounds(bounds);
+ }