Class GoogleMapWrapper
java.lang.Object
com.streamwide.smartms.lib.googlemap.ui.view.geolocation.GoogleMapWrapper
- All Implemented Interfaces:
com.streamwide.smartms.lib.template.map.IMap
public class GoogleMapWrapper
extends Object
implements com.streamwide.smartms.lib.template.map.IMap
Created by streamwide on 2/22/17.
-
Field Summary
Fields inherited from interface com.streamwide.smartms.lib.template.map.IMap
TYPE_IMAP_GOOGLE, TYPE_IMAP_OSM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.streamwide.smartms.lib.template.map.ICircleaddCircle(com.streamwide.smartms.lib.template.map.Position center, double radius, int strokeColor, int strokeWidth, int fillColor) com.streamwide.smartms.lib.template.map.IMarkeraddMarker(com.streamwide.smartms.lib.template.map.Position position, String title, int resourceId, float u, float v) com.streamwide.smartms.lib.template.map.IMarkeraddMarker(com.streamwide.smartms.lib.template.map.Position position, String title, int resourceId, float u, float v, boolean addToCluster) com.streamwide.smartms.lib.template.map.IMarkeraddMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon) com.streamwide.smartms.lib.template.map.IMarkeraddMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon, boolean addToCluster) com.streamwide.smartms.lib.template.map.IMarkeraddMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon, float u, float v) com.streamwide.smartms.lib.template.map.IMarkeraddMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon, float u, float v, boolean addToCluster) voidanimateCamera(float bearing) voidanimateCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom) voidanimateCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing) voidanimateCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing, com.streamwide.smartms.lib.template.map.ICancelableCallback cancelableCallback) voidanimateCameraBounds(Collection<com.streamwide.smartms.lib.template.map.IMarker> markers, int padding, int minDistanceInMeter, float defaultZoom, boolean disableAllGesturesWhenAnimate) com.streamwide.smartms.lib.template.map.ICirclechangeCircle(com.streamwide.smartms.lib.template.map.Position center, double radius, int strokeColor, int strokeWidth, int fillColor, com.streamwide.smartms.lib.template.map.ICircle oldCircle) voidclear()com.streamwide.smartms.lib.template.map.PositionintfloatgetTilt()floatgetZoom()voidmoveCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom) voidmoveCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing) android.graphics.PointprojectionToScreenLocation(com.streamwide.smartms.lib.template.map.Position position) voidremoveCircle(com.streamwide.smartms.lib.template.map.ICircle iCircle) voidremoveMarker(com.streamwide.smartms.lib.template.map.IMarker iMarker) voidsetBuildingsEnabled(boolean enabled) voidsetClusterManager(com.google.maps.android.clustering.ClusterManager<GoogleClusterItem> clusterManager) voidsetOnCameraChangeListener(Object listener)
-
Constructor Details
-
GoogleMapWrapper
public GoogleMapWrapper(@Nullable com.google.android.gms.maps.GoogleMap map)
-
-
Method Details
-
setClusterManager
public void setClusterManager(@NonNull com.google.maps.android.clustering.ClusterManager<GoogleClusterItem> clusterManager) -
getObject
- Specified by:
getObjectin interfacecom.streamwide.smartms.lib.template.map.IMap
-
setOnCameraChangeListener
- Specified by:
setOnCameraChangeListenerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
getCurrentPosition
@NonNull public com.streamwide.smartms.lib.template.map.Position getCurrentPosition()- Specified by:
getCurrentPositionin interfacecom.streamwide.smartms.lib.template.map.IMap
-
moveCamera
public void moveCamera(@NonNull com.streamwide.smartms.lib.template.map.Position position, float zoom) - Specified by:
moveCamerain interfacecom.streamwide.smartms.lib.template.map.IMap
-
moveCamera
public void moveCamera(@NonNull com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing) - Specified by:
moveCamerain interfacecom.streamwide.smartms.lib.template.map.IMap
-
animateCamera
public void animateCamera(@NonNull com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing) - Specified by:
animateCamerain interfacecom.streamwide.smartms.lib.template.map.IMap
-
animateCamera
public void animateCamera(@NonNull com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing, @Nullable com.streamwide.smartms.lib.template.map.ICancelableCallback cancelableCallback) - Specified by:
animateCamerain interfacecom.streamwide.smartms.lib.template.map.IMap
-
animateCamera
public void animateCamera(@NonNull com.streamwide.smartms.lib.template.map.Position position, float zoom) - Specified by:
animateCamerain interfacecom.streamwide.smartms.lib.template.map.IMap
-
animateCamera
public void animateCamera(float bearing) - Specified by:
animateCamerain interfacecom.streamwide.smartms.lib.template.map.IMap
-
animateCameraBounds
public void animateCameraBounds(@Nullable Collection<com.streamwide.smartms.lib.template.map.IMarker> markers, int padding, int minDistanceInMeter, float defaultZoom, boolean disableAllGesturesWhenAnimate) - Specified by:
animateCameraBoundsin interfacecom.streamwide.smartms.lib.template.map.IMap
-
getZoom
public float getZoom()- Specified by:
getZoomin interfacecom.streamwide.smartms.lib.template.map.IMap
-
getTilt
public float getTilt()- Specified by:
getTiltin interfacecom.streamwide.smartms.lib.template.map.IMap
-
addMarker
@Nullable public com.streamwide.smartms.lib.template.map.IMarker addMarker(@NonNull com.streamwide.smartms.lib.template.map.Position position, @NonNull String title, @Nullable android.graphics.Bitmap icon, boolean addToCluster) - Specified by:
addMarkerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
addMarker
@Nullable public com.streamwide.smartms.lib.template.map.IMarker addMarker(@NonNull com.streamwide.smartms.lib.template.map.Position position, @NonNull String title, @Nullable android.graphics.Bitmap icon) - Specified by:
addMarkerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
addMarker
@Nullable public com.streamwide.smartms.lib.template.map.IMarker addMarker(@NonNull com.streamwide.smartms.lib.template.map.Position position, @NonNull String title, @Nullable android.graphics.Bitmap icon, float u, float v, boolean addToCluster) - Specified by:
addMarkerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
addMarker
@Nullable public com.streamwide.smartms.lib.template.map.IMarker addMarker(@NonNull com.streamwide.smartms.lib.template.map.Position position, @NonNull String title, @Nullable android.graphics.Bitmap icon, float u, float v) - Specified by:
addMarkerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
addMarker
@Nullable public com.streamwide.smartms.lib.template.map.IMarker addMarker(@NonNull com.streamwide.smartms.lib.template.map.Position position, @NonNull String title, int resourceId, float u, float v, boolean addToCluster) - Specified by:
addMarkerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
addMarker
@Nullable public com.streamwide.smartms.lib.template.map.IMarker addMarker(@NonNull com.streamwide.smartms.lib.template.map.Position position, @NonNull String title, int resourceId, float u, float v) - Specified by:
addMarkerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
addCircle
@Nullable public com.streamwide.smartms.lib.template.map.ICircle addCircle(@NonNull com.streamwide.smartms.lib.template.map.Position center, double radius, int strokeColor, int strokeWidth, int fillColor) - Specified by:
addCirclein interfacecom.streamwide.smartms.lib.template.map.IMap
-
changeCircle
@Nullable public com.streamwide.smartms.lib.template.map.ICircle changeCircle(@NonNull com.streamwide.smartms.lib.template.map.Position center, double radius, int strokeColor, int strokeWidth, int fillColor, @Nullable com.streamwide.smartms.lib.template.map.ICircle oldCircle) - Specified by:
changeCirclein interfacecom.streamwide.smartms.lib.template.map.IMap
-
removeMarker
public void removeMarker(@NonNull com.streamwide.smartms.lib.template.map.IMarker iMarker) - Specified by:
removeMarkerin interfacecom.streamwide.smartms.lib.template.map.IMap
-
removeCircle
public void removeCircle(@NonNull com.streamwide.smartms.lib.template.map.ICircle iCircle) - Specified by:
removeCirclein interfacecom.streamwide.smartms.lib.template.map.IMap
-
projectionToScreenLocation
@Nullable public android.graphics.Point projectionToScreenLocation(@NonNull com.streamwide.smartms.lib.template.map.Position position) - Specified by:
projectionToScreenLocationin interfacecom.streamwide.smartms.lib.template.map.IMap
-
setBuildingsEnabled
public void setBuildingsEnabled(boolean enabled) - Specified by:
setBuildingsEnabledin interfacecom.streamwide.smartms.lib.template.map.IMap
-
clear
public void clear()- Specified by:
clearin interfacecom.streamwide.smartms.lib.template.map.IMap
-
getIMapType
public int getIMapType()- Specified by:
getIMapTypein interfacecom.streamwide.smartms.lib.template.map.IMap
-