Skip to content

Latest commit

 

History

History
197 lines (137 loc) · 8.06 KB

CHANGELOG.md

File metadata and controls

197 lines (137 loc) · 8.06 KB

#v5.1.0

  • Adds prop annotationsPopUpEnabled and method deselectAnnotation #418
  • Adds prop pitchEnabled #407
  • Fixed an issue on Android where large polylines would crash the app #412
  • Adds methods queryRenderedFeatures and visibleFeaturesAtPoint on iOS #419
  • Adds prop reuseIdentifier for custom images on iOS #426
  • A few Cocoapod installation fixes #450 #455
  • The module no longer checks for an access token on iOS since the SDK handles this #456

#v5.0.0

  • Major breaking API changes. See the API documentation for details.
  • Unifies Android & iOS APIs.
  • Adds support for telemetry opt-out.
  • Adds offline maps support for Android.

#v4.1.1

  • [Android] Fixes Scrollable error
  • [Android] You can now properly set the size of an annotation image
  • [Android & iOS] Allows for compatibility with react native v0.25+

#4.1.0

Offline!

Offline for iOS is here! The API allows developers to specify a bounding box, min/max zoom level which will be used to download all assets to the device in the background. Once downloaded, the user can go fully offline and move their map within the boundaries specified without loading tiles from the internet.

Be sure to check out the offline API documentation, walkthrough and example before starting.

  • [iOS] Adds getBounds
  • [iOS] Adds onTap event handler
  • [Android] Adds support for local images

#4.0.0

  • [iOS] Fixes installation issues #270
  • styleUrl is now styleURL

#v3.2.3

#v3.2.2

#v3.2.1

  • [Android] Fixed an issue in react-native v0.19.0 that caused the map to be blank on startup
  • [iOS] Fixed an issue which caused a polyline to add a point at 0,0

#v3.2.0

Note, there is a new (easier) install process for iOS. See updated install.md

  • [Android] Upgrades internally to use Mapbox Android SDK v3.2.0.
  • [Android] Adds event handler onLongPress
  • [iOS] Upgrades internally to use Mapbox iOS SDK v3.1.0
  • [iOS] Adds contentInset option
  • [iOS] Adds userLocationVerticalAlignment option

#v3.1.0

  • [iOS & Android] Adds methods getDirection and getCenterCoordinateZoomLevel
  • [iOS & Android] Properly removes annotations when annotation props are updated
  • [iOS] Adds method updateAnnotation for updating annotations
  • [Android] The prop rotateEnabled has been made more consistent across both platforms.
  • [Android] Adds props logoIsHidden and attributionButtonIsHidden

#v3.0.0

With v3.0.0 most breaking changes are around annotations. Now, to remove or select an annotation, you must provide the id of the annotation. On all annotations added to the map, an id is now required.

Example:

this.selectAnnotationAnimated('the-map-ref', 'storeLocation1');

This will open the point annotation with id storeLocation1. The same concept is applied to removing specific annotations:

this.removeAnnotation('the-map-ref', 'marker2');

Changes:

  • [iOS & Android] Adds method removeAllAnnotations
  • [Android] userTrackingMode is now configured like iOS with constants. Example: userTrackingMode={this.userTrackingMode.none}
  • [Android] styleURL is now configured like iOS with constants. Example: styleURL={this.mapStyles.emerald}

#v2.2.0

  • [iOS] Breaking change: setVisibleCoordinateBoundsAnimated now takes padding for top, right, bottom, left

#v2.1.4

[iOS] Adds event listeners:

  • onFinishLoadingMap
  • onStartLoadingMap
  • onLocateUserFailed

#v2.1.3

  • [iOS] Adds props attributionButtonIsHidden, logoIsHidden and compassIsHidden for showing and hiding their respective view.

#v2.1.2

  • [Android] fixes a missing prop type bug #175

#v2.1.0

  • Adds support for [email protected]
  • [iOS] Adds event handler onTap. Fired when user taps screen. Returns lat,lng and xy screen coordinates
  • [iOS] Adds event handler onLongPress. Fired when user taps and holds screen for 1 second. Returns lat,lng and xy screen coordinates

v2.0.0

  • [iOS] Adds optional pod installation
  • [iOS] If showsUserLocation is false the Mapbox layer will no longer require location permissions
  • [iOS] Fixed a bug where icons would overwrite other icons
  • [iOS] Minimum deployment level set to 7.0
  • [iOS] Fixed a bug where when returning to map/rotating the UI, markers would disappear
  • [iOS] An empty popup will no longer be shown when there is no title and text
  • [iOS] Adds userTrackingMode
  • [Android] Upgrades to react-native v0.14.x

Breaking changes

iOS no longer supports the assets:// path for styles. Styles can be set via normal mapbox:// url or via:

this.mapStyles.light
this.mapStyles.streets
this.mapStyles.dark
this.mapStyles.satellite
this.mapStyles.hybrid
this.mapStyles.emerald

this.mapStyles is passed in via mixins. If you prefer not pass in mixins, you can just as easily reference the emerald style via styleURL={'mapbox://styles/mapbox/emerald-v8'}

v1.1.0

  • Fixed a regression in the Header Search Paths
  • [iOS] added new function setVisibleCoordinateBoundsAnimated()
  • [Android] showsUserLocation properly shows the users correct location
  • Updates Android to [email protected]

v1.0.0

  • Adds support for Android #97
  • Adds support for polylines and polygons on both platforms #95
  • The annotations object has change:
  • Either point, polyline or polygon is required.
  • Removed latitude and longitude and replaced with coordinates. For point this a single array. For polylines and polygons, this an array of arrays.

v0.4.2

  • Updates to [email protected]
  • With this comes many stability fixes and allows users to use mapbox gl v8 styles.

v0.4.1

v0.4.0

  • Adds support for react-native 0.8.0
  • Adds support for custom annotation images
  • API looks like:
{
  latitude: 40.714541341726175,
  longitude:  -74.00579452514648,
  title: 'Important!',
  subtitle: 'Neat, this is a custom annotation image',
  annotationImage: {
    url: 'https://cldup.com/7NLZklp8zS.png',
    height: 25,
    width: 25
  },
  id: 'marker2'
}

v0.3.0

Updates and bug fixes:

  • Adds compatibility with react-native through 0.7.0
  • Updates mapbox-gl-native to 0.4.0. You should see improved label density.
  • Minor changes under the hood around propagating events
  • Fixes an issue where onRegionChange and onRegionWillChange threw an error if one was not present

Note: there is a new step added to the install process requiring you to add a Settings.bundle file. Click Build Phases then Copy Bundle Resources. Click the + button. When the modal appears, click Add other. Add node_modules/react-native-mapbox-gl/RCTMapboxGL/Settings.bundle See install.md for more information.