Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: MapWinGIS Layer Methods don't seem to work correctly

$
0
0
The following C# code does not return back the information that it should:

int newPosition = -1;
int layerPosition = -1;
int layerHandle = -1;
String layerName = "";

// This works fine.......
layerHandle = axMap1.AddLayer(shp, true);
layerPosition = axMap1.get_LayerPosition(layerHandle);

// This returns an empty string ""
layerName = axMap1.get_LayerName(layerHandle);

Anyone else experience this, or am I doing something wrong?

Thanks!

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>