Prefer hash to other methods of determining location

This commit is contained in:
John Firebaugh 2013-07-23 15:52:37 -07:00
parent c8d4e4eee3
commit ce53e510ad
3 changed files with 43 additions and 45 deletions

View file

@ -69,11 +69,5 @@ $(document).ready(function () {
}
});
var params = OSM.mapParams();
if (params.bbox) {
map.fitBounds([[params.minlat, params.minlon],
[params.maxlat, params.maxlon]]);
} else {
map.fitBounds(group.getBounds());
}
map.fitBounds(OSM.mapParams().bounds || group.getBounds());
});