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

Overriding drawing methods

1 Answer 37 Views
Map
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 15 May 2013, 04:56 PM
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.

Ryan

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 18 May 2013, 03:19 PM
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:
http://mapshaper.com/test/MapShaper.swf

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

Regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Map
Asked by
Ryan
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or