Quantcast
Viewing all articles
Browse latest Browse all 2341

Updated Wiki: Code sample

// 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
}

Viewing all articles
Browse latest Browse all 2341

Trending Articles