MapMouseLocationIndicator LocationFormat

2 posts, 1 answers
  1. Paul
    Paul avatar
    2 posts
    Member since:
    Aug 2011

    Posted 27 Nov 2011 Link to this post

    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. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 30 Nov 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top