Overriding drawing methods

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    1 posts
    Member since:
    May 2013

    Posted 15 May 2013 Link to this post

    Greetings, we are looking to purchase Telerik and one big thing we are looking to do is override drawing methods on the map.

    For instance, we have 1000 polygons with 2000 points each. I need to be able to override the draw method to make it much more efficient. (example - do not draw if boundaries are not within the viewing area or cut out points if they do not change the shape). Is this possible with the map control?

    Thanks for your assistance and kudos on many well done controls.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 18 May 2013 Link to this post

    Hi Ryan,

    Unfortunately it is not possible to override draw method on the information layer. But actually it is not necessary. The things you've described can be implemented without it. For example, using DynamicLayer you can show only shapes which are in the viewing area. You also can optimize your shapes by removing unnecessary points before passing them to the dynamic layer.
    If you use a shape-file, then you might try to simplify it for improve the performance with this online tool:

    I have attached a sample solution which uses the DynamicLayer with map shapes.
    I hope it helps.

    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top