[fusion-dev] RE: Multiple baselayergroups in Fusion
Arthur Liu
arthur.liu at autodesk.com
Mon Jun 27 22:04:33 EDT 2011
Hi Jackie,
Do you mean the commit https://github.com/jumpinjackie/fusion-multimap/commit/8c841bfad7e82bad49b0016bacf4fd03f34ba807?
I think I can refine some of my tricky code in the patch based on your update, for example, I don't need to force other baselayers' isBaselayer property to false.
if(this.mapObject.oLayersOLTile && this.mapObject.oLayersOLTile.length > 1) {
for(var i=this.mapObject.oLayersOLTile.length-2; i>=0; i--) {
// Workaround to make multiple baselayers display.
// Openlayers only supports single baselayer.
this.mapObject.oLayersOLTile[i].isBaseLayer = false;
ovLayers.push(this.mapObject.oLayersOLTile[i]);
}
}
BTW, is it possible to submit your code to Openlayers trunk?
Regards,
Arthur
-----Original Message-----
From: fusion-dev-bounces at lists.osgeo.org [mailto:fusion-dev-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Monday, June 27, 2011 6:26 PM
To: fusion-dev at lists.osgeo.org
Subject: [fusion-dev] RE: Multiple baselayergroups in Fusion
Yes this is correct.
We we're aware of this single base layer group limitation in Fusion, but couldn't figure out a solution.
So we attacked the problem from a different angle, which was to support multiple Base Map Definitions (each assumed to have a single base layer
group)
- Jackie
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Multiple-baselayergroups-in-Fusion-tp6519741p6519885.html
Sent from the Fusion Developers mailing list archive at Nabble.com.
_______________________________________________
fusion-dev mailing list
fusion-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-dev
More information about the fusion-dev
mailing list