Why are there three kinds of polygons and polylines? Which one I should use?
Compressed these shapes try to keep geometry in forms of short instead of double . This approach allows you to give up about 80% of memory that will be used with regular kinds of shapes. But it will require some more time to render such shapes. So if you are limited with memory, but have a fast CPU try these shapes. Another point these shapes dont allow the user to change geometry. Dynamic these shapes do not copy initial arrays inside them. Instead they just keep references to initial arrays. So you can share the same arrays between many shapes. That allows you to save some memory, and will provide you with direct access to geometry. But in this case, it’s your responsibility to recalculate the bounding box for the shape, if you changed geometry. Whenever you have polylines that enclose the same areas as polygons, you can consider these shapes a good option. Regular these shapes copy initial arrays inside objects, provide methods to access geometry, and perform all automatic updates f