89 Commits
Author SHA1 Message Date
Nick Italiano f4402cdae2 Merge pull request #571 from atarsha/Add-MGLOfflinePackState
Expose OfflineRegion/OfflinePack pack state in progress object and add resume/suspend offline download support
2017-08-29 11:50:41 -07:00
Alex Tarsha 29be55ffb2 Slight refactor for Android portion of PR 2017-08-28 14:29:43 -06:00
Nick Italiano af52ba35a2 Merge pull request #600 from bahaa96/patch-1
Handling Android RN 0.47 breaking change
2017-08-17 09:53:51 -07:00
Alex Tarsha 5d3ce90c16 Merge branch 'master' into Add-MGLOfflinePackState 2017-08-16 19:19:01 -06: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
Bahaa Jr d4eeefa462 Handling Android RN 0.47 breaking change
[facebook/react-native@ce6fb33](https://github.com/facebook/react-native/commit/ce6fb337a146e6f261f2afb564aa19363774a7a8)
2017-08-07 17:31:48 +02:00
Alex Tarsha 4f5427f329 Add support for suspending and resuming pack downloads and upgrade native SDK to repair iOS blocked UI during downloads on init. 2017-06-17 23:43:56 -06:00
Alex Tarsha 72a4e6da5f Added Offline Pack State to progress object and normalized Android RegionStatus output with iOS 2017-06-15 02:21:45 -06:00
gcole 156d3f9cf8 Android custom annotation bugfixes.
- Custom annotations would sometimes not get rendered on the screen.
  Haven't nailed down the exact problem, but it was some sort of
  interleaving of operations from adding children and computing custom
  marker views. Moving the marker view stuff to when the map finishes
  loading resolves this.
- The adapter for the react native marker views now handles the caching
  behaviour correctly and re-uses views when they are available.
- Make sure each layout actually gets the height and width of the react
  native views from the correct shadow nodes so that they don't all have
  the same measurements by accident.
- Update locations of annotations when they are changed.
- Split annotation views into a map. The manager is a singleton and all
  the existing map views go through it so the children need to be kep
  separately.
- Safeguard against relayout being called after onDrop(), resulting in a
  null pointer exception.
2017-04-21 15:12:08 -07:00
gcole 4d41d6fcab Set custom view layouts params. 2017-03-29 22:18:37 -07:00
gcole 73665878ee Need default constructor in marker view options.
Removed this pre-commit too hastily.
2017-03-28 14:53:56 -07:00
gcole c9b60e17c2 Custom annotation views for Android.
This gives feature parity to Custom Annotation Views
between iOS and Android.

- Add custom marker view and options for mapbox.
- Add an implementation for the Annotation class.
- Add a MarkerViewAdapater that transforms Annotations into views that
  get displayed on the map.
- Handle adding and removing of children.
- Update custom annotation docs.
2017-03-28 14:53:56 -07:00
Eric Samelson c0ebef23fb ensure that MapboxAccountManager class is always created from the main thread; fixes crash from Android SDK 4.2.0-beta.4 and up (#517) 2017-03-13 17:49:55 -07:00
Brian Cooley-Gilliom 10ab9b4abb Exposing min/max zoom level properties to react native 2016-10-17 10:40:56 +01:00
Marius Petcu e24a5ce9af Merge branch 'master' into deselectHidePopUp 2016-09-21 01:02:49 +03:00
Hanane 577ae45090 ANDROID: implementation of deselectAnnotation() and annotationsPopUpDisabled 2016-09-21 00:41:03 +03:00
Carl Craig 353063eefc fix large polyline annotations on android 2016-09-19 16:09:22 +01: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
Marius Petcu 2a27cdc7ee Remove setCamera in favor of adding altitude to easeTo 2016-07-11 23:09:02 +03:00
Marius Petcu 4c7760c6d9 Remove OfflineRegionDummyObserver 2016-07-11 21:50:30 +03:00
Marius Petcu d7f107d0fb Replace image! with source: { uri } 2016-07-11 21:47:42 +03:00
Marius Petcu 8fc0354df8 Differentiate location reporting APIs where it can't be helped 2016-07-11 20:19:05 +03:00
Marius Petcu 7bc5e69db0 Fix marker not opening on Android 2016-07-04 01:58:59 +03:00
Marius Petcu 2fa697c9c6 Fix listener cleanup 2016-07-04 01:41:04 +03:00
Marius Petcu bb4c1a1bc9 Make progress notifications throttle configurable 2016-07-04 00:55:17 +03:00
Marius Petcu 19f8a46449 Handle succession of offline commands more robustly on Android 2016-07-04 00:15:02 +03:00
Marius Petcu 8a7640369f Implement offline packs for Android 2016-07-03 23:24:33 +03:00
Marius Petcu d55bb119bc Optimize Android marker icon caching 2016-07-03 17:16:06 +03:00
Marius Petcu 13a0b68019 Simplify Android annotations code 2016-07-03 16:06:03 +03:00
Marius Petcu c68a135a8e Cache annotation images 2016-07-03 00:53:33 +03:00
Marius Petcu 3621eb181b Pass animation status in onRegion*Change 2016-07-02 23:15:37 +03:00
Marius Petcu aa31793795 Throttle onRegion*Change on Android 2016-07-02 23:08:38 +03:00
Marius Petcu 551bada3be Implement Android annotation events 2016-07-02 21:55:55 +03:00
Marius Petcu ca0cc491ba Backport annotations to Android 2016-07-02 21:19:03 +03:00
Marius Petcu 6ed0187426 Disable onRegionChange events when not in use 2016-07-02 20:00:22 +03:00
Marius Petcu 84d5876f2f Clears up semantics in easeTo() 2016-07-02 19:33:01 +03:00
Marius Petcu c64e55b586 Rename onRegionChange to onRegionDidChange 2016-07-02 19:13:10 +03:00
Marius Petcu 5f0145f762 Add direct events definitions 2016-07-02 19:04:23 +03:00
Marius Petcu d6379803e5 Create map after first transaction 2016-07-02 18:51:09 +03:00
Marius Petcu a12721cb3e Backport Android events 2016-07-02 18:34:06 +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 99e1997ec5 Coerce all props in onMapReady 2016-07-01 02:57:35 +03:00
Marius Petcu 26ae2941d5 Make all Android props changeable 2016-07-01 02:46:59 +03:00
Marius Petcu 667a3b583f Implement the majority of imperative Android methods 2016-07-01 02:33:30 +03:00
Marius Petcu 0abd92837c Implement Android error handling. Add Android telemetry toggle. 2016-06-30 21:31:59 +03:00
Marius Petcu ed92dd8187 Implement contentInset 2016-06-30 20:48:01 +03:00
Marius Petcu 66a868da74 Implement Android props 2016-06-30 20:25:01 +03:00
Marius Petcu 6d400f45e0 Refactor Android boilerplate. Update Android SDK 2016-06-30 16:59:10 +03:00