public StringBuilder DrawRegionNames(List <Region> regions, List <ShapeFileFeatureLayer> modelLayers) { StringBuilder aux = new StringBuilder(); foreach (Region region in regions) { ShapeFileFeatureLayer shapeFileFeatureLayer = MapHelper.GetRegionFeatureLayer(region, modelLayers); PointShape pointShape = MapHelper.GetFeatureCenterPoint(shapeFileFeatureLayer, (region.ShapeFileIndex + 1 ?? 1)); aux.Append(KmlGeoCanvas.GetRegionNameXML(region.RegionName, pointShape)); } return(aux); }
public static String GetAsKML(List <ShapeFileFeatureLayer> shapeFileFeatureLayers) { KmlGeoCanvas kmlGeo = new KmlGeoCanvas(); GeoBrush gb = new GeoSolidBrush(GeoColor.StandardColors.LightGray); GeoPen gp = new GeoPen(gb) { DashStyle = LineDashStyle.Solid }; foreach (ShapeFileFeatureLayer shapeFileFeatureLayer in shapeFileFeatureLayers) { foreach (Feature feature in shapeFileFeatureLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.NoColumns)) { kmlGeo.DrawArea(feature, gp, DrawingLevel.LevelOne); } } //kmlGeo. return(string.Empty); }
public StringBuilder GetCumulativeFactorXML(ThinkGeo.MapSuite.DesktopEdition.Marker marker) { return(KmlGeoCanvas.GetCumulativeFactorXML(marker)); }
public KmlMapEngine() { _kmlGeoCanvas = new KmlGeoCanvas(); }