Package org.neshan.mapsdk
Class Settings
- java.lang.Object
-
- org.neshan.mapsdk.Settings
-
public class Settings extends java.lang.Objectset and changes settings of map view
-
-
Constructor Summary
Constructors Constructor Description Settings(org.neshan.mapsdk.internal.settings.MapSettingsDelegate mapSettingsDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetMaxTiltAngle()floatgetMaxZoomLevel()floatgetMinTiltAngle()floatgetMinZoomLevel()intgetNeshanLogoBottomMargin()get current Neshan logo margin from bottom of mapview edge in pixel.intgetNeshanLogoStartMargin()get current Neshan logo start margin from mapview edges in pixel.booleanisMapRotationEnabled()check if map rotation is enabledbooleanisMarkerClusteringEnabled()booleanisMyLocationButtonEnabled()check if my location button is visiblebooleanisZoomControlsEnabled()check if zoom buttons of map is visiblebooleanisZoomGesturesEnabled()check if zoom gestures ( two fingers gesture / tap and scroll gesture ) are enabledSettingssetMapRotationEnabled(boolean mapRotationEnabled)set map rotation enableSettingssetMarkerClusteringEnabled(boolean markerClusteringEnabled)SettingssetMaxTiltAngle(float maxTiltAngle)SettingssetMaxZoomLevel(float maxZoomLevel)SettingssetMinTiltAngle(float minTiltLevel)SettingssetMinZoomLevel(float minZoomLevel)SettingssetMyLocationButtonEnabled(boolean myLocationButtonEnabled)set visibility of my location buttonSettingssetNeshanLogoMargins(int startMargin, int bottomMargin)set Neshan logo margins from mapview edges.SettingssetZoomControlsEnabled(boolean zoomControlsEnabled)set visibility of zoom controlsSettingssetZoomGesturesEnabled(boolean zoomGesturesEnabled)set zoom gestures ( two fingers gesture / tap and scroll gesture ) on or off
-
-
-
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 localebottomMargin-- Returns:
-
isMarkerClusteringEnabled
public boolean isMarkerClusteringEnabled()
-
setMarkerClusteringEnabled
public Settings setMarkerClusteringEnabled(boolean markerClusteringEnabled)
-
-