Class Settings


  • public class Settings
    extends java.lang.Object
    set and changes settings of map view
    • Constructor Detail

      • Settings

        public Settings​(org.neshan.mapsdk.internal.settings.MapSettingsDelegate mapSettingsDelegate)
    • Method Detail

      • isZoomControlsEnabled

        public boolean isZoomControlsEnabled()
        check if zoom buttons of map is visible
        Returns:
      • setZoomControlsEnabled

        public Settings setZoomControlsEnabled​(boolean zoomControlsEnabled)
        set visibility of zoom controls
        Parameters:
        zoomControlsEnabled -
        Returns:
      • setMinZoomLevel

        public Settings setMinZoomLevel​(float minZoomLevel)
      • getMinZoomLevel

        public float getMinZoomLevel()
      • setMaxZoomLevel

        public Settings setMaxZoomLevel​(float maxZoomLevel)
      • getMaxZoomLevel

        public float getMaxZoomLevel()
      • setMinTiltAngle

        public Settings setMinTiltAngle​(float minTiltLevel)
      • getMinTiltAngle

        public float getMinTiltAngle()
      • setMaxTiltAngle

        public Settings setMaxTiltAngle​(float maxTiltAngle)
      • getMaxTiltAngle

        public float getMaxTiltAngle()
      • isMapRotationEnabled

        public boolean isMapRotationEnabled()
        check if map rotation is enabled
        Returns:
      • setMapRotationEnabled

        public Settings setMapRotationEnabled​(boolean mapRotationEnabled)
        set map rotation enable
        Parameters:
        mapRotationEnabled -
        Returns:
      • isMyLocationButtonEnabled

        public boolean isMyLocationButtonEnabled()
        check if my location button is visible
        Returns:
      • setMyLocationButtonEnabled

        public Settings setMyLocationButtonEnabled​(boolean myLocationButtonEnabled)
        set visibility of my location button
        Parameters:
        myLocationButtonEnabled -
        Returns:
      • isZoomGesturesEnabled

        public boolean isZoomGesturesEnabled()
        check if zoom gestures ( two fingers gesture / tap and scroll gesture ) are enabled
        Returns:
      • setZoomGesturesEnabled

        public Settings setZoomGesturesEnabled​(boolean zoomGesturesEnabled)
        set zoom gestures ( two fingers gesture / tap and scroll gesture ) on or off
        Parameters:
        zoomGesturesEnabled -
        Returns:
      • getNeshanLogoStartMargin

        public int getNeshanLogoStartMargin()
        get current Neshan logo start margin from mapview edges in pixel. start margin may be left or right based on device locale
        Returns:
      • getNeshanLogoBottomMargin

        public int getNeshanLogoBottomMargin()
        get current Neshan logo margin from bottom of mapview edge in pixel. start margin may be left or right based on device locale
        Returns:
      • setNeshanLogoMargins

        public Settings setNeshanLogoMargins​(int startMargin,
                                             int bottomMargin)
        set Neshan logo margins from mapview edges.
        Parameters:
        startMargin - may be left or right based on device locale
        bottomMargin -
        Returns:
      • isMarkerClusteringEnabled

        public boolean isMarkerClusteringEnabled()
      • setMarkerClusteringEnabled

        public Settings setMarkerClusteringEnabled​(boolean markerClusteringEnabled)