Package globus.glmap
Class GLMapVectorStyle
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapVectorStyle
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 Summary
Modifier and TypeMethodDescriptionstatic GLMapVectorStyle
createStyle
(String style) Creates style object.static GLMapVectorStyle
createWithIconAndTint
(String iconName, int iconTint) Creates style with icon and tintRetrieves the resolved value of the 'details-description' attribute.Retrieves the resolved value of the 'details-text' attribute.Retrieves the resolved value of the 'icon-image' attribute.float
Retrieves the resolved value of the 'icon-scale' attribute.int
Retrieves the resolved value of the 'icon-tint' attribute.getText()
Retrieves the resolved value of the 'text' attribute.Retrieves a subset of parameters that define only the text style.Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Method Details
-
createStyle
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
Creates style with icon and tint- Parameters:
iconName
- icon nameiconTint
- icon tint- Returns:
- New style with icon and tint
-
getTextStyleSubset
Retrieves a subset of parameters that define only the text style.- Returns:
- A
GLMapVectorStyle
object representing the text style subset, ornull
if no text style is defined.
-
getIconName
Retrieves the resolved value of the 'icon-image' attribute.- Returns:
- A
GLMapValue
representing the resolved 'icon-image' attribute value.
-
getIconTint
@ColorInt public int getIconTint()Retrieves the resolved value of the 'icon-tint' attribute.- Returns:
- The resolved color value of the 'icon-tint' attribute as an integer.
-
getIconScale
public float getIconScale()Retrieves the resolved value of the 'icon-scale' attribute.- Returns:
- The resolved scaling factor of the 'icon-scale' attribute.
-
getText
Retrieves the resolved value of the 'text' attribute.- Returns:
- A
GLMapValue
representing the resolved 'text' attribute value.
-
getDetailsText
Retrieves the resolved value of the 'details-text' attribute.- Returns:
- A
GLMapValue
representing the resolved 'details-text' attribute value.
-
getDetailsDescription
Retrieves the resolved value of the 'details-description' attribute.- Returns:
- A
GLMapValue
representing the resolved 'details-description' attribute value.
-