Interface IRenderTheme

All Known Implementing Classes:
AtlasRenderTheme, RenderTheme

public interface IRenderTheme
  • Method Details

    • matchElement

      RenderStyle[] matchElement(GeometryBuffer.GeometryType type, TagSet tags, int zoomLevel)
      Matches a MapElement with the given parameters against this RenderTheme.
      Parameters:
      zoomLevel - the zoom level at which the way should be matched.
      Returns:
      matching render instructions
    • dispose

      void dispose()
      Must be called when this RenderTheme gets destroyed to clean up and free resources.
    • getLevels

      int getLevels()
      Returns:
      the number of distinct drawing levels required by this RenderTheme.
    • getMapBackground

      int getMapBackground()
      Returns:
      the map background color of this RenderTheme.
    • isMapsforgeTheme

      boolean isMapsforgeTheme()
      Is Mapsforge or VTM theme.
    • updateStyles

      void updateStyles()
    • scaleTextSize

      void scaleTextSize(float scaleFactor)
      Scales the text size of this RenderTheme by the given factor.
      Parameters:
      scaleFactor - the factor by which the text size should be scaled.
    • transformBackwardKey

      String transformBackwardKey(String key)
      Transform internal key to tile source key. e.g. for lazy fetched tag values via tile source key. Use when tile source and internal keys have 1-1 relation.
      Returns:
      the backwards transformed tag key.
    • transformForwardKey

      String transformForwardKey(String key)
      Transform tile source key to internal key.
      Returns:
      the forward transformed tag key.
    • transformBackwardTag

      Tag transformBackwardTag(Tag tag)
      Transform internal tag to tile source tag. Use when tile source and internal tags have 1-1 relation.
      Returns:
      the backwards transformed tag.
    • transformForwardTag

      Tag transformForwardTag(Tag tag)
      Transform tile source tag to internal tag.
      Returns:
      the forward transformed tag.