The XamMap that I am using right now is fairly small (300x300 or so) and I have some custom controls on the map. The problem I'm running into is some of the controls are practically on top of each other and are not being rendered. Right now I have zooming disabled on the map and when I enable it and zoom it they do render so its a matter of the map doing something.
I was looking at a previous post (http://news.infragistics.com/forums/t/52068.aspx) and tried this method to see if I could just force the control to render even though its not very visible but it wasn't working. Practically I'll need to find a better solution but I'm wondering how I can force the controls to render.
Right now what is going on is they'll render just fine when I'm zoomed in to a certain depth. Then as I zoom out one starts to overshadow the other and make it transparent and then once they start to overlap enough it just removes the control from view.
Thanks
Matt
Hi Matt,
XamMap tries to minimize objects(Captions and ValueTemplates) overlap by shifting them or by changing their opacity. You can control this behaviour through MapLayer's SmartOverlap and SmartFade properties. SmartOverlap is the maximum permissable overlap for objects which are to be displayed over MapElements. This property setting should be expressed as a value between 0 and 1. SmartFade determines the opacity of objects which overlap with one another. A higher value for this property will result in more transparent object when an overlap occurs.
Try with the following settings:
mapLayer.SmartOverlap = 1.0;mapLayer.SmartFade = 0.0;
Regards,
Ivan Kotev