[fusion-commits] r2231 - sandbox/jxlib-3.0/layers/Generic
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Sep 20 16:14:11 EDT 2010
Author: pagameba
Date: 2010-09-20 20:14:11 +0000 (Mon, 20 Sep 2010)
New Revision: 2231
Modified:
sandbox/jxlib-3.0/layers/Generic/Generic.js
Log:
pick layer type from extension if not valid elsewhere, allow us to put in tiled mapserver layers without using the built in MapServer layer type.
Modified: sandbox/jxlib-3.0/layers/Generic/Generic.js
===================================================================
--- sandbox/jxlib-3.0/layers/Generic/Generic.js 2010-09-20 05:58:20 UTC (rev 2230)
+++ sandbox/jxlib-3.0/layers/Generic/Generic.js 2010-09-20 20:14:11 UTC (rev 2231)
@@ -39,6 +39,10 @@
initialize: function(map, mapTag, isMapWidgetLayer) {
// console.log('Generic.initialize');
Fusion.Layers.prototype.initialize.apply(this, arguments);
+
+ if (mapTag.extension.LayerType) {
+ this.layerType = mapTag.extension.LayerType[0];
+ }
this._sMapname = mapTag.layerOptions['name'] ? mapTag.layerOptions['name'] : 'generic layer';
More information about the fusion-commits
mailing list