Clustered data source and dynamic layer

5 posts, 1 answers
  1. Alberto
    Alberto avatar
    6 posts
    Member since:
    Sep 2011

    Posted 02 Oct 2013 Link to this post

    Hi there, I would ask if there is a way to use both the clustering system offered by the clustered datas source and the dynamic layer / virtualization layer.

    I need to show a lot of symbols in the map and I need also the clustering. There is any way to achieve this?

    Thank you.
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 04 Oct 2013 Link to this post

    Hello Alberto,

    I would recommend you to take a look into the new visualization engine introduced in 2013.Q2 release. This engine is based on the VisualizationLayer class and have integrated support for clustering and virtualization. You can find example here:

    http://demos.telerik.com/silverlight/#Map/ClusterVirtualization

    Regards,
    Andrey Murzov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Alberto
    Alberto avatar
    6 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2013 Link to this post

    Thank you very much, it is just what I was looking for.
  5. Alberto
    Alberto avatar
    6 posts
    Member since:
    Sep 2011

    Posted 07 Oct 2013 Link to this post

    I'm encountering another little problem.

    I'm using the VisualizationLayer with a custom VirtualizationSource (I inherited from IMapItemsVirtualizationSource and I fetch my objects asynchronously from a web service).

    Everything works as expected, but I need to know when the objects shown on map change.
    For now I use this dirty workaround:

    this.VisualizationLayer.LayoutUpdated += (s, e) =>
    {
    var visibleElements = this.VisualizationLayer.GetItemsInRectangle(this.Map.LocationRect);
    };
    There is any event or another approach that I can use?

    Thanks.
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 10 Oct 2013 Link to this post

    Hello Alberto,

    The GetItemsInRectangle is a single way to get objects within viewport. I think you should handle the RadMap.PanningFinished and RadMap.ZoomingFinished events. Also you should update the list of visible objects after you add items asynchronously from a web service using the CompleteItemsRequest method.

    Regards,
    Andrey Murzov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner