OpenLayers default position
|Reported by:||dalkvist||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
The openlayers.js templet don't take the display projection setting from the GeoModelAdmin classes in to consideration when applying the default position.
Fore example then the display projection is sett to 4326 (wgs83 standard lon/lat) and the map projection is sett to 900913 (the "google projection").
Then it is reasonable to expect the default position to be in the display projection and not the map projection.
The supplied patch checks to see if the display_projection is sett, if it is then adds a transformation call (from display projection to map projection) when the default position is used, in the openlayers.js
Change History (6)
Changed 6 years ago by dalkvist
comment:1 Changed 6 years ago by Alex
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 5 years ago by Guilherme Gondim (semente) <semente@…>
- Cc semente+djangoproject@… added