Migration from previous major SDK versions
From versions 13.x to 14.x
For Full and Map versions
- Styles must be exported again: added and updated styles for the
Worklayer, light metro, adaptive traffic lights, GPX tracks, and custom cursors. - Removed
MapOptions. Map creation parameters are now in MapControllerOptions, and Flutter widget display parameters are inMapWidgetOptions. - Changed the creation of
MapWidgetController: use the constructor fromsdk.ContextwithcontrollerOptions, orMapWidgetController.fromMapController(...). Instead ofgetMapAsync(), usemapAsync,isReady, and the nullablemapproperty. - The Flutter theming classes
MapTheme,MapAppearance,DefaultAppearance,UniversalAppearance,AutomaticAppearance, andMapThemeColorModeare replaced with the MapTheme, MapAppearance, BySystem, and Fixed types. - Removed the single-object search methods
SearchManager.searchById(),SearchManager.searchByDirectoryObjectId(),SearchManager.searchByIdWithLocale(), andSearchManager.searchByDirectoryObjectIdWithLocale(). Use SearchManager.searchByIds() and SearchManager.searchByDirectoryObjectIds(). - Removed the static methods
SearchQueryBuilder.fromQueryText(),SearchQueryBuilder.fromRubricIds(),SearchQueryBuilder.fromQueryTextAndRubricIds(),SearchQueryBuilder.fromOrgId(),SearchQueryBuilder.fromBuildingId(), andSearchQueryBuilder.fromGeoPoint(). Use the SearchQueryBuilder constructor, SearchQueryBuilder.setQueryText(), SearchQueryBuilder.setRubricIds(), SearchQueryBuilder.setOrgId(), and SearchQueryBuilder.setBuildingIds(). - SearchQueryBuilder.setOrgId() now accepts a required
OrgIdparameter, andSearchQueryBuilder.setBuildingId()is replaced with SearchQueryBuilder.setBuildingIds(). - Removed
SearchQueryBuilder.setSpatialRestriction()andSearchQueryBuilder.setGeoPoint(). Use SearchQueryBuilder.setRestrictionGeometry() and SearchQueryBuilder.setTerritoryOfInterest(). - In SuggestQueryBuilder, removed the static method
fromQueryText()and thesetSpatialRestriction()method. Use the SuggestQueryBuilder(String queryText) constructor, SuggestQueryBuilder.setRestrictionGeometry(), and SuggestQueryBuilder.setTerritoryOfInterest(). - In PackedSearchQuery, the
orgId,buildingId,spatialRestriction, andgeoPointfields are replaced with orgIds, buildingIds, geometryRestriction, areaOfInterest, and territoryOfInterest. - Removed
isOpenanddescriptionfrom WorkStatus. Use openStatus, openStatusHint, scheduleHint, and breakHint. - In GestureManager,
multitouchShiftSettingsis renamed to multiTouchShiftSettings, and in MultiTouchRecognizeSettings,multitouchShiftThresholdMmis renamed to multiTouchShiftThresholdMm. - Removed the
visibleEventsgetter and setter from RoadEventSource. Use RoadEventSource.roadEventFilter.
Additionally for Full version
- Removed the
humpsvalue from SoundCategory.
From versions 12.x to 13.x
For Full and Map versions
-
Styles must be exported again: fixed issues with displaying custom and immersive objects.
-
Updated all layers in the
Roadsgroup for displaying immersive roads in the main map mode. -
Added the
Traffic v13.0.0group for displaying new colors of tiles with traffic jams. -
Added the
Car route line v13.0.0group for displaying car routes on immersive roads. -
Now, a single channel BaseCamera.changed is used to track camera state changes instead of separate channels for each property. Subscriptions are replaced, and additional filtering of change reasons is added.
-
Changed the method of creating some classes:
- Removed the
getSystemMemoryManagerfunction. To obtain an object for managing system memory, use the SystemMemoryManager.instance() method. - Removed the SearchHistory constructor. To obtain a search history object, use the SearchHistory.instance() method.
- Removed the RoadEventManager constructor. To obtain an object for working with road events, use the RoadEventManager.instance() method.
- Removed the
getHttpCacheManagerfunction. To obtain an object for managing the HTTP cache, use the HttpCacheManager.get() method. - Removed the
getLocaleManagerfunction. To obtain an object for managing application locales, use the LocaleManager.instance() method. - Removed the TrafficCollector constructor. To obtain an object for managing the service for traffic information collection, use the TrafficCollector.instance() method.
- Removed the
getAudioSettingsfunction. To obtain an object for managing application sound, use the AudioSettings.get() method. - Removed the
getPackageManagerfunction. To obtain an object for managing packages, use the PackageManager.instance() method. - Removed the
getTerritoryManagerfunction. To obtain an object for managing territories, use the TerritoryManager.instance() method. - Removed the
getTerritoriesAlongRouteProviderfunction. To obtain an object for extracting a list of territories along a route, use the TerritoriesAlongRouteProvider constructor. - Removed the
getVoiceManagerfunction. To obtain an object for managing voice packages, use the VoiceManager.instance() method.
- Removed the
-
Removed the
EventsProcessingSettingsclass. -
Renamed the
Gestureobject to TransformGesture. -
Renamed the
ScalingSettingsobject to ScalingRecognizeSettings. -
Renamed the
RotationSettingsobject to RotationRecognizeSettings. -
Renamed the
MultiTouchShiftSettingsobject to MultiTouchRecognizeSettings. -
Renamed the
TiltSettingsobject to TiltRecognizeSettings. -
GestureManager.scalingSettings, GestureManager.rotationSettings, GestureManager.multitouchShiftSettings, and GestureManager.tiltSettings now return objects with ScalingGestureSettings, RotationGestureSettings, MultiTouchGestureSettings, and TiltGestureSettings types, respectively.
-
Moved the Color class for representing colors from the
ru.dgis.sdk.mappackage. -
Moved the ScreenDistance class from the
ru.dgis.sdk.mappackage. -
Moved the ScreenPoint class from the
ru.dgis.sdk.mappackage. -
Moved the ScreenShift class from the
ru.dgis.sdk.mappackage. -
Removed the
buildingLevelsproperty for obtaining floor plans from the DirectoryObject. -
The DirectoryObject.buildingInfo property is now optional.
-
The BuildingInfo.buildingId property is now mandatory and cannot be empty.
-
The LevelInfo.id property is now optional.
-
Changed the type of the PublicTransportDirectoryRouteInfo.color property from
Int?to Color?. -
The SearchQueryBuilder.setGeoPoint() method now accepts an optional value type.
-
The SearchQueryBuilder.setRadius() method now accepts an optional value type.
Additionally for Full version
- Removed the
getRoadMacroGraphfunction and theRoadMacroGraphclass. Now, to build offline routes between neighboring regions, download the required region packages. - Removed the class for configuring the position of the bubble with lanes on the route (
LanesCalloutMapPositionandRouteMapObject.lanesCalloutPositions) and the property from the RouteMapObject. - Renamed the
UIntRouteLongAttributeclass to DoubleRouteLongAttribute. - Changed the type of the Route.trafficLights property from VoidRouteAttribute to StringRouteAttribute.
- Added a new transport type
motorcycleto TransportType. - Added parameters for configuring the style zoom level to the SpeedRangeToStyleZoom constructor.
- Added the
rampDown,rampUp,smoothRampDown, andsmoothRampUpvalues for ramps to RoadSubtype. - Added new values of positions and landmarks to CarInstructionCrossroadLandmark.
- Added the
deepGreenandorangecolor values to TrafficSpeedColor. - Added the
crossingflag for displaying the start and end of a crossing on a route to RouteMapObjectDisplayFlag. - Added the
crossingnew type of a route point (the start and end of a crossing) to RoutePointKind. - Added values for event notifications
betterRoute("better route") andhumps(speed bumps) to SoundCategory.