// display tiles for the map axMap1.Projection = tkMapProjection.PROJECTION_GOOGLE_MERCATOR; axMap1.TileProvider = tkTileProvider.OpenStreetMap; new GlobalSettings {ReprojectLayersOnAdding = true}; // adding your own dataint layerHandle = axMap1.AddLayerFromFilename(@"d:\my_data.shp", tkFileOpenStrategy.fosAutoDetect, true); var sf = axMap1.get_Shapefile(layerHandle); if (sf != null) { // do some manipulations with it }
↧
Updated Wiki: Code sample
↧