Sundsvallskommun / OpenEMap-WebUserInterface

Open eMap user interface for the main map client
GNU Affero General Public License v3.0
4 stars 5 forks source link

Initial extent does not cover all extent in map config #59

Closed anderserla closed 10 years ago

anderserla commented 10 years ago

Do the following

  1. http://194.71.24.168/OpenEMap-1.0.3/
  2. Choose config Anna2 -> ERROR Wrong start extent.
  3. Click "Zoom extent" -> CORRECT start extent
anderserla commented 10 years ago

When calculating the start zoom level it seems like the scale is rounded based on the extent given. It would be better to always round down to the next zoom level´, so all the extent is guranteed to be shown.

ghost commented 10 years ago

Problem is at https://github.com/geoext/geoext2/blob/master/src/GeoExt/panel/Map.js#L382.

ghost commented 10 years ago

Fixed by overriding GeoExt2 method in 2e6e0b9498c3fe3baedfdc604bb4bb56c0f1826c.

anderserla commented 10 years ago

Dont seem to work proberly: image Using config/testAll.json

ghost commented 10 years ago

I testAll.json är extent confat till [487000, 6887000, 733000, 7102000] som tycker ser ut att behöva högsta zoomnivån för att på plats på "normala" skärmupplösningar, så jag tycker alltså att det ser ut att stämma?

anderserla commented 10 years ago

OK, miss av mig. Jag måste skapa flera zoomnivåer för att det ska funka på små skärmar.