Clear InformationLayer.Items before adding MapShapes problem.

4 posts, 0 answers
  1. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 24 Nov 2009 Link to this post

    Hi,

    I have run into an issue when using the InformationLayer.  I am adding some MapPolygons to the the InformationLayer object and I noticed that if I call .Items.Clear() before adding new MapShapes to the .Items collection, they won't draw on the screen until I interactive with the map like pan or zoom.

    If I don't call .Items.Clear() before adding my MapShapes the control properly redraws and the shapes show up without having to pan or zoom the map.

    Cheers,
    Clint
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 26 Nov 2009 Link to this post

    Hi Clint Singer,

    Thank you for the information. We were able to reproduce the problem. We will fix it in the Q3 SP1 release.

    Regards,
    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.
  3. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 27 Nov 2009 Link to this post

    Hi,

    In your 11.27 release notes it states "Fixed an issue when dynamically adding MapShape objects to the InformationLayer" and I was wondering if it was related the issue that I raised in this thread.  If it is then I will have to report that the problem doesn't appear to be fixed.  When I call clear before adding polygons to my .Items collection they won't show up until I pan or zoom the map.

    Cheers,
    Clint
  4. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Dec 2009 Link to this post

    Hi Clint Singer,

    The 11.27 internal build fixes other type of problem with dynamic adding MapShape objects to the InformationLayer. The problem you described will be fixed in the next internal build.

    Kind regards,
    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.
Back to Top