[fusion-trac] #310: Flexible weblayout unit doesn't consistent
with its map.
Fusion
trac_fusion at osgeo.org
Tue Oct 27 22:02:45 EDT 2009
#310: Flexible weblayout unit doesn't consistent with its map.
----------------------+-----------------------------------------------------
Reporter: liuar | Owner: madair
Type: defect | Status: new
Priority: P1 | Milestone: Future
Component: MapGuide | Version: 1.1.1
Severity: Major | Resolution:
Keywords: | External_id: 1267676
State: New | Browser: All
Os: All |
----------------------+-----------------------------------------------------
Changes (by liuar):
* priority: P2 => P1
Comment:
In Openlayers.js
Line 10856:
if (window.Proj4js) {
this.proj = new Proj4js.Proj(projCode);
}
If proj4js included, the projection will be initialized.
Line 20817:
this.units = this.projection.getUnits() || this.units || this.map.units;
If the projection has units, the layer’s unit will be the projection’s
unit rather than map’s unit.
However, for openlayers maps, the default coordinate system is always
EPSG:4326, so the units will always be degrees.
In Map.js
Line 918:
getUnits: function() {
return this.oMapOL.baseLayer.units;
},
The map’s units is its baselayer’s units, so the OptionView widget will
get the degrees as unit and the initial view of non-degrees map will not
be shown correctly.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/310#comment:1>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list