Class DatabaseRenderer

    • Constructor Detail

      • DatabaseRenderer

        public DatabaseRenderer​(MapDataStore mapDataStore,
                                org.mapsforge.core.graphics.GraphicFactory graphicFactory,
                                TileCache tileCache,
                                TileBasedLabelStore labelStore,
                                boolean renderLabels,
                                boolean cacheLabels,
                                HillsRenderConfig hillsRenderConfig)
        Constructs a new DatabaseRenderer. There are three possible configurations: 1) render labels directly onto tiles: renderLabels == true && tileCache != null 2) do not render labels but cache them: renderLabels == false && labelStore != null 3) do not render or cache labels: renderLabels == false && labelStore == null
        Parameters:
        mapDataStore - the data source.
        graphicFactory - the graphic factory.
        tileCache - where tiles are cached (needed if labels are drawn directly onto tiles, otherwise null)
        labelStore - where labels are cached.
        renderLabels - if labels should be rendered.
        cacheLabels - if labels should be cached.
        hillsRenderConfig - the hillshading setup to be used (can be null).
    • Method Detail

      • executeJob

        public org.mapsforge.core.graphics.TileBitmap executeJob​(RendererJob rendererJob)
        Called when a job needs to be executed.
        Parameters:
        rendererJob - the job that should be executed.