132 Commits
Author SHA1 Message Date
Michał Kisiel 7b32173fac Fixes NPE while removing already removed marker. (#3032) 2019-09-05 17:05:34 -07:00
Roman Kuzkokov 70270213c6 Add heading to the onUserLocationChange listener (#3045) 2019-08-29 07:18:50 -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
rodolfovilaca ee2e6d6511 Add @ReactModule annotation to help turbomodules processor (#3001) 2019-08-07 09:52:24 -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
Oliver Winter 62bb953c19 Fix build gradle to allow jettifier to run correctly (#2941) 2019-07-04 15:03:16 +02:00
Alter Code bc62d399cb add support for loading base64 encoded image (#2392) 2019-04-18 06:15:52 -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
Dmitriy Nikifrov 233d305651 Update AirMapMarker.java (#2557) 2019-04-13 09:05:02 -07:00
zupao 723db2caba [Android] Marker share icon image (#2741)
* Add a test example to add massive number of markers on map

* Share image for markers to reduce memory usage

Use a shared image icon for markers instead of loading and creating
bitmap for each marker, which uses more memory in case when we have
a lot of markers but only use a limited set of images.
2019-04-11 17:51:47 -07:00
Frieder Bluemle a59ebf7070 Allow setting of play-services version through ext (#2765) 2019-03-26 13:12:18 +00:00
Frieder Bluemle 0a2476ad45 Add appcompat-v7 dependency declaration to lib (#2743) 2019-03-15 15:41:11 +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
Frieder Bluemle fffbdce1af Include gradle-maven-push only when props are set
The gradle-maven-push.gradle script is only needed when publishing
artifacts to a maven repository.
This fixes a build error seen in app projects if the properties are not
set.
2019-03-09 16:30:11 +08:00
Frieder Bluemle d8359648b3 Fix Android dependencies and build errors (#2720)
* Update yarn.lock

* Remove obsolete files and folders

- Delete compiled files
- Remove obsolete Gradle wrapper leftover
- Remove Eclipse project leftover

* Update .gitignore

* Fix Android dependencies and build errors

- Update Gradle wrapper to 4.10.3
- Update Android Gradle plugin to 3.2.1
- Remove unused appcompat-v7 dependency from lib project
2019-03-08 06:51:13 -08:00
Kruy Vanna 4978696d9c Support for lineCap and lineDash pattern (#2417)
* Android: Fix lineCap of Polyline

* Android: add support for lineDashPattern

* update Polyline docs on lineCap property

* Fix docs: update Polyline docs on lineCap property

* update docs

* remove Log

* remove log
2019-03-08 06:50:59 -08:00
Christoph Jerolimov 2c68e5147b Enable RN projects to define the Android AppCompat Library version 2019-02-20 15:11:44 +01:00
Ian McEachern 122d4d3f56 Implement 'tappable' prop on polyline for Android (#2682)
* used tappable functionality from polygon for polyline

* update docs to reflect tappable prop for polygon and polyline
2019-02-03 09:32:04 +01:00
Arnab Sen e2e0c86467 Update repo paths (#2675)
Replace airbnb with react-native-community
2019-01-25 15:39:37 +01:00
Oliver Dolgener 51ff72393b [0.23.0] Release (#2666)
* add changelog

* change version to 0.23.0
2019-01-17 01:00:25 -08:00
Vincent Vella ead2bca6d9 Defaults to the map services version instead of play services (#2653)
As of now the googlePlayServicesMapsVersion variable defaults to "DEFAULT_GOOGLE_PLAY_SERVICES_VERSION" which is an unpublished version of maps - 16. 0.1, it needs to default to "DEFAULT_GOOGLE_PLAY_SERVICES_MAPS_VERSION" instead which is 16.0.0
2019-01-16 17:52:52 +01: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
Thibault Malbranche 2e785e9a76 Allow Specifying a different version for base and maps on android (#2587)
* Fix Google map podspec

For use in cocoapods only projects

* Update react-native-google-maps.podspec

* Update build.gradle

* Update build.gradle

* Update build.gradle

* Update build.gradle
2019-01-08 14:19:11 +01:00
Bussakorn Wonghom e84b35c46b [Android] Fix app crash in Android if building found but cannot getActiveLevelIndex (#2598)
## check building is not null
## check activeLevelIndex is in array's bound
2018-11-23 15:51:38 +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
Fedir Ushakov c7a55f5e2b [0.22.1] Release (#2574)
* prepare for release 0.22.1

* add latest commit
2018-11-08 09:58:57 -08:00
Salah Ghanim b870c0bcf1 r2507: remove marker: Attempt to invoke virtual method 'void com.google.android.gms.maps.model.setIcon(com.google.android.gms.maps.model.BitmapDescription)' on a null object reference #: remove marker: Attempt to invoke virtual method 'void com.google.android.gms.maps.model.setIcon(com.google.android.gms.maps.model.BitmapDescription)' on a null object reference (#2555)
* null check is enough
2018-10-22 15:00:58 +02:00
Alexander Veligurov fc3cf88145 Merge pull request #2545 from shanereid/feature/already-has-parent-fix
Fix for “The specified child already has a parent”
2018-10-12 11:13:40 -03:00
Todor1 0e38786ef7 [0.22.0] Release (#2535)
* CHANGELOG wip

* CHANGELOG wip2

* CHANGELOG wip3

* bump version

* bump versions in Podfile.lock and gradle.properties

* Update CHANGELOG.md

* Update CHANGELOG.md
2018-10-11 08:46:15 -07:00
Shane Reid eb295df200 Fix for “The specified child already has a parent” 2018-10-11 11:13:46 +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
Alexander Veligurov 710dca49a5 hotfix PR #2478 2018-09-11 16:00:22 -03:00
Alexander Veligurov e3cc67afdd Merge pull request #2477 from danielgindi/feature/tracksViewChanges
Implemented `tracksViewChanges` for Android
2018-09-09 13:29:36 -03:00
Alexander Veligurov 9ae75a7321 Merge pull request #2478 from danielgindi/feature/onVisibilityChanged
Let onVisibilityChanged() be called on children (mainly fixes Image issues)
2018-09-09 13:29:21 -03:00
Daniel Cohen Gindi 5f0e1143b8 Let onVisibilityChanged() be called on children (mainly fixes Image issues) 2018-09-09 12:21:33 +03:00
Daniel Cohen Gindi a1551f7f09 Implemented tracksViewChanges for Android
This will help avoid unstable rendering of markers,
 and even support some level of animation. (like in iOS)
2018-09-08 21:28:03 +03:00
Daniel Cohen Gindi f662a1375d Consider pixel density in coordinate<->point conversion (Android) 2018-09-08 21:21:18 +03:00
Marcel Kalveram c928c717af add edgePadding to fitToSuppliedMarkers function 2018-09-08 19:37:29 +02:00
Vlad Vityaz 680debed50 minSDK in manifest errors the compilation. Fixed (#2472)
* Fixed compiling with minSDK in manifest file error

When upgrading to newer gradle wrapper package versions that works with buildtools version 28+, error comes up if uses-sdk tag has "minSDK" property defined inside AndroidMainfest.xml file. Default SDK properties should stand only inside build.gradle files.

* Rename mainAndroidManifest.xml to AndroidManifest.xml

* Rename lib/android/src/AndroidManifest.xml to lib/android/src/main/AndroidManifest.xml
2018-09-07 09:18:16 +02:00
ITONE\bussakorn.wonghom 5a01ef9d49 fix android build failed 2018-08-22 18:16:11 +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
Basit Ali a1254889cd Fix disabling the toolbar and my location button (#2317) 2018-07-18 16:56:21 +02:00
Kruy Vanna b9ec81b2fb Android: Fix lineCap of Polyline (#2375)
* Android: Fix lineCap of Polyline

* update Polyline docs on lineCap property

* Fix docs: update Polyline docs on lineCap property
2018-07-18 12:59:39 +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