public class GoogleMapShapeConverter extends Object
| Constructor and Description |
|---|
GoogleMapShapeConverter()
Constructor
|
GoogleMapShapeConverter(Projection projection)
Constructor with specified projection, see
FeatureDao#getProjection |
| Modifier and Type | Method and Description |
|---|---|
static MultiMarker |
addLatLngsToMap(GoogleMap map,
MultiLatLng latLngs)
Add a list of LatLngs to the map
|
static Marker |
addLatLngToMap(GoogleMap map,
LatLng latLng)
Add a LatLng to the map
|
static Marker |
addLatLngToMap(GoogleMap map,
LatLng latLng,
MarkerOptions options)
Add a LatLng to the map
|
static Marker |
addMarkerOptionsToMap(GoogleMap map,
MarkerOptions options)
Add MarkerOptions to the map
|
MultiPolygonMarkers |
addMultiPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers,
GoogleMap map,
MultiPolygonOptions multiPolygon,
MarkerOptions polygonMarkerOptions,
MarkerOptions polygonMarkerHoleOptions,
PolygonOptions globalPolygonOptions)
Add a MultiPolygonOptions to the map as markers
|
MultiPolylineMarkers |
addMultiPolylineToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers,
GoogleMap map,
MultiPolylineOptions multiPolyline,
MarkerOptions polylineMarkerOptions,
PolylineOptions globalPolylineOptions)
Add a MultiPolylineOptions to the map as markers
|
List<Marker> |
addPointsToMapAsMarkers(GoogleMap map,
List<LatLng> points,
MarkerOptions customMarkerOptions,
boolean ignoreIdenticalEnds)
Add the list of points as markers
|
static MultiPolygon |
addPolygonsToMap(GoogleMap map,
MultiPolygonOptions polygons)
Add a list of Polygons to the map
|
static com.google.android.gms.maps.model.Polygon |
addPolygonToMap(GoogleMap map,
PolygonOptions polygon)
Add a Polygon to the map
|
PolygonMarkers |
addPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers,
GoogleMap map,
PolygonOptions polygonOptions,
MarkerOptions polygonMarkerOptions,
MarkerOptions polygonMarkerHoleOptions,
PolygonOptions globalPolygonOptions)
Add a Polygon to the map as markers
|
static MultiPolyline |
addPolylinesToMap(GoogleMap map,
MultiPolylineOptions polylines)
Add a list of Polylines to the map
|
static Polyline |
addPolylineToMap(GoogleMap map,
PolylineOptions polyline)
Add a Polyline to the map
|
PolylineMarkers |
addPolylineToMapAsMarkers(GoogleMap map,
PolylineOptions polylineOptions,
MarkerOptions polylineMarkerOptions,
PolylineOptions globalPolylineOptions)
Add a Polyline to the map as markers
|
static GoogleMapShape |
addShapeToMap(GoogleMap map,
GoogleMapShape shape)
Add a shape to the map
|
GoogleMapShapeMarkers |
addShapeToMapAsMarkers(GoogleMap map,
GoogleMapShape shape,
MarkerOptions markerOptions,
MarkerOptions polylineMarkerOptions,
MarkerOptions polygonMarkerOptions,
MarkerOptions polygonMarkerHoleOptions,
PolylineOptions globalPolylineOptions,
PolygonOptions globalPolygonOptions)
Add a shape to the map as markers
|
GoogleMapShape |
addToMap(GoogleMap map,
Geometry geometry)
Convert a
Geometry to a Map shape and add it |
List<GoogleMapShape> |
addToMap(GoogleMap map,
GeometryCollection<Geometry> geometryCollection)
Convert a
GeometryCollection to a list of Map shapes and add to
the map |
BoundingBox |
boundingBoxFromWebMercator(BoundingBox boundingBox)
Transform the bounding box in web mercator to the feature projection
|
BoundingBox |
boundingBoxFromWgs84(BoundingBox boundingBox)
Transform the bounding box in WGS84 to the feature projection
|
BoundingBox |
boundingBoxToWebMercator(BoundingBox boundingBox)
Transform the bounding box in the feature projection to web mercator
|
BoundingBox |
boundingBoxToWgs84(BoundingBox boundingBox)
Transform the bounding box in the feature projection to WGS84
|
void |
closePolygonRing(List<LatLng> points)
Close the polygon ring (exterior or hole) points if needed
|
MultiPolygon |
createMultiPolygon(List<Polygon> polygonList)
Convert a list of
Polygon to a MultiPolygon |
MultiPolygon |
createMultiPolygon(List<Polygon> polygonList,
boolean hasZ,
boolean hasM)
Convert a list of
Polygon to a MultiPolygon |
PolygonOrientation |
getExteriorOrientation()
Get exterior orientation for conversions.
|
PolygonOrientation |
getHoleOrientation()
Get polygon hole orientation for conversions.
|
PolygonOrientation |
getOrientation(List<LatLng> points)
Determine the closed points orientation
|
List<LatLng> |
getPointsFromMarkers(List<Marker> markers)
Get a list of points as LatLng from a list of Markers
|
Projection |
getProjection()
Get the projection
|
Double |
getSimplifyTolerance()
Get the simplify tolerance in meters to simplify lines and polygons to similar curves with fewer points
|
void |
populateLineString(LineString lineString,
List<LatLng> latLngs)
Convert a list of
LatLng to a LineString |
void |
setExteriorOrientation(PolygonOrientation exteriorOrientation)
Set the exterior orientation for conversions, set to null to maintain orientation
|
void |
setHoleOrientation(PolygonOrientation holeOrientation)
Set the polygon hole orientation for conversions, set to null to maintain orientation
|
void |
setSimplifyTolerance(Double simplifyTolerance)
Set the simplify tolerance in meters to simplify lines and polygons to similar curves with fewer points
|
CircularString |
toCircularString(List<LatLng> latLngs)
Convert a list of
LatLng to a CircularString |
CircularString |
toCircularString(List<LatLng> latLngs,
boolean hasZ,
boolean hasM)
Convert a list of
LatLng to a CircularString |
CompoundCurve |
toCompoundCurve(List<Polyline> polylineList)
Convert a list of
Polyline to a CompoundCurve |
CompoundCurve |
toCompoundCurve(List<Polyline> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of
Polyline to a CompoundCurve |
CompoundCurve |
toCompoundCurveFromList(List<List<LatLng>> polylineList)
Convert a list of List
CompoundCurve |
CompoundCurve |
toCompoundCurveFromList(List<List<LatLng>> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of List
CompoundCurve |
CompoundCurve |
toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions)
Convert a
MultiPolylineOptions to a CompoundCurve |
CompoundCurve |
toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolylineOptions to a CompoundCurve |
CompoundCurve |
toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions)
Convert a
MultiPolylineOptions to a CompoundCurve |
CompoundCurve |
toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolylineOptions to a CompoundCurve |
PolygonOptions |
toCurvePolygon(CurvePolygon curvePolygon)
Convert a
CurvePolygon to a PolygonOptions |
Geometry |
toGeometry(GoogleMapShape shape)
Convert a GoogleMapShape to a Geometry
|
LatLng |
toLatLng(Point point)
Convert a
Point to a LatLng |
MultiLatLng |
toLatLngs(MultiPoint multiPoint)
Convert a
MultiPoint to a MultiLatLng |
LineString |
toLineString(List<LatLng> latLngs)
Convert a list of
LatLng to a LineString |
LineString |
toLineString(List<LatLng> latLngs,
boolean hasZ,
boolean hasM)
Convert a list of
LatLng to a LineString |
LineString |
toLineString(Polyline polyline)
Convert a
Polyline to a LineString |
LineString |
toLineString(Polyline polyline,
boolean hasZ,
boolean hasM)
Convert a
Polyline to a LineString |
LineString |
toLineString(PolylineOptions polyline)
Convert a
PolylineOptions to a LineString |
LineString |
toLineString(PolylineOptions polyline,
boolean hasZ,
boolean hasM)
Convert a
PolylineOptions to a LineString |
MultiLineString |
toMultiLineString(List<Polyline> polylineList)
Convert a list of
Polyline to a MultiLineString |
MultiLineString |
toMultiLineString(List<Polyline> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of
Polyline to a MultiLineString |
MultiLineString |
toMultiLineStringFromList(List<List<LatLng>> polylineList)
Convert a list of List
MultiLineString |
MultiLineString |
toMultiLineStringFromList(List<List<LatLng>> polylineList,
boolean hasZ,
boolean hasM)
Convert a list of List
MultiLineString |
MultiLineString |
toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions)
Convert a
MultiPolylineOptions to a MultiLineString |
MultiLineString |
toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolylineOptions to a MultiLineString |
MultiPoint |
toMultiPoint(List<LatLng> latLngs)
Convert a
MultiLatLng to a MultiPoint |
MultiPoint |
toMultiPoint(List<LatLng> latLngs,
boolean hasZ,
boolean hasM)
Convert a
MultiLatLng to a MultiPoint |
MultiPoint |
toMultiPoint(MultiLatLng latLngs)
Convert a
MultiLatLng to a MultiPoint |
MultiPoint |
toMultiPoint(MultiLatLng latLngs,
boolean hasZ,
boolean hasM)
Convert a
MultiLatLng to a MultiPoint |
MultiPolygon |
toMultiPolygon(List<Polygon> polygonList)
Convert a list of
Polygon to a
MultiPolygon |
MultiPolygon |
toMultiPolygon(List<Polygon> polygonList,
boolean hasZ,
boolean hasM)
Convert a list of
Polygon to a
MultiPolygon |
MultiPolygon |
toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions)
Convert a
MultiPolygonOptions to a MultiPolygon |
MultiPolygon |
toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions,
boolean hasZ,
boolean hasM)
Convert a list of
PolygonOptions to a MultiPolygon |
Point |
toPoint(LatLng latLng)
Convert a
LatLng to a Point |
Point |
toPoint(LatLng latLng,
boolean hasZ,
boolean hasM)
Convert a
LatLng to a Point |
Polygon |
toPolygon(com.google.android.gms.maps.model.Polygon polygon)
|
Polygon |
toPolygon(com.google.android.gms.maps.model.Polygon polygon,
boolean hasZ,
boolean hasM)
|
Polygon |
toPolygon(List<LatLng> latLngs,
List<List<LatLng>> holes)
|
Polygon |
toPolygon(List<LatLng> latLngs,
List<List<LatLng>> holes,
boolean hasZ,
boolean hasM)
|
PolygonOptions |
toPolygon(Polygon polygon)
Convert a
Polygon to a PolygonOptions |
Polygon |
toPolygon(PolygonOptions polygon)
|
Polygon |
toPolygon(PolygonOptions polygon,
boolean hasZ,
boolean hasM)
|
MultiPolygonOptions |
toPolygons(MultiPolygon multiPolygon)
Convert a
MultiPolygon to a MultiPolygonOptions |
MultiPolygonOptions |
toPolygons(PolyhedralSurface polyhedralSurface)
Convert a
PolyhedralSurface to a MultiPolygonOptions |
PolyhedralSurface |
toPolyhedralSurface(List<Polygon> polygonList)
Convert a list of
Polygon to a PolyhedralSurface |
PolyhedralSurface |
toPolyhedralSurface(List<Polygon> polygonList,
boolean hasZ,
boolean hasM)
Convert a list of
Polygon to a PolyhedralSurface |
PolyhedralSurface |
toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions)
Convert a
MultiPolygonOptions to a PolyhedralSurface |
PolyhedralSurface |
toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions,
boolean hasZ,
boolean hasM)
Convert a
MultiPolygonOptions to a PolyhedralSurface |
PolylineOptions |
toPolyline(LineString lineString)
Convert a
LineString to a PolylineOptions |
MultiPolylineOptions |
toPolylines(CompoundCurve compoundCurve)
Convert a
CompoundCurve to a MultiPolylineOptions |
MultiPolylineOptions |
toPolylines(MultiLineString multiLineString)
Convert a
MultiLineString to a MultiPolylineOptions |
Point |
toProjection(Point point)
Transform a WGS84 point to the projection
|
GoogleMapShape |
toShape(Geometry geometry)
Convert a
Geometry to a Map shape |
List<GoogleMapShape> |
toShapes(GeometryCollection<Geometry> geometryCollection)
Convert a
GeometryCollection to a list of Map shapes |
Point |
toWgs84(Point point)
Transform a projection point to WGS84
|
public GoogleMapShapeConverter()
public GoogleMapShapeConverter(Projection projection)
FeatureDao#getProjectionprojection - projectionpublic Projection getProjection()
public PolygonOrientation getExteriorOrientation()
public void setExteriorOrientation(PolygonOrientation exteriorOrientation)
exteriorOrientation - orientationpublic PolygonOrientation getHoleOrientation()
public void setHoleOrientation(PolygonOrientation holeOrientation)
holeOrientation - orientationpublic Double getSimplifyTolerance()
public void setSimplifyTolerance(Double simplifyTolerance)
simplifyTolerance - simplify tolerance in meters, null for no simplificationpublic Point toWgs84(Point point)
point - projection pointpublic Point toProjection(Point point)
point - WGS84 pointpublic LatLng toLatLng(Point point)
Point to a LatLngpoint - pointpublic Point toPoint(LatLng latLng)
LatLng to a PointlatLng - lat lngpublic Point toPoint(LatLng latLng, boolean hasZ, boolean hasM)
LatLng to a PointlatLng - lat lnghasZ - has z flaghasM - has m flagpublic PolylineOptions toPolyline(LineString lineString)
LineString to a PolylineOptionslineString - line stringpublic LineString toLineString(Polyline polyline)
Polyline to a LineStringpolyline - polylinepublic LineString toLineString(Polyline polyline, boolean hasZ, boolean hasM)
Polyline to a LineStringpolyline - polylinehasZ - has z flaghasM - has m flagpublic LineString toLineString(PolylineOptions polyline)
PolylineOptions to a LineStringpolyline - polyline optionspublic LineString toLineString(PolylineOptions polyline, boolean hasZ, boolean hasM)
PolylineOptions to a LineStringpolyline - polyline optionshasZ - has z flaghasM - has m flagpublic LineString toLineString(List<LatLng> latLngs)
LatLng to a LineStringlatLngs - lat lngspublic LineString toLineString(List<LatLng> latLngs, boolean hasZ, boolean hasM)
LatLng to a LineStringlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic CircularString toCircularString(List<LatLng> latLngs)
LatLng to a CircularStringlatLngs - lat lngspublic CircularString toCircularString(List<LatLng> latLngs, boolean hasZ, boolean hasM)
LatLng to a CircularStringlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic void populateLineString(LineString lineString, List<LatLng> latLngs)
LatLng to a LineStringlineString - line stringlatLngs - lat lngspublic PolygonOptions toPolygon(Polygon polygon)
Polygon to a PolygonOptionspolygon - polygonpublic PolygonOptions toCurvePolygon(CurvePolygon curvePolygon)
CurvePolygon to a PolygonOptionscurvePolygon - curve polygonpublic Polygon toPolygon(com.google.android.gms.maps.model.Polygon polygon)
polygon - polygonpublic Polygon toPolygon(com.google.android.gms.maps.model.Polygon polygon, boolean hasZ, boolean hasM)
polygon - polygonhasZ - has z flaghasM - has m flagpublic Polygon toPolygon(PolygonOptions polygon)
polygon - polygon optionspublic Polygon toPolygon(PolygonOptions polygon, boolean hasZ, boolean hasM)
polygon - polygon optionshasZ - has z flaghasM - has m flagpublic Polygon toPolygon(List<LatLng> latLngs, List<List<LatLng>> holes)
latLngs - lat lngsholes - list of holespublic Polygon toPolygon(List<LatLng> latLngs, List<List<LatLng>> holes, boolean hasZ, boolean hasM)
latLngs - lat lngsholes - list of holeshasZ - has z flaghasM - has m flagpublic void closePolygonRing(List<LatLng> points)
points - ring pointspublic PolygonOrientation getOrientation(List<LatLng> points)
points - closed pointspublic MultiLatLng toLatLngs(MultiPoint multiPoint)
MultiPoint to a MultiLatLngmultiPoint - multi pointpublic MultiPoint toMultiPoint(MultiLatLng latLngs)
MultiLatLng to a MultiPointlatLngs - lat lngspublic MultiPoint toMultiPoint(MultiLatLng latLngs, boolean hasZ, boolean hasM)
MultiLatLng to a MultiPointlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic MultiPoint toMultiPoint(List<LatLng> latLngs)
MultiLatLng to a MultiPointlatLngs - lat lngspublic MultiPoint toMultiPoint(List<LatLng> latLngs, boolean hasZ, boolean hasM)
MultiLatLng to a MultiPointlatLngs - lat lngshasZ - has z flaghasM - has m flagpublic MultiPolylineOptions toPolylines(MultiLineString multiLineString)
MultiLineString to a MultiPolylineOptionsmultiLineString - multi line stringpublic MultiLineString toMultiLineString(List<Polyline> polylineList)
Polyline to a MultiLineStringpolylineList - polyline listpublic MultiLineString toMultiLineString(List<Polyline> polylineList, boolean hasZ, boolean hasM)
Polyline to a MultiLineStringpolylineList - polyline listhasZ - has z flaghasM - has m flagpublic MultiLineString toMultiLineStringFromList(List<List<LatLng>> polylineList)
MultiLineStringpolylineList - polyline listpublic MultiLineString toMultiLineStringFromList(List<List<LatLng>> polylineList, boolean hasZ, boolean hasM)
MultiLineStringpolylineList - polyline listhasZ - has z flaghasM - has m flagpublic CompoundCurve toCompoundCurveFromList(List<List<LatLng>> polylineList)
CompoundCurvepolylineList - polyline listpublic CompoundCurve toCompoundCurveFromList(List<List<LatLng>> polylineList, boolean hasZ, boolean hasM)
CompoundCurvepolylineList - polyline listhasZ - has z flaghasM - has m flagpublic MultiLineString toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a MultiLineStringmultiPolylineOptions - multi polyline optionspublic MultiLineString toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a MultiLineStringmultiPolylineOptions - multi polyline optionshasZ - has z flaghasM - has m flagpublic CompoundCurve toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionspublic CompoundCurve toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionshasZ - has z flaghasM - has m flagpublic MultiPolygonOptions toPolygons(MultiPolygon multiPolygon)
MultiPolygon to a MultiPolygonOptionsmultiPolygon - multi polygonpublic MultiPolygon toMultiPolygon(List<Polygon> polygonList)
Polygon to a
MultiPolygonpolygonList - polygon listpublic MultiPolygon toMultiPolygon(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a
MultiPolygonpolygonList - polygon listhasZ - has z flaghasM - has m flagpublic MultiPolygon createMultiPolygon(List<Polygon> polygonList)
Polygon to a MultiPolygonpolygonList - polygon listpublic MultiPolygon createMultiPolygon(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a MultiPolygonpolygonList - polygon listhasZ - has z flaghasM - has m flagpublic MultiPolygon toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions)
MultiPolygonOptions to a MultiPolygonmultiPolygonOptions - multi polygon optionspublic MultiPolygon toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions, boolean hasZ, boolean hasM)
PolygonOptions to a MultiPolygonmultiPolygonOptions - multi polygon optionshasZ - has z flaghasM - has m flagpublic MultiPolylineOptions toPolylines(CompoundCurve compoundCurve)
CompoundCurve to a MultiPolylineOptionscompoundCurve - compound curvepublic CompoundCurve toCompoundCurve(List<Polyline> polylineList)
Polyline to a CompoundCurvepolylineList - polyline listpublic CompoundCurve toCompoundCurve(List<Polyline> polylineList, boolean hasZ, boolean hasM)
Polyline to a CompoundCurvepolylineList - polyline listhasZ - has z flaghasM - has m flagpublic CompoundCurve toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionspublic CompoundCurve toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - multi polyline optionshasZ - has z flaghasM - has m flagpublic MultiPolygonOptions toPolygons(PolyhedralSurface polyhedralSurface)
PolyhedralSurface to a MultiPolygonOptionspolyhedralSurface - polyhedral surfacepublic PolyhedralSurface toPolyhedralSurface(List<Polygon> polygonList)
Polygon to a PolyhedralSurfacepolygonList - polygon listpublic PolyhedralSurface toPolyhedralSurface(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a PolyhedralSurfacepolygonList - polygon listhasZ - has z flaghasM - has m flagpublic PolyhedralSurface toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions)
MultiPolygonOptions to a PolyhedralSurfacemultiPolygonOptions - multi polygon optionspublic PolyhedralSurface toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions, boolean hasZ, boolean hasM)
MultiPolygonOptions to a PolyhedralSurfacemultiPolygonOptions - multi polygon optionshasZ - has z flaghasM - has m flagpublic GoogleMapShape toShape(Geometry geometry)
Geometry to a Map shapegeometry - geometrypublic List<GoogleMapShape> toShapes(GeometryCollection<Geometry> geometryCollection)
GeometryCollection to a list of Map shapesgeometryCollection - geometry collectionpublic GoogleMapShape addToMap(GoogleMap map, Geometry geometry)
Geometry to a Map shape and add itmap - google mapgeometry - geometrypublic static GoogleMapShape addShapeToMap(GoogleMap map, GoogleMapShape shape)
map - google mapshape - google map shapepublic static Marker addLatLngToMap(GoogleMap map,
LatLng latLng)
map - google maplatLng - lat lngpublic static Marker addMarkerOptionsToMap(GoogleMap map,
MarkerOptions options)
map - google mapoptions - marker optionspublic static Marker addLatLngToMap(GoogleMap map,
LatLng latLng,
MarkerOptions options)
map - google maplatLng - lat lngoptions - marker optionspublic static Polyline addPolylineToMap(GoogleMap map,
PolylineOptions polyline)
map - google mappolyline - polyline optionspublic static com.google.android.gms.maps.model.Polygon addPolygonToMap(GoogleMap map,
PolygonOptions polygon)
map - google mappolygon - polygon optionspublic static MultiMarker addLatLngsToMap(GoogleMap map, MultiLatLng latLngs)
map - google maplatLngs - lat lngspublic static MultiPolyline addPolylinesToMap(GoogleMap map, MultiPolylineOptions polylines)
map - google mappolylines - multi polyline optionspublic static MultiPolygon addPolygonsToMap(GoogleMap map, MultiPolygonOptions polygons)
map - google mappolygons - multi polygon optionspublic List<GoogleMapShape> addToMap(GoogleMap map, GeometryCollection<Geometry> geometryCollection)
GeometryCollection to a list of Map shapes and add to
the mapmap - google mapgeometryCollection - geometry collectionpublic GoogleMapShapeMarkers addShapeToMapAsMarkers(GoogleMap map, GoogleMapShape shape, MarkerOptions markerOptions, MarkerOptions polylineMarkerOptions, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolylineOptions globalPolylineOptions, PolygonOptions globalPolygonOptions)
map - google mapshape - google map shapemarkerOptions - marker optionspolylineMarkerOptions - polyline marker optionspolygonMarkerOptions - polygon marker optionspolygonMarkerHoleOptions - polygon marker hole optionsglobalPolylineOptions - global polyline optionsglobalPolygonOptions - global polygon optionspublic List<Marker> addPointsToMapAsMarkers(GoogleMap map, List<LatLng> points, MarkerOptions customMarkerOptions, boolean ignoreIdenticalEnds)
map - google mappoints - pointscustomMarkerOptions - custom marker optionsignoreIdenticalEnds - ignore identical ends flagpublic PolylineMarkers addPolylineToMapAsMarkers(GoogleMap map, PolylineOptions polylineOptions, MarkerOptions polylineMarkerOptions, PolylineOptions globalPolylineOptions)
map - google mappolylineOptions - polyline optionspolylineMarkerOptions - polyline marker optionsglobalPolylineOptions - global polyline optionspublic PolygonMarkers addPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, PolygonOptions polygonOptions, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolygonOptions globalPolygonOptions)
shapeMarkers - google map shape markersmap - google mappolygonOptions - polygon optionspolygonMarkerOptions - polygon marker optionspolygonMarkerHoleOptions - polygon marker hole optionsglobalPolygonOptions - global polygon optionspublic MultiPolylineMarkers addMultiPolylineToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, MultiPolylineOptions multiPolyline, MarkerOptions polylineMarkerOptions, PolylineOptions globalPolylineOptions)
shapeMarkers - google map shape markersmap - google mapmultiPolyline - multi polyline optionspolylineMarkerOptions - polyline marker optionsglobalPolylineOptions - global polyline optionspublic MultiPolygonMarkers addMultiPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, MultiPolygonOptions multiPolygon, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolygonOptions globalPolygonOptions)
shapeMarkers - google map shape markersmap - google mapmultiPolygon - multi polygon optionspolygonMarkerOptions - polygon marker optionspolygonMarkerHoleOptions - polygon marker hole optionsglobalPolygonOptions - global polygon optionspublic List<LatLng> getPointsFromMarkers(List<Marker> markers)
markers - list of markerspublic Geometry toGeometry(GoogleMapShape shape)
shape - google map shapepublic BoundingBox boundingBoxToWebMercator(BoundingBox boundingBox)
boundingBox - bounding box in feature projectionpublic BoundingBox boundingBoxToWgs84(BoundingBox boundingBox)
boundingBox - bounding box in feature projectionpublic BoundingBox boundingBoxFromWebMercator(BoundingBox boundingBox)
boundingBox - bounding box in web mercatorpublic BoundingBox boundingBoxFromWgs84(BoundingBox boundingBox)
boundingBox - bounding box in WGS84