Пример #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;
 }