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
    Constructor
    Description
    GoogleMapWrapper(com.google.android.gms.maps.GoogleMap map)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.streamwide.smartms.lib.template.map.ICircle
    addCircle(com.streamwide.smartms.lib.template.map.Position center, double radius, int strokeColor, int strokeWidth, int fillColor)
     
    com.streamwide.smartms.lib.template.map.IMarker
    addMarker(com.streamwide.smartms.lib.template.map.Position position, String title, int resourceId, float u, float v)
     
    com.streamwide.smartms.lib.template.map.IMarker
    addMarker(com.streamwide.smartms.lib.template.map.Position position, String title, int resourceId, float u, float v, boolean addToCluster)
     
    com.streamwide.smartms.lib.template.map.IMarker
    addMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon)
     
    com.streamwide.smartms.lib.template.map.IMarker
    addMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon, boolean addToCluster)
     
    com.streamwide.smartms.lib.template.map.IMarker
    addMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon, float u, float v)
     
    com.streamwide.smartms.lib.template.map.IMarker
    addMarker(com.streamwide.smartms.lib.template.map.Position position, String title, android.graphics.Bitmap icon, float u, float v, boolean addToCluster)
     
    void
    animateCamera(float bearing)
     
    void
    animateCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom)
     
    void
    animateCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing)
     
    void
    animateCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing, com.streamwide.smartms.lib.template.map.ICancelableCallback cancelableCallback)
     
    void
    animateCameraBounds(Collection<com.streamwide.smartms.lib.template.map.IMarker> markers, int padding, int minDistanceInMeter, float defaultZoom, boolean disableAllGesturesWhenAnimate)
     
    com.streamwide.smartms.lib.template.map.ICircle
    changeCircle(com.streamwide.smartms.lib.template.map.Position center, double radius, int strokeColor, int strokeWidth, int fillColor, com.streamwide.smartms.lib.template.map.ICircle oldCircle)
     
    void
     
    com.streamwide.smartms.lib.template.map.Position
     
    int
     
     
    float
     
    float
     
    void
    moveCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom)
     
    void
    moveCamera(com.streamwide.smartms.lib.template.map.Position position, float zoom, float tilt, float bearing)
     
    android.graphics.Point
    projectionToScreenLocation(com.streamwide.smartms.lib.template.map.Position position)
     
    void
    removeCircle(com.streamwide.smartms.lib.template.map.ICircle iCircle)
     
    void
    removeMarker(com.streamwide.smartms.lib.template.map.IMarker iMarker)
     
    void
    setBuildingsEnabled(boolean enabled)
     
    void
    setClusterManager(com.google.maps.android.clustering.ClusterManager<GoogleClusterItem> clusterManager)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @Nullable public Object getObject()
      Specified by:
      getObject in interface com.streamwide.smartms.lib.template.map.IMap
    • setOnCameraChangeListener

      public void setOnCameraChangeListener(@Nullable Object listener)
      Specified by:
      setOnCameraChangeListener in interface com.streamwide.smartms.lib.template.map.IMap
    • getCurrentPosition

      @NonNull public com.streamwide.smartms.lib.template.map.Position getCurrentPosition()
      Specified by:
      getCurrentPosition in interface com.streamwide.smartms.lib.template.map.IMap
    • moveCamera

      public void moveCamera(@NonNull com.streamwide.smartms.lib.template.map.Position position, float zoom)
      Specified by:
      moveCamera in interface com.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:
      moveCamera in interface com.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:
      animateCamera in interface com.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:
      animateCamera in interface com.streamwide.smartms.lib.template.map.IMap
    • animateCamera

      public void animateCamera(@NonNull com.streamwide.smartms.lib.template.map.Position position, float zoom)
      Specified by:
      animateCamera in interface com.streamwide.smartms.lib.template.map.IMap
    • animateCamera

      public void animateCamera(float bearing)
      Specified by:
      animateCamera in interface com.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:
      animateCameraBounds in interface com.streamwide.smartms.lib.template.map.IMap
    • getZoom

      public float getZoom()
      Specified by:
      getZoom in interface com.streamwide.smartms.lib.template.map.IMap
    • getTilt

      public float getTilt()
      Specified by:
      getTilt in interface com.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:
      addMarker in interface com.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:
      addMarker in interface com.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:
      addMarker in interface com.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:
      addMarker in interface com.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:
      addMarker in interface com.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:
      addMarker in interface com.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:
      addCircle in interface com.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:
      changeCircle in interface com.streamwide.smartms.lib.template.map.IMap
    • removeMarker

      public void removeMarker(@NonNull com.streamwide.smartms.lib.template.map.IMarker iMarker)
      Specified by:
      removeMarker in interface com.streamwide.smartms.lib.template.map.IMap
    • removeCircle

      public void removeCircle(@NonNull com.streamwide.smartms.lib.template.map.ICircle iCircle)
      Specified by:
      removeCircle in interface com.streamwide.smartms.lib.template.map.IMap
    • projectionToScreenLocation

      @Nullable public android.graphics.Point projectionToScreenLocation(@NonNull com.streamwide.smartms.lib.template.map.Position position)
      Specified by:
      projectionToScreenLocation in interface com.streamwide.smartms.lib.template.map.IMap
    • setBuildingsEnabled

      public void setBuildingsEnabled(boolean enabled)
      Specified by:
      setBuildingsEnabled in interface com.streamwide.smartms.lib.template.map.IMap
    • clear

      public void clear()
      Specified by:
      clear in interface com.streamwide.smartms.lib.template.map.IMap
    • getIMapType

      public int getIMapType()
      Specified by:
      getIMapType in interface com.streamwide.smartms.lib.template.map.IMap