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

Multiple MapProviders as Layers

10 Answers 211 Views
Map
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 13 Aug 2010, 01:30 PM
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

10 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 13 Aug 2010, 03:31 PM
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
0
Jason D
Top achievements
Rank 1
Veteran
answered on 20 Jan 2011, 02:16 AM
Until this is released, would a valid alternative be to create a custom provider that merges tiles together and returns a single tile image?
0
Andrey
Telerik team
answered on 21 Jan 2011, 05:43 PM
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>>
0
Jason D
Top achievements
Rank 1
Veteran
answered on 31 Mar 2011, 10:18 PM
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.
0
Jason D
Top achievements
Rank 1
Veteran
answered on 04 Apr 2011, 06:03 PM
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.
0
Andrey
Telerik team
answered on 05 Apr 2011, 07:27 AM
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
0
Jason D
Top achievements
Rank 1
Veteran
answered on 12 Apr 2011, 12:40 AM
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.
0
Andrey
Telerik team
answered on 14 Apr 2011, 07:19 AM
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
0
Jason D
Top achievements
Rank 1
Veteran
answered on 14 Apr 2011, 04:57 PM
I opened a ticket and included my sample code and tiles. Thanks.
0
Andrey
Telerik team
answered on 19 Apr 2011, 04:58 PM
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
Tags
Map
Asked by
Markus
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Jason D
Top achievements
Rank 1
Veteran
Share this question
or