Interface ControlOptions
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
MapOptions
- All Known Implementing Classes:
DefaultMapOptions
Leaflet map control options
- Since:
- 2020-03-06
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the default attribution control is added to the map.booleanReturns whether the default zoom control is added to the map.voidsetAttributionControl(boolean attributionControl) Whether a attribution control is added to the map by default.voidsetZoomControl(boolean zoomControl) Whether a zoom control is added to the map by default.
-
Method Details
-
isAttributionControl
boolean isAttributionControl()Returns whether the default attribution control is added to the map.- Returns:
trueif the default attribution control is added to the map
-
setAttributionControl
void setAttributionControl(boolean attributionControl) Whether a attribution control is added to the map by default.- Parameters:
attributionControl- set false if yuo want to hide the default attribution control
-
isZoomControl
boolean isZoomControl()Returns whether the default zoom control is added to the map.- Returns:
trueif the default zoom control is added to the map
-
setZoomControl
void setZoomControl(boolean zoomControl) Whether a zoom control is added to the map by default.- Parameters:
zoomControl- set false if yuo want to hide the default zoom control
-