public class GoogleMapShapeMarkers extends Object
| Constructor and Description |
|---|
GoogleMapShapeMarkers() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(List<Marker> markers)
Add a list of markers with no shape
|
void |
add(Marker marker)
Add a marker with no shape
|
void |
add(Marker marker,
ShapeMarkers shapeMarkers)
Add the marker to the shape
|
void |
add(ShapeMarkers shapeMarkers)
Add all markers in the shape
|
static void |
addMarkerAsPolygon(Marker marker,
List<Marker> markers)
Polygon add a marker in the list of markers to where it is closest to the
the surrounding points
|
static void |
addMarkerAsPolyline(Marker marker,
List<Marker> markers)
Polyline add a marker in the list of markers to where it is closest to
the the surrounding points
|
boolean |
contains(Marker marker)
Check if contains the marker
|
boolean |
delete(Marker marker)
Get the shape markers for a marker, only returns a value of shapes that
can be edited
|
GoogleMapShape |
getShape()
Get the map shape
|
ShapeMarkers |
getShapeMarkers(Marker marker)
Get the shape markers for a marker, only returns a value of shapes that
can be edited
|
Map<String,ShapeMarkers> |
getShapeMarkersMap()
Get the shape markers map
|
boolean |
isEmpty()
Check if the shape markers is empty
|
boolean |
isValid()
Determines if the shape is in a valid state
|
void |
remove()
Removes all objects added to the map
|
void |
setShape(GoogleMapShape shape)
Set the map shape
|
void |
setVisible(boolean visible)
Updates visibility of all objects
|
void |
setVisibleMarkers(boolean visible)
Updates visibility of the shape representing markers
|
void |
setZIndex(float zIndex)
Set the z index
|
int |
size()
Get the shape markers size
|
void |
update()
Updates all objects that could have changed from moved markers
|
public void add(Marker marker,
ShapeMarkers shapeMarkers)
marker - shapeMarkers - public void add(ShapeMarkers shapeMarkers)
shapeMarkers - public void add(Marker marker)
marker - public void add(List<Marker> markers)
markers - public GoogleMapShape getShape()
public void setShape(GoogleMapShape shape)
shape - map shapepublic Map<String,ShapeMarkers> getShapeMarkersMap()
public boolean contains(Marker marker)
marker - public ShapeMarkers getShapeMarkers(Marker marker)
marker - public boolean delete(Marker marker)
marker - public void remove()
public void update()
public boolean isValid()
public static void addMarkerAsPolygon(Marker marker,
List<Marker> markers)
marker - markers - public static void addMarkerAsPolyline(Marker marker,
List<Marker> markers)
marker - markers - public void setVisible(boolean visible)
visible - visible flagpublic void setVisibleMarkers(boolean visible)
visible - visible flagpublic void setZIndex(float zIndex)
zIndex - z indexpublic int size()
public boolean isEmpty()