Open up DynamicLayer API

2 posts, 0 answers
  1. michael
    michael avatar
    1 posts
    Member since:
    Nov 2010

    Posted 03 Nov 2010 Link to this post

    I've been trying out the Telerik Silverlight Controls Suite but I'm currently stuck with the DynamicLayer implementation. As a matter of fact, we're aware that the RadMap Control is one of the newer controls of the suite and hence it doesn't cover all the scenarios that we wish it would.

    I'm trying to leverage the RadMap control to develop a tracking solution. While trying to use the DynamicLayer to load different level of details based on the zoom level I'm stuck with the feature set provided out of the box. On top of loading pin points dynamically I would like to show a polyline showing the tracked path together with a label showing an increasing number for each track point based on the timestamp of the pin point.

    Basically, the issue that I'm faced with is that the DynamicLayer is seperately requesting content for each tile defined for a particular zoom level. This means that if I would like to draw a continous PolyLine for all loaded track points on the layer (which very often have been loaded from different tiles), I don't have the possibility to hook into the DynamicLayer since there is no event exposed that would tell me that a load operation has been completed.

    This is only one approach of how to solve my issue. Another one would be to open up the API of the DynamicLayer and RadMap (meaning declaring methods as protected virtual instead of private) so that I can derive from these classes and implement my own controls adding functionality as required. This makes a lot of sense for all controls since Telerik will never be able to cover all special requirements for each customer.

    What do you think about this?

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 08 Nov 2010 Link to this post

    Hi Michael,

    I’m apologize, but I’m not sure I know what you mean when say that you don’t know when a load operation has been completed. The implementation of the IMapDynamicSource is a completely your own. So you have total control on it. You always know when data arrive from your data source (WCF or something else). You can store your data elements locally and then use them to draw a MapPolyLine.

    As for the making the methods of the DynamicLayer protected – it is really not good idea. It can make control really unstable. We always do our best to help customers to implement requested scenarios in the most consistent way. If you need some new events –let us to know what events you need and what data should come in the event arguments. We will find the best way to implement them in the architecture of our control.

    Best wishes,
    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