コード例 #1
0
        protected EnhancedMapPolyline createPolyLine(IGeometry lineString, MapLayerBase layer)
        {
            var line = new EnhancedMapPolyline
            {
                Locations     = CoordinateConvertor.CoordinatesToLocationCollection(lineString.Coordinates),
                GeometryStyle = StyleSpecification,
                Visibility    = Visibility
            };

            layer.AddChild(line, CoordinateConvertor.ConvertBack(lineString.Centroid.Coordinate));
            mapObjects.Add(line);
            return(line);
        }
コード例 #2
0
 protected EnhancedMapPolyline createPolyLine(IGeometry lineString, MapLayerBase layer)
 {
     var line = new EnhancedMapPolyline
     {
         Locations = CoordinateConvertor.CoordinatesToLocationCollection(lineString.Coordinates),
         GeometryStyle = StyleSpecification,
         Visibility = Visibility
     };
     layer.AddChild(line, CoordinateConvertor.ConvertBack(lineString.Centroid.Coordinate));
     mapObjects.Add(line);
     return line;
 }