Package 

Class SimpleFastPointOverlay

  • All Implemented Interfaces:
    org.osmdroid.views.util.constants.OverlayConstants

    
    public class SimpleFastPointOverlay
    extends Overlay
                        

    Overlay to draw a layer of clickable simple points, optimized for rendering speed. Nice performance up to 100k points. Supports styling each point and label individually, or shared style for all points in a theme. Does not support rotated maps. There are three rendering algorithms: NO_OPTIMIZATION: all points all drawn in every draw event MEDIUM_OPTIMIZATION: not recommended for >10k points. Recalculates the grid index on each draw event and only draws one point per grid cell. MAXIMUM_OPTIMIZATION: for >10k points, only recalculates the grid on touch up, hence much faster. Performs well for 100k points.

    TODO: a quadtree index would improve rendering speed! TODO: an alternative to the CIRCLE shape, cause this is slow to render Created by Miguel Porto on 25-10-2016.