Package globus.glmap

Class GLMapVectorStyle

java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapVectorStyle

public class GLMapVectorStyle extends GLNativeObject
GLMapVectorStyle defines appearance of text inside GLMapMarkerLayer or GLMapView`. Style used to render map is stored inside Style.mapcss file. Detailed MapCSS specification is located at: http://www.mapcss.org
  • Method Details

    • createStyle

      public static GLMapVectorStyle createStyle(@NonNull String style)
      Creates style object.
      
       GLMapVectorStyle style = GLMapVectorStyle.createStyle("{font-size:12;}");
       
      Parameters:
      style - String with style rule in MapCSS format.
      Returns:
      New GLMapVectorStyle object or `null` in case of error
    • createWithIconAndTint

      public static GLMapVectorStyle createWithIconAndTint(String iconName, int iconTint)
      Creates style with icon and tint
      Parameters:
      iconName - icon name
      iconTint - icon tint
      Returns:
      New style with icon and tint
    • getTextStyleSubset

      @Nullable public GLMapVectorStyle getTextStyleSubset()
      Subset of parameters that defines only text style
      Returns:
      subset of parameters that defines only text style
    • getIconName

      public GLMapValue getIconName()
      Returns:
      Resolved value of 'icon-image' attribute.
    • getIconTint

      public int getIconTint()
      Returns:
      Resolved value of 'icon-tint' attribute.
    • getIconScale

      public float getIconScale()
      Returns:
      Resolved value of 'icon-scale' attribute.
    • getText

      public GLMapValue getText()
      Returns:
      Resolved value of 'text' attribute.
    • getDetailsText

      public GLMapValue getDetailsText()
      Returns:
      Resolved value of 'details-text' attribute.
    • getDetailsDescription

      public GLMapValue getDetailsDescription()
      Returns:
      Resolved value of 'details-description' attribute.