80 Commits
Author SHA1 Message Date
gcole 9a3646faf5 Fix ios offline pack bugs.
- Only resume packs that aren't complete.
- Don't fire events for invalid packs.
2017-08-09 10:00:38 -07:00
gcole 3a12bb4fb8 Make offline packs more robust.
- Separate the access token initialization and offline maps
  initialization.
- Make the initialization functions return promise so that the consumer
  code can know when mapbox and the offline packs are ready to be used.
- Expose setConnected method.
- Update docs.
2017-08-08 10:20:56 -07:00
aksonov 81329465c6 upgrade to RN0.44 2017-05-15 09:08:16 +02:00
Sơn Trần-Nguyễn 3df91c5244 Update headers for RN@0.40.0 (#487) 2017-02-07 10:06:45 +01:00
Lucas Wojciechowski 7627679c08 Fix bug preventing "Mapbox.getOfflinePacks" from returning on iOS (#467) 2016-11-30 18:02:22 -08:00
Will Fisher 3b4d1acd67 Update RCTMapboxGLManager.m 2016-10-27 23:05:57 -04:00
Brian Cooley-Gilliom 10ab9b4abb Exposing min/max zoom level properties to react native 2016-10-17 10:40:56 +01:00
Minh Nguyễn 880fd94011 Merge remote-tracking branch 'alseageo/queryRenderedFeatures' 2016-09-27 03:28:08 -07:00
Tanner Semerad d4cf5d5dc9 refactored getting polygon and polyline coordinate arrays into 2 new categories 2016-09-26 15:52:03 -07:00
Tanner Semerad cd1a26f10a now accept rect for query 2016-09-25 01:26:47 -07:00
Tanner Semerad 00ab190fda returning a Promise rather than using a callback 2016-09-23 19:24:55 -07:00
Tanner Semerad d1f7a1edc7 added 'id' attribute to GeoJSON 2016-09-23 19:16:57 -07:00
Tanner Semerad 28d192a12c now supporting all GeoJSON geometry types 2016-09-23 17:36:29 -07:00
Tanner Semerad 668000e5a8 added MGLMultiPointFeature check 2016-09-23 15:45:01 -07:00
Tanner Semerad 0ea8fecc5f fixed polygon to add interior rings 2016-09-23 12:59:10 -07:00
Tanner Semerad 0c05d43b7e properly grab 'layers' as NSArray, then convert to NSSet if not nil 2016-09-23 11:59:13 -07:00
Tanner Semerad 15d2dd48a8 queryRenderedFeatures working with screen point, returning GeoJSON points, polylines, and polygons 2016-09-22 16:41:52 -07:00
Tanner Semerad d92b823024 WIP. Attempt at querying features, getting 'unrecognized selector sent to instance' 2016-09-21 11:46:11 -07:00
Marius Petcu e24a5ce9af Merge branch 'master' into deselectHidePopUp 2016-09-21 01:02:49 +03:00
Ben Clayton 3ee56f5075 Expose pitchEnabled property (#407)
* Expose the 'pitchEnabled' property, so developer can turn off 'two-fingers to tile map' feature. iOS-only so far.

* Add `pitchEnabled` property to Android implementation

* add `pitchEnabled` to docs
2016-08-29 14:09:14 -07:00
Hanane d68b32541f implementation of deselectAnnotation and annotationsPopUpEnabled 2016-07-25 16:43:36 +03:00
Marius Petcu d25e72028f Improve reliability of listing packs on startup on iOS 2016-07-22 13:10:42 +03:00
Marius Petcu 2a27cdc7ee Remove setCamera in favor of adding altitude to easeTo 2016-07-11 23:09:02 +03:00
Marius Petcu ccdbefbc5c Report correct pitch on iOS 2016-07-11 19:58:26 +03:00
Marius Petcu bb4c1a1bc9 Make progress notifications throttle configurable 2016-07-04 00:55:17 +03:00
Marius Petcu 5a88a12a59 Reject in addOfflinePack instead of throwing 2016-07-03 18:30:40 +03:00
Marius Petcu c64e55b586 Rename onRegionChange to onRegionDidChange 2016-07-02 19:13:10 +03:00
Marius Petcu b893fb7342 Rename offline pack native methods 2016-07-02 00:38:23 +03:00
Marius Petcu 2aa9aca898 Refactor offline functions with promises 2016-07-02 00:29:56 +03:00
Marius Petcu 4ae4d7295e Solve pitch API difference 2016-07-01 23:55:04 +03:00
Marius Petcu 362e4e39a4 Clean up timer code 2016-06-29 14:49:35 +03:00
Marius Petcu ed4e33cbf5 Work around Mapbox pack removal bug 2016-06-29 14:47:03 +03:00
Marius Petcu e315beaaf7 Suspend pack before removing it 2016-06-29 10:13:39 +03:00
Marius Petcu 6c3417f5ad Fix crash on removing throttled pack 2016-06-28 23:43:31 +03:00
Marius Petcu 90d68ab254 Clean up RCTMapboxGLManager init 2016-06-28 20:10:46 +03:00
Marius Petcu a7f40ce915 Fix resuming packs on app reload 2016-06-28 20:01:14 +03:00
Marius Petcu d17511ba2f Queue calls to getOfflinePacks until packs becomes available 2016-06-25 01:43:39 +03:00
Marius Petcu 1ce9efef74 Flush throttle before error events 2016-06-24 22:19:29 +03:00
Marius Petcu 8db39e4cb0 Throttle progress events so as not to starve the JS runloop 2016-06-24 22:14:22 +03:00
Marius Petcu abfcaa1bdd Send only annotation changes over bridge 2016-06-21 17:10:40 +03:00
Marius Petcu fc76f103db Document refactor. Rename some APIs 2016-06-21 14:37:59 +03:00
Marius Petcu 5e98043f92 Add iOS offline pack static methods 2016-06-20 23:11:37 +03:00
Marius Petcu 091ef9584f Remove RCTMapboxGLModuleManager in favor of the initial single native module 2016-06-20 21:13:22 +03:00
Marius Petcu d5c790fe50 Refactor iOS events away from customDirectEventTypes 2016-06-20 20:54:29 +03:00
Marius Petcu 470068b2ff Rename iOS viewport props to initial* 2016-06-20 20:02:08 +03:00
Marius Petcu 26b4614573 Refactor iOS native implementation 2016-06-20 19:30:10 +03:00
Marius Petcu 165977e17e Add onChangeUserTrackingMode 2016-06-17 18:43:13 +03:00
Marius Petcu d6cc31bf55 Add support for toggling metrics 2016-06-17 14:20:37 +03:00
Tim Park c619d41580 Fix string equality check in removePack (#359) 2016-06-09 14:08:50 -07:00
Noah Jorgensen 77c7191816 setCenterCoordinateAnimated returns a promise (#349)
close #348
- Hook into completionHandler to resolve promise
2016-05-09 11:07:58 -07:00