Release notes
1.9.0
Release Date: 27.05.2021
- Added
Map.fitBounds
that moves the map so that the specified area becomes visible. - Added
ImageFactory.fromUrl
for creatingImage
from HTTP URL. - Added
LonLatBounds.extend
that extend the bounds to include given points. - Added
Map.floorPlan
for getting information about the current floor plan. - Added
Map.padding
that is taken into account when positioning the map. - Added
Map.setStyleState, Map.patchStyleState
for specifying style-specific variables. - Added
Map.isSupported, Map.notSupportedReason
to check if the device supports the SDK. - Added
Map.language
for specifying the map language. - The 2GIS site opens when clicking the copyright.
- Removed deprecated
MarkerIconDescriptor
. UseImage
instead.
1.8.0
Release Date: 22.12.2020
- Added Map.
setStyle
method that allowed set custom map style ID, that you can get at https://styles.2gis.com. - Added Map.
styleZoom
properties - Added MapFragment.
setup
arguments style, styleZoom, defaultBackgroundColor, maxBounds
1.7.0
Release Date: 18.11.2020
- Added
pedestrianRoute
method inDirections
that calculate and show route on map for pedestrians.
1.6.0
Release Date: 16.10.2020
- Added
autoHideOSMCopyright
inMap
option. If true, the OSM copyright will be hidden after 5 seconds from the map initialization.
1.5.0
Release Date: 13.10.2020
- Added
disableRotationByUserInteraction
,disablePitchByUserInteraction
Map
properties - Added
zIndex
forMarkerOptions
1.4.0
Release Date: 01.10.2020
- Added parameters
offset
andrelativeAnchor
inLabelOptions
for positioning marker's label
1.3.0
Release Date: 21.09.2020
- Added Map.
bounds
that returns geographical bounds visible in the current map view. - Added
ImageFactory
for loading icon image from assets, resources, Bitmap or local file - Added onFinish callback for Directions.
carRoute
that allow get successful or failed result on function call - Added stretched image background
LabelImage
that can be used inLabelOptions
- Added method for showing user geolocation –
enableUserLocation
disableUserLocation
1.2.1
Release Date: 25.07.2020
- Geometries can be drawn over the map
- Added marker's label
customization
- Added
Directions
- Added
Clusterer