Package globus.glmap
Class GLMapMarkerStyleCollection
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapMarkerStyleCollection
@ParametersAreNonnullByDefault public class GLMapMarkerStyleCollection extends GLNativeObject
GLMapMarkerStyleCollection holds collection of styles, used to draw marker layer.-
Constructor Summary
Constructors Constructor Description GLMapMarkerStyleCollection() -
Method Summary
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 mapcssMethods inherited from class globus.glmap.GLNativeObject
disposeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GLMapMarkerStyleCollection
public GLMapMarkerStyleCollection()
-
-
Method Details
-
addStyle
public int addStyle(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
Adds new style to collection- Parameters:
images- array of images to display for marker- Returns:
- index in collection for this style
-
addStyle
Adds new style to collection- Parameters:
image- image to display for marker- Returns:
- index in collection for this style
-
addStyle
public int addStyle(GLMapMarkerImage image, GLMapVectorStyle textStyle, 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
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, 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
-