Multiple MapProviders as Layers

11 posts, 0 answers
  1. Markus
    Markus avatar
    10 posts
    Member since:
    Aug 2010

    Posted 13 Aug 2010 Link to this post

    Hello again,

    I am wondering if there is a way to use multiple MapProviders and then show them on top of each other. For example a Providers-property instead of a Provider-property in the RadMap-class.
    As far as I've seen the InformationLayer and the DynamicLayer is no option for us since we want to deliver tiles.

    Best regards
       Markus
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 13 Aug 2010 Link to this post

    Hi Markus,

    Unfortunately it is not possible in the current version. But this feature is planned for the 2010.Q3 release. You can check its availability using our PITS:

    http://www.telerik.com/support/pits.aspx#/public/silverlight/31

    Greetings,
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 19 Jan 2011 Link to this post

    Until this is released, would a valid alternative be to create a custom provider that merges tiles together and returns a single tile image?
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 21 Jan 2011 Link to this post

    Hi Jason,

    It might be possible to create a map provider which merges tiles from two image sources, but we cannot recommend such approach as it would be rather complicated and error-prone task with lots of synchronization issues that need to be addressed.


    All the best,
    Andrey Murzov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  6. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 31 Mar 2011 Link to this post

    I updated to the new version with multiple provider support using the blog example. It sort of works, so looking for some guidance. For my custom TiledMapSource, I only have tiles for which there is actually data. For example, our data may be restricted to a small area, such as 1 mile by 1 mile. My data shows up, but the other tiles do not, unless they are already cached. How should I handle this?

    Possibly related, it take about 10 seconds for my *one* tile to show up and I'm getting alot of System.Net.WebExceptions.
  7. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 04 Apr 2011 Link to this post

    I will be out on vacation this week, so I will not be able to reply to any responses. If we can get this to work, we will probably make a purchase. Thanks in advance.
  8. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 05 Apr 2011 Link to this post

    Hello Jason,

    If you have a few small regions with tiles and all other regions of the map are empty, then you can use the new feature of the RadMap control - geographically limited tile providers. For example, the following XAML shows 2 OpenStreet 1x1 mile "windows":

    <telerik:RadMap Name="radMap" 
            ZoomLevel="12"
            DistanceUnit="Mile"
            Center="45.133, -75.7396">
        <telerik:RadMap.Providers>
            <telerik:EmptyProvider />
            <telerik:OpenStreetMapProvider telerik:MapLayer.ZoomRange="12,19"
                   GeoBounds="45.133,-75.7396,1,1" />
            <telerik:OpenStreetMapProvider telerik:MapLayer.ZoomRange="12,19"
                   GeoBounds="45.233,-75.7396,1,1" />
        </telerik:RadMap.Providers>
    </telerik:RadMap>


    Greetings,
    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
  9. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 11 Apr 2011 Link to this post

    Thank you. Everything is working great. I fixed the delay by implementing the caching system (I just call GetTile from GetCachedTile). Unless I'm doing something wrong, I would suggest this area be looked at. I can see GetTile is called and I immediately return tiles, but there are several seconds before they show up. If I return the tile using GetCachedTile there is no delay. I can submit a ticket with sample data if you would like.
  10. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 14 Apr 2011 Link to this post

    Hi Jason,

    The caching system allows the customization.
    I'm not sure about a way you use. It will be interesting to look at your implementation.
    So, it will be great if you send to us your code for additional review.

    All the best,
    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
  11. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 14 Apr 2011 Link to this post

    I opened a ticket and included my sample code and tiles. Thanks.
  12. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Apr 2011 Link to this post

    Hi Jason,

    Thanks a lot for the sample solution.
    We have reproduced the problem. We have created the PITS issue to fix it. You can track it using the following link:
    http://www.telerik.com/support/pits.aspx#/public/wpf/5583

    Regards,
    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
UI for WPF is Visual Studio 2017 Ready