React Native SDK
Last updated
Last updated
Changelog for the MapsIndoors React Native SDK. This document structure is based on and the project adheres to .
Fixed a possible memory leak on Android when creating MapControl
Fixed a parsing issue when a negative floor index was assigned on objects
Fixed possible threading issues between native and react on iOS
Fixed an issue with parsing MultiPolygons
on the Floor objects
Updated MapsIndoors iOS SDK to 4.9.7
Updated MapsIndoors Android SDK to 4.11.3
Updated MapsIndoors iOS SDK to 4.9.4
Updated MapsIndoors Android SDK to 4.11.1
Added a method cacheData
on MapsIndoors
- allows you to cache all data before loading a solution. Allowing for full offline usage
Fixed an issue that goTo
with maxZoom
supplied was not implemented on the native side
Updated MapsIndoors iOS SDK to 4.9.3
Updated MapsIndoors Android SDK to 4.11.0
Updated MapsIndoors iOS SDK to 4.9.2
Updated MapsIndoors Android SDK to 4.10.1
Added automatedZoomLimit
on the MPSolutionConfig
This controls the maximum zoom level the camera can zoom to when doing MapsIndoors camera operations. It is still possible to zoom further in manually
Added maxZoom
to MPSelectionBehavior
,MPHiglightBehavior
,MPFilterBehavior
Overwrites the automatedZoomLimit for a specific camera operation
Null by default
Added optional mapboxMapStyle
to the MapView
to be able to set a custom mapbox style.
Requires useMapsIndoorsDefaultStyle
to be set to false
in the MPMapConfig
. For the style to work when MapControl
is created
Updated MapsIndoors iOS SDK to 4.9.1
Updated MapsIndoors Android SDK to 4.10.0
Added setLabelStylePosition
and getLabelStylePosition
on MPDisplayRule
Added MPLabelPosition
Enum representing the different places the label can be anchored to the Marker
Fixed an issue where showUserPosition
on the MPMapConfig
would not work on iOS
Fixed an issue where MPPositionResultInterface
would cause an error, when the MPPoint
had an undefined or null floor index.
New default positioning of labels relative to the icon is MPLabelPosition.bottom
. If you want to keep the previous default of MPLabelPosition.right
you can place the following line in your code after loading MapsIndoors data with MapsIndoors.getMainDisplayRule().then((displayRule) => { displayRule.setLabelStylePosition(MPLabelPosition.right); });
Updated MapsIndoors iOS SDK to 4.8.0
Updated MapsIndoors Android SDK to 4.9.0
Fixed issue where MPCameraUpdate.zoomBy
on iOS Mapbox would set the zoom to the given value, instead of adjusting by the value
Fixed issue where MapControl.animateCamera
, did not actually animate on Mapbox
Fixed issue where you could not set parameters to false, on MPSelectionBehavior
and MPHighlightBehavior
when calling create
Updated MapsIndoors iOS SDK to 4.6.1
Updated MapsIndoors Android SDK to 4.8.11
Specified Google Maps linkage on iOS. If upgrading from earlier versions make sure to remove the post_install
script inside the podfile that removes the static linked library from MapsIndoorsGoogleMaps
Updated MapsIndoors iOS SDK to 4.6.1
Updated MapsIndoors Android SDK to 4.8.11
camera:MPCameraPosition
to the MapView
view. To set an initial camera position when showing the map.
showCompass:boolean
to the MapView
view. To enable/disable if the compass should show when rotating the map
Fixed a compile issue with xcode 16
Updated to Mapbox 11.7.0 on Android
Fixed a potential crash happening when hot reloads happen to the Mapview
Fixed an issue where selectable property was nul on locations
Fixed an issue where the map would not render before a map interaction
Fixed an issue where requesting a route would never resolve/reject the promise
Fixed an issue where the route would reappear after clearing it on the DirectionsRenderer
Updated iOS SDK to 4.5.15
Updated Android SDK to 4.8.9
Fixed missing events being sent when using MPFloorSelectorInterface on iOS
Updated iOS SDK to 4.5.13
Added optional legIndex, to set the initial leg index of a route. When using setRoute
on MPDirectionsRenderer
Fixed issue with directions not being rendered on subsequent map renderings
Fixed issue with imageUrl being undefined on MPLocation
Fixed issue where camera events was not being sent on iOS
Fixed issue where tilt was not used when set on Camera updates
Fixed flickering when selecting locations on iOS
Updated Android SDK to 4.8.8
Updated iOS SDK to 4.5.12
Issue with subsequent Mapcontrol creation on iOS, causing rendering errors
Updated iOS SDK to 4.5.11
showRoadLabels to MPMapConfig
Sets wether the Mapbox Road labels should be shown on the map. If left undefined, it follows the transition level.
Issue with where map data is not rendered on the map, while MapControl has loaded successfully on iOS
Issue with DisplayRule changes not updating before a map interaction
Updated Android SDK to 4.8.7
Updated iOS SDK to 4.5.10
Updated iOS SDK to 4.5.6
Updated iOS SDK to 4.5.6
Fixed issue where tiles would fade away, regardless of mapsindoorsTransitionLevel
on Mapbox iOS
Added new MPCameraViewFitMode.none
to disable camera movement, when changing legs on MPDirectionsRenderer
Added new properties to MPDisplayRule
:
setLabelStyleGraphic
sets a graphic label:
backgroundImage
stretchX
stretchY
content
getLabelStyleGraphic
set/getModel3DModel
set/getModel3DRotationX
set/getModel3DRotationY
set/getModel3DrotationZ
set/getModel3DScale
set/getModel3DZoomFrom
set/getModel3DZoomTo
set/isModel3DVisible
Added new methods on MapControl
:
setHiddenFeatures
set a list of MPFeatureType
to be hidden from the map
getHiddenFeatures
get a list of currently hidden MPFeatureType
setBuildingSelectionMode
set a Selection mode for Buildings on the Map with MPSelectionMode
(automatic or manual)
setFloorSelectionMode
set a Selection mode for Floors on the Map with MPSelectionMode
(automatic or manual)
getBuildingSelectionMode
get the current selection mode on MapControl
getFloorSelectionMode
get the current selection mode on MapControl
Added types: MPPOIType[]
on MPSolution
to get a list of types for the solution
Added setSelectable
and isSelectable
on MPLocation
, MPPOIType
and MPSolutionConfig
Added mapsIndoorsTransitionLevel?: number
to MPMapConfig
Sets the zoom level at which the MapsIndoors data should show, instead of extruded buildings on Mapbox Maps. Can be set to 0, if extruded buildings should not show.
Added showMapMarkers?: boolean
to MPMapConfig
Sets wether the Mapbox POI and Places markers hould be shown on the map. If left undefined, it follows the transition level.
Updated iOS SDK to 4.5.4
Updated Android SDK to 4.8.5
Updated iOS SDK to 4.5.1
Updated Android SDK to 4.8.4
Fixed issue where route would not be optimised on iOS when querying multi stop routes
Fixed issue where the first leg would not be animated on iOS
Updated iOS SDK to 4.4.1
Updated Android SDK to 4.8.3
Added Support for Mutli-stop navigation
Added optional stops: MPPoint[]
and optimize: boolean
to MPDirectionsService.getRoute
Added setDefaultRouteStopIcon
to MPDirectionsRenderer
Added optional stopIcons: Map<number, RouteStopIconConfig>
to MPDirectionsRenderer.setRoute
Added MPRouteStopIconConfig
for changing the look of the default stop icons
Added ordered_stop_indexes
to MPRoute
Added legStartReason
, legEndReason
and stopIndex
to MPRouteLeg
Updated iOS SDK to 4.4.0
Updated Android SDK to 4.8.1
Updated Android Mapbox SDK to 10.17.1
Fixed zoom not being applied when changing camera with a MPCameraPosition
on Mapbox iOS
Upped the minimum version requirement for iOS to 14.
Updated iOS SDK to 4.3.9
Updated Android SDK to 4.6.0
Fixed an issue with the privacy manifest not allowing release of apps on app store
Fixes from updates to native SDKs
Updated iOS SDK to 4.3.9
Updated Android SDK to 4.6.0
New optional list of strings, with venue id's on load
. For optional venue loading.
New methods to support optional venue loading.
addVenuesToSync(venues: string[])
removeVenuesToSync(venues: string[])
getSyncedVenues(): Promise<string[]>
The MapsIndoors iOS SDK now includes a Privacy Manifest as described by Apple in Upcoming third-party SDK requirements. This also includes an update to the Mapbox 10.17.0 that includes a fix to the privacy manifest of Mapbox.
Fixes from updates to native SDKs
Updated iOS SDK to 4.3.9
Updated Android SDK to 4.6.0
New optional list of strings, with venue id's on load
. For optional venue loading.
New methods to support optional venue loading.
addVenuesToSync(venues: string[])
removeVenuesToSync(venues: string[])
getSyncedVenues(): Promise<string[]>
The MapsIndoors iOS SDK now includes a Privacy Manifest as described by Apple in Upcoming third-party SDK requirements. This also includes an update to the Mapbox 10.17.0 that includes a fix to the privacy manifest of Mapbox.
Fixes from updates to native SDKs
Updated iOS SDK to 4.3.2
Updated Android SDK to 4.3.1
New default rendering of selection. Can be reverted by changing isNewSelection
to false
Exclude highway support
Select/highlight support with new DisplayRule settings
iconScale
iconPlacement
labelType
polygonLightnessFactor
wallLightnessFactor
extrusionLightnessFactor
labelStyleTextSize
labelStyleTextColor
labelStyleTextOpacity
labelStyleHaloOpacity
labelStyleHaloWidth
labelStyleHaloBlur
labelStyleBearing
badgeVisible
badgeZoomFrom
badgeZoomTo
badgeRadius
badgeStrokeWidth
badgeStrokeColor
badgeFillColor
badgePosition
Support for non-selectable locations
Support for flat labels
Issue where compass would not show up on Mapbox for iOS
Fixes from updates to native SDKs
Issue where subsequent maps would not be able to draw a route on iOS
Updated iOS SDK to 4.2.13
Updated Android SDK to 4.2.8
Updated iOS SDK to 4.2.12
Improved camera padding behavior
Updated Android SDK to 4.2.6
Updated iOS SDK to 4.2.10
Fixed case where tiles would not show up after loading the map on iOS
Fixed an issue with route legs missing geometries for steps on iOS
Updated Android SDK to 4.2.3
Updated iOS SDK to 4.2.6
Changed setLabelOptions to have optional parameters
Fixed issue with showRouteLegButtons not working on iOS
Updated Android SDK to 4.2.2
Updated iOS SDK to 4.2.5
Added support for hiding route leg buttons
Added support for setting label textsize, color and halo
Updated Android SDK to 4.1.11
Updated iOS SDK to 4.2.4
Fixed issue with abutters on MPRouteStep missing on iOS
Fixed issue with highways on MPRouteStep missing on iOS
Fixed issue with HTML instructions and Manoeuvre contradicting each other on MPRoutestep
iOS now has working cameraEvents
Updated Android SDK to 4.1.10
Updated iOS SDK to 4.2.2
Fixed Crash when switching between legs of a route on iOS
Fixed Crash when calling animateCamera on iOS
Fixed Parsing issues on some geometries from native code
Full release, you can find the packages available on nmpjs: ,