[fusion-commits] r1938 - trunk/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Oct 8 12:20:20 EDT 2009
Author: pagameba
Date: 2009-10-08 12:20:19 -0400 (Thu, 08 Oct 2009)
New Revision: 1938
Modified:
trunk/layers/MapGuide/MapGuide.js
Log:
Re #131, support the possibility of mapguide maps having sprited legend images but someone needs to code it up in LoadScaleRanges.php for it to actually work.
Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js 2009-10-08 16:15:06 UTC (rev 1937)
+++ trunk/layers/MapGuide/MapGuide.js 2009-10-08 16:20:19 UTC (rev 1938)
@@ -392,6 +392,11 @@
eval('o='+r.responseText);
if (o.layers && o.layers.length > 0)
{
+ var iconOpt = {
+ url: o.icons_url || null,
+ width: o.icons_width || 16,
+ height: o.icons_height || 16,
+ };
for (var i=0; i<o.layers.length; i++)
{
var oLayer = this.getLayerById(o.layers[i].uniqueId);
@@ -401,7 +406,7 @@
for (var j=0; j<o.layers[i].scaleRanges.length; j++)
{
var scaleRange = new Fusion.Layers.ScaleRange(o.layers[i].scaleRanges[j],
- oLayer.layerType);
+ oLayer.layerType, iconOpt);
oLayer.scaleRanges.push(scaleRange);
}
}
More information about the fusion-commits
mailing list