Package globus.glmap
Class GLMapMarkerStyleCollection
- java.lang.Object
-
- globus.glmap.GLNativeObject
-
- globus.glmap.GLMapMarkerStyleCollection
-
public class GLMapMarkerStyleCollection extends GLNativeObject
GLMapMarkerStyleCollectionholds collection of styles, used to draw marker layer.
-
-
Constructor Summary
Constructors Constructor Description GLMapMarkerStyleCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddStyle(GLMapMarkerImage image)Adds new style to collectionintaddStyle(GLMapMarkerImage[] images)Adds new style to collectionintaddStyle(GLMapMarkerImage[] images, GLMapVectorStyle textStyle, android.graphics.Point textOffset)Adds new style to collectionintaddStyle(GLMapMarkerImage image, GLMapVectorStyle textStyle, android.graphics.Point textOffset)voidsetDataCallback(GLMapMarkerStyleCollectionDataCallback dataCallback)Sets dataCallback that will be used by markerLayer to get display information about markersstatic voidsetMarkerStyle(long nativeMarkerObject, int style)Sets style of marker.static voidsetMarkerText(long nativeMarkerObject, java.lang.String text, android.graphics.Point offset, GLMapVectorStyle style)Sets text for marker.voidsetStyleName(int styleIndex, java.lang.String name)Sets name for style that can be used from mapcss-
Methods inherited from class globus.glmap.GLNativeObject
dispose
-
-
-
-
Method Detail
-
addStyle
public int addStyle(@NonNull GLMapMarkerImage[] images, @Nullable GLMapVectorStyle textStyle, @Nullable android.graphics.Point textOffset)Adds new style to collection- Parameters:
images- array of images to display for markertextOffset- offset of text from marker locationtextStyle- style to use for text- Returns:
- index in collection for this style
-
addStyle
public int addStyle(@NonNull GLMapMarkerImage[] images)Adds new style to collection- Parameters:
images- array of images to display for marker- Returns:
- index in collection for this style
-
addStyle
public int addStyle(@NonNull GLMapMarkerImage image)Adds new style to collection- Parameters:
image- image to display for marker- Returns:
- index in collection for this style
-
addStyle
public int addStyle(@NonNull GLMapMarkerImage image, @NonNull GLMapVectorStyle textStyle, @NonNull android.graphics.Point textOffset)
-
setStyleName
public void setStyleName(int styleIndex, java.lang.String name)Sets name for style that can be used from mapcss- Parameters:
styleIndex- index of stylename- name to set
-
setDataCallback
public void setDataCallback(@NonNull GLMapMarkerStyleCollectionDataCallback dataCallback)Sets dataCallback that will be used by markerLayer to get display information about markers- Parameters:
dataCallback- callback that will be used to get display information about markers
-
setMarkerStyle
public static void setMarkerStyle(long nativeMarkerObject, int style)Sets style of marker. Must be called fromGLMapMarkerStyleCollectionDataCallback- Parameters:
nativeMarkerObject- native marker object that was passed as argument toGLMapMarkerStyleCollectionDataCallbackstyle- style of marker to use
-
setMarkerText
public static void setMarkerText(long nativeMarkerObject, @NonNull java.lang.String text, @Nullable android.graphics.Point offset, GLMapVectorStyle style)Sets text for marker. Must be called fromGLMapMarkerStyleCollectionDataCallback- Parameters:
nativeMarkerObject- native marker object that was passed as argument toGLMapMarkerStyleCollectionDataCallback*text- text to setoffset- offset of text from marker locationstyle- style to use for text
-
-