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 tintfloat
int
getText()
Subset of parameters that defines only text styleMethods 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
Subset of parameters that defines only text style- Returns:
- subset of parameters that defines only text style
-
getIconName
- Returns:
- Resolved value of 'icon-image' attribute.
-
getIconTint
@ColorInt public int getIconTint()- Returns:
- Resolved value of 'icon-tint' attribute.
-
getIconScale
public float getIconScale()- Returns:
- Resolved value of 'icon-scale' attribute.
-
getText
- Returns:
- Resolved value of 'text' attribute.
-
getDetailsText
- Returns:
- Resolved value of 'details-text' attribute.
-
getDetailsDescription
- Returns:
- Resolved value of 'details-description' attribute.
-