Package mil.nga.geopackage.map.geom
Class GoogleMapShapeMarkers
java.lang.Object
mil.nga.geopackage.map.geom.GoogleMapShapeMarkers
Google Map Shape with markers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a marker with no shapevoidadd(Marker marker, ShapeMarkers shapeMarkers) Add the marker to the shapevoidadd(String markerId, ShapeMarkers shapeMarkers) Add the marker id to the shapevoidAdd a list of markers with no shapevoidadd(GoogleMapShapeMarkers googleShapeMarkers) Add an embedded shape markersvoidadd(ShapeMarkers shapeMarkers) Add all markers in the shapestatic voidaddMarkerAsPolygon(Marker marker, List<Marker> markers) Polygon add a marker in the list of markers to where it is closest to the the surrounding pointsstatic voidaddMarkerAsPolyline(Marker marker, List<Marker> markers) Polyline add a marker in the list of markers to where it is closest to the the surrounding pointsbooleanCheck if contains the markerbooleanCheck if contains the marker idbooleanGet the shape markers for a marker, only returns a value of shapes that can be editedgetShape()Get the map shapegetShapeMarkers(Marker marker) Get the shape markers for a marker, only returns a value of shapes that can be editedgetShapeMarkers(String markerId) Get the shape markers for a marker id, only returns a value of shapes that can be editedGet the shape markers mapbooleanisEmpty()Check if the shape markers is emptybooleanisValid()Determines if the shape is in a valid statevoidremove()Removes all objects added to the mapvoidsetShape(GoogleMapShape shape) Set the map shapevoidsetVisible(boolean visible) Updates visibility of all objectsvoidsetVisibleMarkers(boolean visible) Updates visibility of the shape representing markersvoidsetZIndex(float zIndex) Set the z indexintsize()Get the shape markers sizevoidupdate()Updates all objects that could have changed from moved markers
-
Constructor Details
-
GoogleMapShapeMarkers
public GoogleMapShapeMarkers()
-
-
Method Details
-
add
Add the marker to the shape- Parameters:
marker- markershapeMarkers- shape markers
-
add
Add the marker id to the shape- Parameters:
markerId- marker idshapeMarkers- shape markers
-
add
Add all markers in the shape- Parameters:
shapeMarkers- shape markers
-
add
Add a marker with no shape- Parameters:
marker- marker
-
add
Add a list of markers with no shape- Parameters:
markers- list of markers
-
add
Add an embedded shape markers- Parameters:
googleShapeMarkers- google map shape markers
-
getShape
Get the map shape- Returns:
- map shape
-
setShape
Set the map shape- Parameters:
shape- map shape
-
getShapeMarkersMap
Get the shape markers map- Returns:
- shape markers map
- Since:
- 1.3.2
-
contains
Check if contains the marker- Parameters:
marker- marker- Returns:
- contains flag
-
contains
Check if contains the marker id- Parameters:
markerId- marker id- Returns:
- contains flag
-
getShapeMarkers
Get the shape markers for a marker, only returns a value of shapes that can be edited- Parameters:
marker- marker- Returns:
- shape markers
-
getShapeMarkers
Get the shape markers for a marker id, only returns a value of shapes that can be edited- Parameters:
markerId- marker id- Returns:
- shape markers
-
delete
Get the shape markers for a marker, only returns a value of shapes that can be edited- Parameters:
marker- marker- Returns:
- deleted flag
-
remove
public void remove()Removes all objects added to the map -
update
public void update()Updates all objects that could have changed from moved markers -
isValid
public boolean isValid()Determines if the shape is in a valid state- Returns:
- valid flag
-
addMarkerAsPolygon
Polygon add a marker in the list of markers to where it is closest to the the surrounding points- Parameters:
marker- markermarkers- list of markers
-
addMarkerAsPolyline
Polyline add a marker in the list of markers to where it is closest to the the surrounding points- Parameters:
marker- markermarkers- list of markers
-
setVisible
public void setVisible(boolean visible) Updates visibility of all objects- Parameters:
visible- visible flag- Since:
- 1.3.2
-
setVisibleMarkers
public void setVisibleMarkers(boolean visible) Updates visibility of the shape representing markers- Parameters:
visible- visible flag- Since:
- 1.3.2
-
setZIndex
public void setZIndex(float zIndex) Set the z index- Parameters:
zIndex- z index- Since:
- 2.0.1
-
size
public int size()Get the shape markers size- Returns:
- size
- Since:
- 1.3.2
-
isEmpty
public boolean isEmpty()Check if the shape markers is empty- Returns:
- true if empty
- Since:
- 1.3.2
-