I am testing ToolTip.cs
It does not show label when cursor over the layer.
See the result please:
This is the tutorial’s result:
I am testing ToolTip.cs
It does not show label when cursor over the layer.
See the result please:
This is the tutorial’s result:
Hello @Kayumiy
Without knowing anything about the layer you are using (point vs polyline vs polygon) my first guess would be to try increasing the Tolerance. You are handing in a point to SelectShapes, with a tolerance of 0.0. So if it is a point or polyline shapefile, try setting the tolerance to perhaps 10 or 20.
In the tutorial, landuse.shp is used when shapefile is loaded.
I don’t have a landuse.shp, therefore, I am using my own shapefile.
How can I find landuse.shp in order to test properly?
You don’t need to use landuse.shp. Yours is fine. I’m just saying that depending upon the type of shape, you may need a tolerance.
I have tested by setting tolerance to 10 or 20. No label in the map.
I don’t even know in what position the label will be displayed in the map.
How Do I know type of layer (polygon, point or polyline)?
Hi Kayumiy
First convert the layer to shapefile using AxMap.get_ShapeFile(int layerindex)
Then get the Type by using shapefile.ShapefileType.
If the layer is OgrLayer then you can get the type using layer.ShapeType
Regards,
Ramki