66 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
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
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 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
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
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
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
KUBO 294ccea7fc Add comment about NSLocationWhenInUseUsageDescription (#2219) 2018-05-01 12:36:26 +02:00
JulienR2 624ba2acce add Android support for onPoiClick (#2050)
* add Android support for onPoiClick

* add example of onPoiClick event handling

* lint

* typo

* add support for GM on IOS

* Update docs since onPoiClick is now available on Android and IOS.
2018-03-10 14:15:30 +01:00
wasedaigo 5f7bb26d28 Fix for pointForCoordinate and coordinateForPoint (#2039)
* Fix for pointForCoordinate and coordinateForPoint

* reject when an invalid OS was passed
2018-03-08 13:04:21 +01:00
David f5cf88fd61 change onMyLocationChange to onUserLocationChange 2018-03-04 19:49:47 +01:00
David Escalera bc6d51513f Merge branch 'master' into master 2018-03-04 19:46:34 +01:00
Rafael Lincoln d22f96f911 Add suport for KML file (Only Markers) (#2011)
* Android - Add support to kml file

* IOS - Support for kml file GoogleMaps

* Android - Support to kml file

* Android - Add support to kml file

* Update Doc

* Add Google-Maps-iOS-Utils to pod

* Fix lint error

* Fix param to old values

* Verify kml container

* Render custom marker by styleid

* Add event onKmlReady

* Add event onKmlReady and update docs

* IOS - KML support to local file

* Fix crash KML Marker Android
2018-02-23 14:41:28 +01:00
David f7d45472e2 adding onMyLocationChange event 2018-02-18 13:21:10 +01:00
Daniel Playfair Cal adbb4e4d50 Add comment suggesting to deprecate other components being set as properties on MapView 2018-01-22 09:59:08 +11:00
Daniel Playfair Cal 9f3c5f6e8b Switch to using es6 exports 2018-01-21 18:57:00 +11:00
Daniel Cohen Gindi 9cb22b9dd8 New methods to convert between LatLng and Point (#1851)
* New methods to convert between LatLng and Point

* Clarification for `pointForCoordinate` and `coordinateForPoint`
2018-01-10 12:04:56 +01:00
Alexander Veligurov 4c613242c5 Merge Ground Overlay Support (PR-1586) (#1918) 2017-12-29 12:22:47 +01:00
Tim O. Peters 7a394982f0 Manage Zoom Controls visibility on the map (#1906)
* Manage Zoom Controls visibility on the map

* Manage Zoom Controls visibility on the map

* Manage Zoom Controls visibility on the map

* Manage Zoom Controls visibility on the map

* Manage Zoom Controls visibility on the map

* Manage Zoom Controls visibility on the map

* Manage Zoom Controls visibility on the map

* Manage Zoom Controls not available on iOS SDK
2017-12-21 16:10:34 +01:00
A.T 19c30b2ef0 fixed region/initialRegion null overrides of this.props (#1715)
* fixed region/initialRegion null overrides of this.props

* Update MapView.js
2017-12-14 08:07:48 -08:00
Peter Zavadsky 0d111ac879 Added Local Tile functionality for Android
Added android native AirMapLocalTile and its respective
react component similar to UrlTile.
Local tile can load localy stored tiles as overlay similarly
as UrlTile.
2017-12-07 14:14:51 +01:00
Andre Shonubi d23dd6131c Add support to set map boundaries (#1587)
* Add setMapBoundaries method iOS

* Add setMapBoundaries method android

* Add setMapBoundaries method to MapView component

* Update MapView docs

* Add note to setMapBoundaries method
2017-11-28 12:38:25 -08:00
Peter Juras bf40f069f1 Add mapPadding property (#1750)
* Add mapPadding property

* Fix trailing whitespace in MapView comments
2017-11-28 12:36:04 -08:00