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

Multliple layered tile providers

5 Answers 93 Views
Map
This is a migrated thread and some comments may be shown as answers.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 23 Nov 2009, 07:38 PM
Hi,

I would like to add another feature request. 

There are cases when one needs to query more than one tile source and overlay the results. Perhaps at the time that you add custom tile sources you can refactor your code to use tile source providers as just an additional layer and/or have a mechanism that allow you to specify which areas need to query which provider.  There should also be opacity features so when one is combining multiple sources, the top layers could let through the bottom layers at varying opacity levels.  Of course if there isn't any opacity specified then a good optimization would to not draw the underlying tiles, except for the edge layers where there is the possible need for the underlying layer to show through because the tile doesn't cover the whole area; like in a map that only has a discreet area rather than the whole world.

Should I be using the feature request option in my account for these? Or is it ok to post them in the forum.  I have been using the forum because that is the only way other people can chime in with other ideas.

Cheers,
Clint

5 Answers, 1 is accepted

Sort by
0
Clint Singer
Top achievements
Rank 1
answered on 24 Nov 2009, 01:28 AM
Hi,

I found TileLayer (don't know how I missed it initially) and I assume that it is intended to do what I expect to do with multiple map providers.  Unfortunately when I try to use it all I get is an exception.  I am using one of my custom map providers which uses VEMapProvider as its base class.

Can one use VEMapProvider in the TileLayer?  Or is it in this case where one would have to use MapProviderBase derived class instead?

(If that is the case, hopefully things become a bit more consistent over time.)

Unfortunately I am not sure what the details of the exception are as all I get is the "Unhandled Exception" dialog that wants me to connect to a debugger that isn't the debugger that I am already in... How frustrating!  Any chance anyone knows how to set up ones development environment so that all exceptions end up in the attached debugger?

Cheers,
Clint
0
Clint Singer
Top achievements
Rank 1
answered on 24 Nov 2009, 05:12 PM
Hi,

I managed to find my exception.  I ended up creating my tile layer source by deriving it directly from MapProviderBase.  I was trying to use my map provider that was derived from VEMapProvider before my token came in.  I also needed to directly set the MapControl property.

Now I have another problem.  The new tile layer doesn't react to mouse actions.  So I see the map but I can't zoom it, pan it etc.  The navigation controls update with the background map provider though. 

Is this not wired up properly internally or is there something more that I need to do in my code.  ie. It isn't enough to just add a TileLayer to the Items property of RadMap?

Cheers,
Clint
0
Andrey
Telerik team
answered on 25 Nov 2009, 10:41 AM
Hi Clint,

Unfortunately currently it is not possible to use the TileLayer directly in your application.

As for multiple tile layers -- this feature is not supported in the RadMap CTP release. We have this feature in our extended TODO list but it is unlikely that we will be able to include it for the official Q1 2010 release.


Greetings,
Andrey Murzov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Clint Singer
Top achievements
Rank 1
answered on 25 Nov 2009, 04:41 PM
Hi,

Well I am sorry to hear that.  Other than the mouse control not working can you think of any other immediate problems?

Cheers,
Clint
0
Andrey
Telerik team
answered on 01 Dec 2009, 08:35 AM
Hello Clint,

Since the current version of the map control is CTP it definitely has some limitations you know about already. We are working hard to provide as much functionality as we can for 2010.Q1 release (which will include first official release of our control). We appreciate your cooperation. It helps us to make our product better.

Sincerely yours,
Andrey Murzov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Map
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Clint Singer
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or