53 Commits
Author SHA1 Message Date
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
Antonio Zugaldia bf741d51d9 Merge pull request #544 from sethvincent/patch-1
API docs: change addOfflinePackForRegion to addOfflinePack
2017-06-15 09:16:23 -04:00
Antonio Zugaldia 893c5dff83 Merge pull request #548 from carocad/patch-1
fix: api cosmetic changes
2017-05-23 09:30:33 -04:00
Antonio Zugaldia ceba710a91 Merge pull request #539 from jthetzel/master
Docs: Typo in Custom Annotations example
2017-05-23 09:29:54 -04:00
Camilo Roca bcc3efe171 fix: incorrect order 2017-05-07 16:50:46 +02:00
Camilo Roca 689cfe9b88 solves #520 2017-05-07 16:27:58 +02:00
Camilo Roca 33f08b094a fix: markdown table incorrectly formatted 2017-05-07 16:06:57 +02:00
Seth Vincent 9f96d3513d API docs: change addOfflinePackForRegion to addOfflinePack 2017-04-26 14:48:14 -04: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
Jeremy T. Hetzel ddb194e527 Docs: Typo in Custom Annotations example 2017-04-20 08:32:16 -02:30
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
Nick 0209241303 "wether" > "whether"
typo fix
2016-10-25 12:01:35 -04:00
Minh Nguyễn a77830dea5 Merge pull request #426 from aksonov/master
add reuseIdentifier usage for custom iOS annotations to fix scroll away disappearing
2016-09-30 09:24:12 -07:00
Minh Nguyễn 880fd94011 Merge remote-tracking branch 'alseageo/queryRenderedFeatures' 2016-09-27 03:28:08 -07:00
Pavlo Aksonov 7cc7fe0766 add reuseIdentifier usage 2016-09-27 12:16:55 +02:00
Pavel Aksonov f65c96d4c1 Update API.md
Add custom annotation note
2016-09-26 18:03:11 +02:00
Tanner Semerad 2bfa6352c7 updated API with queryRenderedFeatures on iOS 2016-09-25 02:16:30 -07:00
Marius Petcu e24a5ce9af Merge branch 'master' into deselectHidePopUp 2016-09-21 01:02:49 +03:00
Hanane b6775aa285 add deselectAnnotation() and annotationsPopUpEnabled to index.js and API.md 2016-09-21 00:56:14 +03:00
Tyler Cook 66960a6729 Update API.md (#410)
Fixing minor syntax issue in example.
2016-08-31 13:44:24 -07:00
Tyler Cook fd63f2b04c Removing iOS in the title (#409)
API Docs should now be merged between the two platforms. Removing the iOS designation from the title. Could make new users confused.
2016-08-31 09:44:54 -07: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 20d1ee321d Fix image source in docs annotations example 2016-07-11 23:12:48 +03:00
Marius Petcu 2a27cdc7ee Remove setCamera in favor of adding altitude to easeTo 2016-07-11 23:09:02 +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 ccdbefbc5c Report correct pitch on iOS 2016-07-11 19:58:26 +03:00
Marius Petcu 1bfccc1f5b Make styleURL optional in docs since it defaults to streets 2016-07-05 12:03:48 +03:00
Marius Petcu 21b479aca7 Deprecate emerald 2016-07-05 12:01:56 +03:00
Marius Petcu 4e1d97c200 Update documentation 2016-07-04 12:12:26 +03:00
Marius Petcu bb4c1a1bc9 Make progress notifications throttle configurable 2016-07-04 00:55:17 +03:00
Marius Petcu 3621eb181b Pass animation status in onRegion*Change 2016-07-02 23:15:37 +03:00
Marius Petcu c64e55b586 Rename onRegionChange to onRegionDidChange 2016-07-02 19:13:10 +03:00
Marius Petcu a12721cb3e Backport Android events 2016-07-02 18:34:06 +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 4181f21f49 Restructure project for unified API 2016-06-29 19:07:24 +03:00
bsudekum d160ccf075 Add android 2015-10-11 11:53:56 -07:00
bsudekum c56748f6ce Update docs 2015-09-16 21:26:26 -07:00
Quinton Aiken 8e634cbd5c Add annotationImage to addAnnotations doc 2015-09-03 13:38:14 -07:00
rsudekum c463b5f9c6 add annotation image 2015-07-28 21:08:45 -07:00
VonD b0b0741365 adding zoomEnabled prop 2015-07-09 21:17:23 +02:00
VonD 55e2974424 adding scrollEnabled prop 2015-07-09 19:00:43 +02:00
rsudekum e58bd67c05 cleanup example 2015-07-01 09:06:48 -07:00
rsudekum d1ff122095 update readme 2015-06-29 21:14:12 -07:00
rsudekum 83c5dc5a5e Merge branch 'master' into rightcallout
Conflicts:
	RCTMapboxGL/RCTMapboxGL.m
2015-06-16 21:19:11 -07:00
rsudekum f23962ac42 add rightcallout api 2015-06-16 21:15:18 -07:00
rsudekum e6daec9f4c update readme 2015-06-14 21:37:52 -07:00
rsudekum 92afa26e14 add removeAnnotation method 2015-06-04 08:26:40 -07:00
rsudekum acec773177 update readme and example 2015-06-02 22:14:14 -07:00