Package mil.nga.geopackage.map.geom
Class GoogleMapShapeMarkers
java.lang.Object
mil.nga.geopackage.map.geom.GoogleMapShapeMarkers
Google Map Shape with markers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a marker with no shapevoid
add
(Marker marker, ShapeMarkers shapeMarkers) Add the marker to the shapevoid
add
(String markerId, ShapeMarkers shapeMarkers) Add the marker id to the shapevoid
Add a list of markers with no shapevoid
add
(GoogleMapShapeMarkers googleShapeMarkers) Add an embedded shape markersvoid
add
(ShapeMarkers shapeMarkers) Add all markers in the shapestatic 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 pointsstatic 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 pointsboolean
Check if contains the markerboolean
Check if contains the marker idboolean
Get 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 mapboolean
isEmpty()
Check if the shape markers is emptyboolean
isValid()
Determines if the shape is in a valid statevoid
remove()
Removes all objects added to the mapvoid
setShape
(GoogleMapShape shape) Set the map shapevoid
setVisible
(boolean visible) Updates visibility of all objectsvoid
setVisibleMarkers
(boolean visible) Updates visibility of the shape representing markersvoid
setZIndex
(float zIndex) Set the z indexint
size()
Get the shape markers sizevoid
update()
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
-