Prefer hash to other methods of determining location
This commit is contained in:
parent
c8d4e4eee3
commit
ce53e510ad
3 changed files with 43 additions and 45 deletions
|
@ -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());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue