Isolated area in the map

I have these files:
.cpg
.dbf
.prg
.shp
.shx

And this is the output of the program when I load .shp file:

image

If you see the center of the map, some of part is isolated with color.
What is the cause of the isolation area?

Thank You
Kayumiy

Hello Kayumiy.

Iā€™m not sure if I understand what you are asking. From what I see, it looks like you have loaded 2 layers.

One is a polygon layer, being something like counties or districts. It is sort of a pink-ish salmon color.
The second looks like it might be a road centerline layer, being a gray color.

When a layer is loaded without having a specifically assigned color, it is given a randomly assigned color.

Is there something more you are asking about or concerned about? If so, could you post the code you are using to add the layers?

Regards,
Jerry.

1 Like
//Add first layer to your map
            int intHandler1; //integer index to handle the layer
            //create a new instance for MapWinGIS.Shapefile 
            //MapWinGIS.Shapefile  is a data provider for ESRI Shapefile
            MapWinGIS.Shapefile shapefile1 = new MapWinGIS.Shapefile();
            //Define the data source for MapWinGIS.Shapefile instance
            shapefile1.Open(@"C:\Users\User\Downloads\Telegram Desktop\AL_11_D002_20200502\AL_11_D002_20200502.shp", null );                   
            //display the layer on the map
            intHandler1 = axMap1.AddLayer(shapefile1, true);

Do you still have this question or did you figure it out on your own?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.