102 Commits
Author SHA1 Message Date
Evan Bacon ecb9c829f8 Fixed missing MapView types 2019-09-30 15:26:25 -04:00
Evan Bacon dbcd070f1a Merge remote-tracking branch 'upstream/master' 2019-09-30 13:10:11 -04:00
Evan Bacon ee582a9d3a Deleted unused providers 2019-09-30 12:41:19 -04:00
Erkan Sen 0f35b5da97 Add Heatmap back in (#3064)
* Add Heatmap back in

* Added semicolon
2019-09-17 08:00:35 -07:00
Poyan Nabati 094f86456e Add onDoublePress callback (#2937)
Add to Google Maps on Android and Apple Maps on iOS
2019-08-29 07:17:26 -07:00
Martin Rädlinger b8f2bfa663 add overlay onPress event (#3007) 2019-08-14 14:38:48 +02:00
Evan Bacon cdb9513f96 Added show/hide callout 2019-08-12 17:47:19 -07:00
Yeshan Jayasinghe 458171a2e9 Google Maps - Heatmaps for Android and iOS (#2960)
* Updated heatmap iOS changes (From david-cako PR #2241).

* Updated heatmap JS changes (From david-cako PR #2241).

* Updated heatmap Android changes (From david-cako PR #2241).

* Fixed lint issues.

* Added WeightedLatLng type def. for heatmaps.

* Updated ReadMe files (docs).
2019-08-07 09:47:46 -07:00
Nikita Perevyazkin b781c1184b Added GeoJSON support by default (#2959)
* Added GeoJSON component

* deleted uuid generation, used index instead

* Added geojson description to docs and examples

* Added import to App.js in examples

* fixed prettier syntax errors

* fixed another prettier errors
2019-08-07 09:25:08 -07:00
Evan Bacon d9b1e0cc1b [Leaflet] Camera Control 2019-07-24 16:25:05 -07:00
Evan Bacon 8c96e9c746 Disabled LiteMode shim 2019-07-24 14:55:10 -07:00
Evan Bacon 1df384fe50 Added web resolveAssetSource 2019-07-23 21:44:28 -07:00
Evan Bacon 693f7a3826 Added more Leaflet map props 2019-07-03 18:09:23 -07:00
Evan Bacon 99754b0d61 Added Mapbox shims 2019-07-03 16:05:17 -07:00
Evan Bacon 7ac97a772a Animate to bounds 2019-07-02 19:25:06 -07:00
Evan Bacon 2ac59dfe5d Fixed Leaflet map loading 2019-07-02 18:36:39 -07:00
Evan Bacon adde3aa9f3 Added web shims for GoogleMaps and Leaflet 2019-07-02 17:51:02 -07:00
Kenneth Tsang 091c237d25 fix: map style being set before map is ready (#2915)
* fix: map style being set before map is ready

* chore: lint fix
2019-06-16 10:33:19 +02:00
Kenneth Tsang 99492e92ab fix: resolves react snapshot undefined warning (#2903) 2019-06-13 09:37:22 +02:00
Dan Tamas dbf746d66c Unify eslint with react-community standard (#2862)
* move eslitnt rules to @react-native-community/eslint-config

* gitignore VSCode workspace settings

* update eslint related packages and remove airbnb ones

* add .prettierrc config

* automated fix by eslint and prettier

* remove custom eslint rules

* remove never reported elint exceptions

* remove unlimited eslint-disable exceptions

* fix  formating

* fix inline styles

* fix react to 16.8.3 and remove babel-preset-react-native
2019-05-15 15:08:19 +02:00
Taym Haddadi 5735436b8a Remove componentWillUpdate (#2849)
* Use getSnapshotBeforeUpdate and componentDidUpdate instead of componentWillUpdate

* Try to fix travis linter

* Fix travis linter
2019-05-15 14:08:16 +02:00
Jason Li 1c2b8f894f Add compass location offsets for iOS maps (#2397)
* Added compass offset for iOS

* Fixed import type

* Updated doc
2019-05-09 08:27:25 +02:00
Maurits Dijkstra 4c2d8e3d4d Allow the Google Maps custom map style to be changed after the map has been initialized. (#2017) 2019-04-24 16:00:06 +02:00
Daniel Dimitrov 35e96432e7 TestID's for e2e automation (#2253)
* re-applying pull request 1170

It seems that the following pull https://github.com/react-community/react-native-maps/pull/1170 request has been abandoned, but testID is still required if one wants to make e2e tests

https://github.com/react-community/react-native-maps/issues/2252

* Update App.js
2019-04-14 16:57:14 -07:00
Nizam Moidu ce80b43f78 Support for WMS Layer support (#2568)
* [WIP] Geoserver layer Apple Maps

* [WIP] Google Maps layer doesnt work yet

* [iOS] [GoogleMap] support for WMS layers

* updated AirMaps xcode project with new sources

* [Android] support for WMS layer

* refactor to MapWMSTile

* react example for WMS tile

* WMS Tile sample list item

* lint corrections
2019-04-14 16:30:15 -07:00
Gaëtan Kueny b06b7742d5 Indicat that showsScale prop is Apple Maps only (#2759)
* Indicat that showsScale prop is Apple Maps only

See #2757

* Indicate that  is ios plateform only in MapView file

* fix eslint
2019-03-25 08:53:19 +00:00
Denis Oblogin 6ad2ffcf6a Custom callout improvements (#2581)
* fixes #2279

todo: add example
todo: AIRGoogleMapCalloutSubview*
todo: marker-inside-overlay-press?

* upd

* additions to readme

* removed unused (for now) delegate patching

* lint fixes

* Pass `point` at callout press events

* Also pass callout frame
todo: fix for Apple map

* - Added prop `alphaHitTest` for `Callout`
- Added method `getMarkersFrames(onlyVisible=false)` for `MapView`
- Fix for pinch gesture

* lint fixes

* added `getMarkersFrames` to docs

* fix

* Added `zoomTapEnabled` for `MapView`

* Added redrawCallout

* Fixes after rborn's review
2019-03-15 22:28:33 +00:00
Declan 2adc143788 Fix deprecated UIManager usage when accessing component names (#2740)
* Fix deprecated UIManager usage when accessing component names

* Add RN version check for AIRMapLite variable

* Fix eslint errors
2019-03-15 08:43:15 +00:00
Adam Rosendorff 13405437ad Google Maps TMS URL tile support (#2732)
* Implement ability to flip y coordinate for Google Map tiles.

* Update README to detail method of inverting tile y coordinates.

* Update MapUrlTile to include flipY prop.

* Implement using flipped y tiles on Apple Maps.
2019-03-13 07:59:43 -07:00
Vladimir Timofeev fee03d41d9 Fix warning in RN >= 0.58 (#2671)
fixes #2620 YellowBox warning on react-native 0.58.0-rc.1
2019-02-04 16:54:10 +01:00
Christopher Dro 2df0c70531 [MapMarker] Use resolveAssetSource method from Image (#2651) 2019-01-09 18:00:59 -08:00
Victor 70eeb2d114 Expose GoogleMaps iOS SDK icon property to improve Marker rendering performance (#2650)
* Added icon property - https://github.com/react-native-community/react-native-maps/pull/1491

* fixed MapMarker.js indentation

* Added support for Marker icon property on android

* Added support for Marker icon property on android
2019-01-08 14:56:25 -08:00
Gary c0e70c8f3f fix import error on compilation (#2576) 2019-01-07 14:05:05 -08:00
origins-hongyi 5a718a2e2f Adding tileSize props for iOS. (#2627)
* Adding tileSize props for iOS.

* Fixing error for travic CI
2019-01-07 14:03:13 -08:00
Radovan Šmitala ccd48792b7 Calculate bounding box from region (#2615)
* Add helper method for getting bounding box from region

* Awaiting promise in async method, add typescript definition

* Fix eslint
2018-12-07 13:40:41 +01:00
Michael Elsdörfer 2dc1953048 Provide a camera system (#2563)
* Add initialCamera and camera props.

* Support camera and initialCamera properties on Android.

* Declare camera and initialCamera properties in JS.

* Add animateCamera, setCamera, getCamera on iOS/Mapkit.

Deprecate the old animateTo* methods and warn on use.

* Add an example for camera control.

* Add animateCamera, setCamera, getCamera  on iOS/GMaps.

* Support setCamera, animateCamera, getCamera in Android.

* Fix eslint errors.

* Update documentation.

* Remove use of deprecated methods from examples.

* Fix crash in animateCamera() if duration not given.

* Add new methods and props to TypeScript typings.

* Fix bug in Android method map setup.
2018-11-23 15:51:11 +01:00
Radovan Šmitala df9f735908 Get visible map bounding box (#2571)
* Get visible map bounding box

* Fix CI and add docs

* Fix empty space

* Fix hashmap for Android getMapBoundaries

* Separate iOS getMapBoundaries between View and Manager

* Add android support

* Fix preview design

* Revert mapview.md to original format

* Example bubble fix

* Remove accidentaly imported some react modules in AirMapManager.java
2018-11-22 18:24:05 +01:00
Alexander Veligurov e0c61eddeb Merge pull request #2448 from luciferes/master
Add custom indoor picker level
2018-09-22 13:29:30 -03:00
Alexander Veligurov 39c994fdea Merge pull request #2479 from marcelkalveram/master
add edgePadding to fitToSuppliedMarkers function
2018-09-22 13:28:05 -03:00
Daniel Cohen Gindi 78a36ac372 Performance improvements for tracksViewChanges (#2487)
* Avoid unnecessary redraws and bitmap allocations

* Avoid drawing empty background of ViewAttacherGroup

* Moved some ViewAttacherGroup initialization to constructor

* Some documentation

* Added missing `setTracksViewChanges` (to allow disabling tracksViewChanges)

* Added new `redraw` method on MapMarker to cause a redraw of custom marker

* Let it render one more time when toggling tracksViewChanges to false
2018-09-21 09:49:49 +02:00
Marcel Kalveram c928c717af add edgePadding to fitToSuppliedMarkers function 2018-09-08 19:37:29 +02:00
ITONE\bussakorn.wonghom 0d757394c1 fix intendations 2018-08-22 16:21:56 +07:00
ITONE\bussakorn.wonghom 770b4b60c4 fix indent 2018-08-22 16:15:22 +07:00
ITONE\bussakorn.wonghom 6fd2483cb2 Add indoor events support for Android/iOS 2018-08-22 15:46:01 +07:00
Dan Tamas c3b380272b Revert "Added MBTiles support for iOS and Android (#2208)" (#2387)
This reverts commit 2d760e19b1.
2018-07-19 14:27:56 +02:00
Christoph 2d760e19b1 Added MBTiles support for iOS and Android (#2208)
* Added MBTiles support for iOS and Android

* Added changes regarding the comments of @h3ll0w0rld123 from here: https://github.com/react-community/react-native-maps/pull/2208#discussion_r182597094

* Added whitespaces

* Hotfix: Imported exceptions. Changed database.close()

* Hotfix: Removed the finally statemend. Resulted in always returning null

* Removed repetition of returns. Moved everything into finally statement instead

* Throwing exceptions

* Added MapView.MbTile to Readme.

Inclduded the component in the Readme

* Added example file

* Included more information in Readme

* Edited example file accodring to linter errors in Pull Request

* Edited index.d.ts according to merge conflicts in Pull Request. Had to change a few lines

* Edited example file according to linter errors in merge request

* Edited example file according to linter errors in merge request. I am starting not to like Travis...

* Edited example file according to linter errors in merge request. I am starting not to like Travis...
2018-07-19 11:32:36 +02:00
Guilherme Eduardo Gulinoski Teixeira 72b0f77e31 Added animateToNavigation method to MapView (#2049)
* added animateToNavigation method to MapView

* Added AnimatedNavigation example

* Updated Fork

* Deleted IDE files and Unnecessary .class files
2018-06-26 11:42:08 +02:00
Daniel Cohen Gindi 6b06ac943f Added paddingAdjustmentBehavior for Google Maps on iOS (#2149) 2018-05-09 09:14:40 -07:00
Alexander Veligurov 16d373f574 Merge pull request #2217 from luggit/fix-color-prop-types
Fix color prop types
2018-05-01 08:51:51 -03:00
KUBO 294ccea7fc Add comment about NSLocationWhenInUseUsageDescription (#2219) 2018-05-01 12:36:26 +02:00