This is a migrated thread and some comments may be shown as answers.

InformationLayer.GetBestView() give wrong result with data binded MapPinPoint

1 Answer 11 Views
Map
This is a migrated thread and some comments may be shown as answers.
Gauthier
Top achievements
Rank 1
Gauthier asked on 06 Dec 2013, 07:25 AM
Hi,



I tried to use the InformationLayer.GetBestView(items), but it requires to be called several times to have correct result.

(If it is called with MapPinPoint)



Here is the template of the MapPinPoint :



<DataTemplate x:Key="ObstructionPointItemTemplate"><br>
            <telerik:MapPinPoint <br>
                BorderBrush="{StaticResource ObstructionPointColor}"<br>
                Template="{StaticResource PointControlTemplate}" <br>
                telerik:MapLayer.Location="{Binding }"><br>
                <telerik:MapLayer.HotSpot><br>
                    <telerik:HotSpot X="0.5" Y="0.5" /><br>
                </telerik:MapLayer.HotSpot><br>
            </telerik:MapPinPoint><br>
</DataTemplate>






In order to eliminate any side effects with the databinding or the map provider latency, the call to 'GetBestView' is made by an event handler attached to a user interaction (MouseRightButtonDown).



I have a lightweight VS2012 solution were I reproduced the issue, if needed





Can you please help me ?





Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 10 Dec 2013, 08:41 PM
Hi Gauthier,

In the Q2 2013 release we've introduced new visualization engine in RadMap. It has been designed from scratch to have better performance. The new engine is based on the VisualizationLayer class. This is why I would recommend giving it a try. You can find more information and examples of the new layer here:

The VisualizationLayer also contains the GetBestView() method and it should work correctly in your case. Please try it our and let us know if it helps.

Regards,
Andrey Murzov
Telerik

TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.



Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.



Sign up for Free application insights >>
Tags
Map
Asked by
Gauthier
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or