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

MapMouseLocationIndicator LocationFormat

2 Answers 92 Views
Map
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 27 Nov 2011, 07:47 AM
I want to change to format of the map mouse location indicator to decimal degrees.

In the help it shows how to do this if the indicator is OUTSIDE the map control (http://www.telerik.com/help/wpf/radmap-features-mouse-location.html).

I want to do this with the built-in indicator. How can I do this please?

2 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 30 Nov 2011, 09:19 AM
Hi Paul,

Unfortunately you can't change the format of the built-in mouse location indicator, but you can place the custom MapMouseLocationIndicator in the same location. The sample code is below:
<UserControl x:Class="CustomMouseLocator.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="700">
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadMap x:Name="radMap"
                        MouseLocationIndicatorVisibility="Collapsed"
                        Center="40,-100"
                        ZoomLevel="5">
            <telerik:RadMap.Provider>
                <telerik:OpenStreetMapProvider />
            </telerik:RadMap.Provider>
        </telerik:RadMap>
        <telerik:MapMouseLocationIndicator MapControl="{Binding ElementName=radMap}"
                                           LocationFormat="Number"
                                           Margin="20,0,0,20"
                                           HorizontalAlignment="Left" VerticalAlignment="Bottom"/>
    </Grid>
</UserControl>

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Luis
Top achievements
Rank 1
answered on 08 Mar 2017, 01:41 PM

And what would be the c# code behind this xaml to bind the decimal degrees?

Tags
Map
Asked by
Paul
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Luis
Top achievements
Rank 1
Share this question
or