[fusion-trac] #486: Base map layers show in wrong places
working with Bing Maps
Fusion
trac_fusion at osgeo.org
Thu Dec 1 07:04:09 EST 2011
#486: Base map layers show in wrong places working with Bing Maps
----------------------------+-----------------------------------------------
Reporter: christinebao | Owner: madair
Type: defect | Status: assigned
Priority: P2 | Milestone: 2.3
Component: MapGuide | Version: 2.0
Severity: Critical | Keywords:
External_id: 1432080 | State: New
Browser: All | Os: All
----------------------------+-----------------------------------------------
Comment(by jng):
Attached is a patch to make fusion check if a given
OpenLayers.Layer.MapGuide object has a scale list equivalent to the Google
Layer Scale list, if so it tacks on a bUsesCommercialLayerScaleList
property to indicate this.
The basemap switcher widget has been modified to include a list of offsets
to apply based on the given layer selected. When a commerical layer
switches, any OpenLayers.Layer.MapGuide objects whose
bUsesCommercialLayerScaleList flag is set will have their zoomOffset set
to the associated offset in this list.
This makes the given map line up correctly for all supported base layers.
I could not confirm Yahoo map support due to lack of API key.
This patch is not 100% perfect, there is some minor visual artifacts as a
layer gets switched, there may be excessive redraw() calls as part of
initialising the basemap switcher. But it produces the intended results:
your MG tiled layers lining up with your MG untiled layers and the
commerical layer if (and only if) your tiled maps are using the Google
Commerical Layer scale list
Please review (especially if this changes also work with Yahoo layers)
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/486#comment:26>
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