10-05-2017 09:04 AM
I'm trying to make a custom application. The topic of the lab is to add MapView to a Form and create a legend in this MapView. So, i've added COM MapVIew to form and trying to create a legend on loading this form as
ocxMapView.Legend = New PView.Legend
In debug mode i see, that legend has been created in MapView, but it doesn't show up. I even added some properties e.g. visible=true, height=60, etc. But it doesn't seem to work.
So, can you help me out on this issue.
Solved! Go to Solution.
10-05-2017 09:11 AM
PView.Legend is no longer a visual object, it is rather a container to keep all the legend entries and other properties. If you want to visualize the legend, use the GMLegendView control and assign its Legend property to the same object as the MapView's Legend.