Package org.neshan.mapsdk
Class Settings
- java.lang.Object
-
- org.neshan.mapsdk.Settings
-
public class Settings extends java.lang.Object
set 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 float
getMaxTiltAngle()
float
getMaxZoomLevel()
float
getMinTiltAngle()
float
getMinZoomLevel()
int
getNeshanLogoBottomMargin()
get current Neshan logo margin from bottom of mapview edge in pixel.int
getNeshanLogoStartMargin()
get current Neshan logo start margin from mapview edges in pixel.boolean
isMapRotationEnabled()
check if map rotation is enabledboolean
isMarkerClusteringEnabled()
boolean
isMyLocationButtonEnabled()
check if my location button is visibleboolean
isZoomControlsEnabled()
check if zoom buttons of map is visibleboolean
isZoomGesturesEnabled()
check if zoom gestures ( two fingers gesture / tap and scroll gesture ) are enabledSettings
setMapRotationEnabled(boolean mapRotationEnabled)
set map rotation enableSettings
setMarkerClusteringEnabled(boolean markerClusteringEnabled)
Settings
setMaxTiltAngle(float maxTiltAngle)
Settings
setMaxZoomLevel(float maxZoomLevel)
Settings
setMinTiltAngle(float minTiltLevel)
Settings
setMinZoomLevel(float minZoomLevel)
Settings
setMyLocationButtonEnabled(boolean myLocationButtonEnabled)
set visibility of my location buttonSettings
setNeshanLogoMargins(int startMargin, int bottomMargin)
set Neshan logo margins from mapview edges.Settings
setZoomControlsEnabled(boolean zoomControlsEnabled)
set visibility of zoom controlsSettings
setZoomGesturesEnabled(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)
-
-