[mapguide-users] Bug: CreateRuntimeMap returns scalerange with „Null“ when using Raster or WMS-layers in Map
Matze
schramm at kom21.de
Wed Oct 19 05:52:13 PDT 2016
Bug noticed: CreateRuntimeMap returns scalerange with „Null“ when using
Raster or WMS-layers in Map. Vectorlayer causes no Problems.
In example the JSON returnvalue and the related LayerDefinition
/*TIF-Gridlayer:*/
{
"FeatureSource": [{
"ClassName": ["default:default"],
"Geometry": ["Raster"],
"ResourceId":
["Library://MobileViewer/Rasterdaten/TIF.FeatureSource"]
}],
"LayerDefinition":
["Library://MobileViewer/Rasterdaten/TIF.LayerDefinition"],
"LegendLabel": ["TIF"],
"Name": ["TIF"],
"ObjectId": ["305a0c88-95d6-11e6-8002-0050569cbc24"],
"ParentId": ["3057aaf6-95d6-11e6-8003-0050569cbc24"],
*"ScaleRange": null,
* }],
/*TIF.LayerDefinition.xml:*/
<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="LayerDefinition-2.4.0.xsd" version="2.4.0">
*<GridLayerDefinition>
*
<ResourceId>Library://MobileViewer/Rasterdaten/TIF.FeatureSource</ResourceId>
<Watermarks />
<FeatureName>default:default</FeatureName>
<Geometry>Raster</Geometry>
<GridScaleRange>
<MinScale>10000</MinScale>
<MaxScale>500000</MaxScale>
<ColorStyle>
<ColorRule>
<LegendLabel>
</LegendLabel>
<Color>
<ExplicitColor>000000</ExplicitColor>
</Color>
</ColorRule>
<ColorRule>
<LegendLabel>
</LegendLabel>
<Color>
<ExplicitColor>FFFFFF</ExplicitColor>
</Color>
</ColorRule>
</ColorStyle>
<RebuildFactor>1</RebuildFactor>
</GridScaleRange>
</GridLayerDefinition>
</LayerDefinition>
/
*Flurstuecke-Vectorlayer:*/
"Layer": [{
"ActuallyVisible": ["true"],
"DisplayInLegend": ["true"],
"ExpandInLegend": ["true"],
"FeatureSource": [{
"ClassName": ["Default:AX_Flurstueck"],
"Geometry": ["Geometry"],
"ResourceId":
["Library://MobileViewer/Flurkarte/Daten/AX_Flurstuecke.FeatureSource"]
}],
"LayerDefinition":
["Library://MobileViewer/Flurkarte/Layer/Flurstuecke.LayerDefinition"],
"LegendLabel": ["Flurstuecke"],
"Name": ["Flurstuecke"],
"ObjectId": ["305a0c88-95d6-11e6-8000-0050569cbc24"],
"ParentId": ["3057aaf6-95d6-11e6-8001-0050569cbc24"],
*"ScaleRange": [{
"FeatureStyle": [{
"Rule": [{
"Filter": null,
"Icon":
["iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAADpJREFUOI1jYGBg2MrAwPCfTLyVEcogG7AgsRlJ1PufgYGBgYkS20cNGDVg8BhAcWZiYmBg2EaB/m0AZkoT5bViUtAAAAAASUVORK5CYII="],
"LegendLabel": null
}],
"Type": ["3"]
}],
"MaxScale": ["1000000000000"],
"MinScale": ["0"]
}],
* "Selectable": ["true"],
"Type": ["1"],
"Visible": ["true"]
},
/
*Flurstuecke.LayerDefinition.xml:*/
<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="LayerDefinition-2.4.0.xsd" version="2.4.0">
*<VectorLayerDefinition>
*
<ResourceId>Library://MobileViewer/Flurkarte/Daten/AX_Flurstuecke.FeatureSource</ResourceId>
<Watermarks />
<FeatureName>Default:AX_Flurstueck</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<PropertyMapping>
<Name>GISID</Name>
<Value>GISID</Value>
</PropertyMapping>
<PropertyMapping>
<Name>AMTLICHEFL</Name>
<Value>AMTLICHEFL</Value>
</PropertyMapping>
<Geometry>Geometry</Geometry>
<VectorScaleRange>
<AreaTypeStyle>
<AreaRule>
<LegendLabel>
</LegendLabel>
<AreaSymbolization2D>
<Fill>
<FillPattern>Solid</FillPattern>
<ForegroundColor>00FFFFFF</ForegroundColor>
<BackgroundColor>ffffffff</BackgroundColor>
</Fill>
<Stroke>
<LineStyle>Solid</LineStyle>
<Thickness>1</Thickness>
<Color>ff000000</Color>
<Unit>Points</Unit>
<SizeContext>MappingUnits</SizeContext>
</Stroke>
</AreaSymbolization2D>
</AreaRule>
</AreaTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
MapGuide Server (Version 3.0.0.8701)
MapGuide Viewer (Version 3.0.0.8701)
Windows Server 2012 R2 Standard 64 Bit
Ajax Viewer with PHP
Tested with Internet Explorer 11 and Chrome Version 51.0.2704.103 m
Matze
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Bug-CreateRuntimeMap-returns-scalerange-with-Null-when-using-Raster-or-WMS-layers-in-Map-tp5291469.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list