MapRectangle, MapPolygon... not working within a DataTemplate?

2 posts, 0 answers
  1. Frederic
    Frederic avatar
    4 posts
    Member since:
    Jun 2010

    Posted 15 Jun 2010 Link to this post

    I am binding a list of objects to an InformationLayer and trying to display:
    - some text
    - some shape, tied to current location and zoom level.
    XAML looks like that:
                <map:InformationLayer ItemsSource="{Binding Sales}"
                            <Canvas map:MapLayer.Location="{Binding Location}"
                                <TextBlock Text="Hi world"/> 
                                    Location="{Binding Location}" 
                                    StrokeThickness="2" /> 

    I can see the TextBlock (at the right location) but not the MapRectangle (beside, I have to use a custom attached property to bind the location!).
    It seems that MapRectangle (or any drawable) can only be added as direct childs to the InformationLayer class.
    Am I correct?
    And if so, I see little use in the map shape classes!

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 16 Jun 2010 Link to this post

    Hello Frederic,

    Unfortunately map shape objects can’t be used in the data template in current version of the RadMap control. We have this feature in our plans for the future releases of our control. You can check its availability using our PITS system:

    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top