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

New Post: Select multiple layers with cmSelection Tool

$
0
0
Hi, you should handle SelectBoxFinal event and call Shapefile.SelectShapes for each layer. Here is a single layer example. To run it for multiple layers something like this should be used:
for (int i = 0; i < axMap1.NumLayers; i++)
{
    int layerHandle = axMap1.get_LayerHandle(i);
    var sf = axMap1.get_Shapefile(layerHandle);
    if (sf != null)
    {
        //sf.SelectShapes
    }
}
Version 4.9.3 also has built-in in selection mechanism (ChooseLayer event should be handled). It's described in my post here . However it won't suit your needs, since there is no way to run it for multiple layers.

Hope this helps,
Sergei

Viewing all articles
Browse latest Browse all 2341

Trending Articles



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