Fixed overlays possible?

2 posts, 0 answers
  1. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 29 Aug 2011 Link to this post

    I'm hosting the WPF control in a WinForms project. I currently have a label positioned over the map for informational messages, such as 'drawing map' or 'no data selected'. However when the map is resized or panned, the label and/or the map are drawn incorrectly, or not at all. Is there a built-in overlay available in the map that is fixed to screen coordinates, rather than geographic coordinates? Similar to how the mouse position and scale never move.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Sep 2011 Link to this post

    Hi Jason,

    The map control does not have a built-in overlay which allows to fix items to screen coordinates. But you can just add an element after the RadMap element to show it over the map control.
    The sample code is below.
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadMap x:Name="radMap">
            <telerik:RadMap.Provider>
                <telerik:OpenStreetMapProvider />
            </telerik:RadMap.Provider>
        </telerik:RadMap>
        <TextBox Text="Info Message" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="10" />
    </Grid>

    All the best,
    Andrey Murzov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

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