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

Fixed overlays possible?

1 Answer 116 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jason D
Top achievements
Rank 1
Veteran
Jason D asked on 29 Aug 2011, 04:51 PM
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.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 01 Sep 2011, 09:52 AM
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 >>

Tags
Map
Asked by
Jason D
Top achievements
Rank 1
Veteran
Answers by
Andrey
Telerik team
Share this question
or