public class GoogleMapShapeConverter extends Object
| Constructor and Description |
|---|
GoogleMapShapeConverter(Projection projection)
Constructor with specified projection, see
UserCoreDao.getProjection() |
public GoogleMapShapeConverter(Projection projection)
UserCoreDao.getProjection()projection - public Projection getProjection()
public Point toWgs84(Point point)
point - public Point toProjection(Point point)
point - public Point toPoint(LatLng latLng, boolean hasZ, boolean hasM)
latLng - hasZ - hasM - public PolylineOptions toPolyline(LineString lineString)
LineString to a PolylineOptionslineString - public LineString toLineString(Polyline polyline)
Polyline to a LineStringpolyline - public LineString toLineString(Polyline polyline, boolean hasZ, boolean hasM)
Polyline to a LineStringpolyline - hasZ - hasM - public LineString toLineString(PolylineOptions polyline)
PolylineOptions to a LineStringpolyline - public LineString toLineString(PolylineOptions polyline, boolean hasZ, boolean hasM)
PolylineOptions to a LineStringpolyline - hasZ - hasM - public LineString toLineString(List<LatLng> latLngs)
LatLng to a LineStringlatLngs - public LineString toLineString(List<LatLng> latLngs, boolean hasZ, boolean hasM)
LatLng to a LineStringlatLngs - hasZ - hasM - public CircularString toCircularString(List<LatLng> latLngs)
LatLng to a CircularStringlatLngs - public CircularString toCircularString(List<LatLng> latLngs, boolean hasZ, boolean hasM)
LatLng to a CircularStringlatLngs - hasZ - hasM - public void populateLineString(LineString lineString, List<LatLng> latLngs)
LatLng to a LineStringlineString - latLngs - public PolygonOptions toPolygon(Polygon polygon)
Polygon to a PolygonOptionspolygon - public Polygon toPolygon(Polygon polygon, boolean hasZ, boolean hasM)
polygon - hasZ - hasM - public Polygon toPolygon(PolygonOptions polygon)
polygon - public Polygon toPolygon(PolygonOptions polygon, boolean hasZ, boolean hasM)
polygon - hasZ - hasM - public Polygon toPolygon(List<LatLng> latLngs, List<List<LatLng>> holes)
latLngs - holes - public Polygon toPolygon(List<LatLng> latLngs, List<List<LatLng>> holes, boolean hasZ, boolean hasM)
latLngs - holes - hasZ - hasM - public MultiLatLng toLatLngs(MultiPoint multiPoint)
MultiPoint to a MultiLatLngmultiPoint - public MultiPoint toMultiPoint(MultiLatLng latLngs)
MultiLatLng to a MultiPointlatLngs - public MultiPoint toMultiPoint(MultiLatLng latLngs, boolean hasZ, boolean hasM)
MultiLatLng to a MultiPointlatLngs - hasZ - hasM - public MultiPoint toMultiPoint(List<LatLng> latLngs)
MultiLatLng to a MultiPointlatLngs - public MultiPoint toMultiPoint(List<LatLng> latLngs, boolean hasZ, boolean hasM)
MultiLatLng to a MultiPointlatLngs - hasZ - hasM - public MultiPolylineOptions toPolylines(MultiLineString multiLineString)
MultiLineString to a MultiPolylineOptionsmultiLineString - public MultiLineString toMultiLineString(List<Polyline> polylineList)
Polyline to a MultiLineStringpolylineList - public MultiLineString toMultiLineString(List<Polyline> polylineList, boolean hasZ, boolean hasM)
Polyline to a MultiLineStringpolylineList - hasZ - hasM - public MultiLineString toMultiLineStringFromList(List<List<LatLng>> polylineList)
MultiLineStringpolylineList - public MultiLineString toMultiLineStringFromList(List<List<LatLng>> polylineList, boolean hasZ, boolean hasM)
MultiLineStringpolylineList - hasZ - hasM - public CompoundCurve toCompoundCurveFromList(List<List<LatLng>> polylineList)
CompoundCurvepolylineList - public CompoundCurve toCompoundCurveFromList(List<List<LatLng>> polylineList, boolean hasZ, boolean hasM)
CompoundCurvepolylineList - hasZ - hasM - public MultiLineString toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a MultiLineStringmultiPolylineOptions - public MultiLineString toMultiLineStringFromOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a MultiLineStringmultiPolylineOptions - hasZ - hasM - public CompoundCurve toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - public CompoundCurve toCompoundCurveFromOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - hasZ - hasM - public MultiPolygonOptions toPolygons(MultiPolygon multiPolygon)
MultiPolygon to a MultiPolygonOptionsmultiPolygon - public MultiPolygon toMultiPolygon(List<Polygon> polygonList)
Polygon to a
MultiPolygonpolygonList - public MultiPolygon toMultiPolygon(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a
MultiPolygonpolygonList - hasZ - hasM - public MultiPolygon createMultiPolygon(List<Polygon> polygonList)
Polygon to a MultiPolygonpolygonList - public MultiPolygon createMultiPolygon(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a MultiPolygonpolygonList - hasZ - hasM - public MultiPolygon toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions)
MultiPolygonOptions to a MultiPolygonmultiPolygonOptions - public MultiPolygon toMultiPolygonFromOptions(MultiPolygonOptions multiPolygonOptions, boolean hasZ, boolean hasM)
PolygonOptions to a MultiPolygonmultiPolygonOptions - hasZ - hasM - public MultiPolylineOptions toPolylines(CompoundCurve compoundCurve)
CompoundCurve to a MultiPolylineOptionscompoundCurve - public CompoundCurve toCompoundCurve(List<Polyline> polylineList)
Polyline to a CompoundCurvepolylineList - public CompoundCurve toCompoundCurve(List<Polyline> polylineList, boolean hasZ, boolean hasM)
Polyline to a CompoundCurvepolylineList - hasZ - hasM - public CompoundCurve toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - public CompoundCurve toCompoundCurveWithOptions(MultiPolylineOptions multiPolylineOptions, boolean hasZ, boolean hasM)
MultiPolylineOptions to a CompoundCurvemultiPolylineOptions - hasZ - hasM - public MultiPolygonOptions toPolygons(PolyhedralSurface polyhedralSurface)
PolyhedralSurface to a MultiPolygonOptionspolyhedralSurface - public PolyhedralSurface toPolyhedralSurface(List<Polygon> polygonList)
Polygon to a PolyhedralSurfacepolygonList - public PolyhedralSurface toPolyhedralSurface(List<Polygon> polygonList, boolean hasZ, boolean hasM)
Polygon to a PolyhedralSurfacepolygonList - hasZ - hasM - public PolyhedralSurface toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions)
MultiPolygonOptions to a PolyhedralSurfacemultiPolygonOptions - public PolyhedralSurface toPolyhedralSurfaceWithOptions(MultiPolygonOptions multiPolygonOptions, boolean hasZ, boolean hasM)
MultiPolygonOptions to a PolyhedralSurfacemultiPolygonOptions - hasZ - hasM - public GoogleMapShape toShape(Geometry geometry)
Geometry to a Map shapegeometry - public List<GoogleMapShape> toShapes(GeometryCollection<Geometry> geometryCollection)
GeometryCollection to a list of Map shapesgeometryCollection - public GoogleMapShape addToMap(GoogleMap map, Geometry geometry)
Geometry to a Map shape and add itmap - geometry - public static GoogleMapShape addShapeToMap(GoogleMap map, GoogleMapShape shape)
map - shape - public static Marker addLatLngToMap(GoogleMap map, LatLng latLng)
map - latLng - public static Marker addMarkerOptionsToMap(GoogleMap map, MarkerOptions options)
map - options - public static Marker addLatLngToMap(GoogleMap map, LatLng latLng, MarkerOptions options)
map - latLng - options - public static Polyline addPolylineToMap(GoogleMap map, PolylineOptions polyline)
map - polyline - public static Polygon addPolygonToMap(GoogleMap map, PolygonOptions polygon)
map - polygon - public static MultiMarker addLatLngsToMap(GoogleMap map, MultiLatLng latLngs)
map - latLngs - public static MultiPolyline addPolylinesToMap(GoogleMap map, MultiPolylineOptions polylines)
map - polylines - public static MultiPolygon addPolygonsToMap(GoogleMap map, MultiPolygonOptions polygons)
map - polygons - public List<GoogleMapShape> addToMap(GoogleMap map, GeometryCollection<Geometry> geometryCollection)
GeometryCollection to a list of Map shapes and add to
the mapmap - geometryCollection - public GoogleMapShapeMarkers addShapeToMapAsMarkers(GoogleMap map, GoogleMapShape shape, MarkerOptions markerOptions, MarkerOptions polylineMarkerOptions, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolylineOptions globalPolylineOptions, PolygonOptions globalPolygonOptions)
map - shape - markerOptions - polylineMarkerOptions - polygonMarkerOptions - polygonMarkerHoleOptions - globalPolylineOptions - globalPolygonOptions - public List<Marker> addPointsToMapAsMarkers(GoogleMap map, List<LatLng> points, MarkerOptions customMarkerOptions, boolean ignoreIdenticalEnds)
map - points - customMarkerOptions - ignoreIdenticalEnds - public PolylineMarkers addPolylineToMapAsMarkers(GoogleMap map, PolylineOptions polylineOptions, MarkerOptions polylineMarkerOptions, PolylineOptions globalPolylineOptions)
map - polylineOptions - polylineMarkerOptions - globalPolylineOptions - public PolygonMarkers addPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, PolygonOptions polygonOptions, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolygonOptions globalPolygonOptions)
shapeMarkers - map - polygonOptions - polygonMarkerOptions - polygonMarkerHoleOptions - globalPolygonOptions - public MultiPolylineMarkers addMultiPolylineToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, MultiPolylineOptions multiPolyline, MarkerOptions polylineMarkerOptions, PolylineOptions globalPolylineOptions)
shapeMarkers - map - multiPolyline - polylineMarkerOptions - globalPolylineOptions - public MultiPolygonMarkers addMultiPolygonToMapAsMarkers(GoogleMapShapeMarkers shapeMarkers, GoogleMap map, MultiPolygonOptions multiPolygon, MarkerOptions polygonMarkerOptions, MarkerOptions polygonMarkerHoleOptions, PolygonOptions globalPolygonOptions)
shapeMarkers - map - multiPolygon - polygonMarkerOptions - polygonMarkerHoleOptions - globalPolygonOptions - public List<LatLng> getPointsFromMarkers(List<Marker> markers)
markers - public Geometry toGeometry(GoogleMapShape shape)
shape -