geomap should default to a sensible start map
Bug #744940 reported by
Vidar Faltinsen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Wishlist
|
Trond Kandal |
Bug Description
Today geomap always starts with a hard coded map centred around Trondheim. The best solution is to study all netboxes that are to be displayed and look at their room's coordinates and make a initial view that includes all these boxes. An alternative would be to add a config file option that lets the NAV administrator hard code a startup view.
Changed in nav: | |
importance: | Undecided → Wishlist |
Changed in nav: | |
status: | New → Triaged |
Changed in nav: | |
status: | Triaged → In Progress |
assignee: | nobody → Trond Kandal (trond-kandal) |
To post a comment you must log in.
I don't know much about programming with OpenLayers, but I see the JavaScript API has a Bounds class that could potentially solve this problem: http:// dev.openlayers. org/docs/ files/OpenLayer s/BaseTypes/ Bounds- js.html
An approach could be to output some Javascript that feeds all the room coordinates to a Bounds object which is fed to a zoomToExtent call. The Bounds class will automatically calculate the bounding box for a list of coordinates.