Opened 15 years ago
Closed 15 years ago
#367 closed defect (fixed)
MapMenu: warning message is pop-up when reloading the MapGroup with commercial layers.
Reported by: | liuar | Owned by: | madair |
---|---|---|---|
Priority: | P2 | Milestone: | 2.0 |
Component: | Widgets | Version: | 2.0 - beta |
Severity: | Major | Keywords: | |
Cc: | jennyhe | Browser: | All |
External ID: | 1272713 | Operating System: | All |
state: | New |
Description
- Create a flexible web layout with commercial layers
- Click the MapWidget and select current map group
Result: One message is pop-up.
Attachments (1)
Change History (5)
comment:1 by , 15 years ago
by , 15 years ago
Attachment: | MapMenu.patch added |
---|
comment:2 by , 15 years ago
comment:3 by , 15 years ago
All my layer's projCode is Epsg:4326, no matter which coordinate system assigned to the map. That's why I have to get the layerOptions.projection value.
This is a sample of map group with one map in AppDef,
<MapGroupType id="Sheboygan"> <Map> <Type>MapGuide</Type> <SingleTile>true</SingleTile> <Extension> <ResourceId>Library://DID 1272737 Theme with commercial layer/Sheboygan.MapDefinition</ResourceId> <SelectionAsOverlay>true</SelectionAsOverlay> <SelectionColor>0x0000FFA0</SelectionColor> </Extension> </Map> <Extension /> </MapGroupType>
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
fixed at rev 2098 as part of #315
Note:
See TracTickets
for help on using tickets.
[Analysis]
In MapMenu.js
var dest = new OpenLayers.Projection(data.maps[0].projCode);
ce = ce.transform(this.oMap.oMapOL.baseLayer.projection, dest);
but the layer's projCode implementation in openlayers.js used in Fusion makes the projCode always be EPSG:4326. so the transformation might be invalid, and the calculated extent might not make any sense.
[Workaround]