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