[mapguide-users] Temporary Line String Layer not showing up on runtime map.

rsri rupam.srivastava at atkinsglobal.com
Wed Sep 2 08:41:50 EDT 2009


Hello folks. 

I have read several posts and solutions where people have come across this
problem, but I couldn't find a definitive solution. I would indeed be very
grateful if someone may please help me. 

The task is to allow the user to click and create a digitized line and then
display it on the runtime map. The coordinates are sent to the aspx page
which does some processing and gets the length of each segment. All this
works fine. 

The problem is when showing this line string on the map. The feature service
is created successfully, the layer is created, feature source is added to a
new layer, the layer gets added to the map and shows in the legend, but the
line string feature does not show on the map !!! 

I am attaching the .cs file as a text file and pasting the
layerdefinition.xml. Can some one please help me with this. 


Thanks 

Code file is:


Layer Definition is as follows:


<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition version="1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd">
 <VectorLayerDefinition>
   <!--<ResourceId>MeasureLength</ResourceId>-->
   <ResourceId />
  <FeatureName>Default:MeasureLength</FeatureName> 
  <FeatureNameType>FeatureClass</FeatureNameType> 
<PropertyMapping>
  <Name>LENGTH</Name> 
  <Value>LENGTH</Value> 
  </PropertyMapping>
<PropertyMapping>
  <Name>UNITS</Name> 
  <Value>UNITS</Value> 
  </PropertyMapping>
   <PropertyMapping>
     <Name>ID</Name>
     <Value>ID</Value>
   </PropertyMapping>   
  <Geometry>GEOM</Geometry> 
<VectorScaleRange>
  <LineTypeStyle>
    <LineRule>
      <LegendLabel />
      <LineSymbolization2D>
        <LineStyle>Solid</LineStyle>
        <Thickness>0.5</Thickness>
        <Color>FF808080</Color>
        <Unit>Millimeters</Unit>
      </LineSymbolization2D>
    </LineRule>
  </LineTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>




http://n2.nabble.com/file/n3566482/CustomTool.txt CustomTool.txt 
-- 
View this message in context: http://n2.nabble.com/Temporary-Line-String-Layer-not-showing-up-on-runtime-map-tp3566482p3566482.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list