101 Commits
Author SHA1 Message Date
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
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
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
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
DillionMango 12614e13af fix func 'randomColor' in DefaultMarkers.js (#2799) 2019-04-08 11:22:54 +02: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
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
ITONE\bussakorn.wonghom 3c48209322 fix indentations 2018-08-22 16:27:20 +07: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
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
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
Taro Matsuzawa aka. btm 42ff69aa26 Support Map.Overlay for iOS (#2022)
* Support Map.Overlay for iOS

* change using image in example

* add overlay support to Google Maps API for iOS

* documented limitation in Overlay for iOS

* fix MKMapRectMake params from 'bottom to top' to 'top to bottom'

* remove limitation
2018-02-20 17:10:35 +01:00
David f7d45472e2 adding onMyLocationChange event 2018-02-18 13:21:10 +01:00
Alexander Veligurov 5b9ef6d6e4 Merge pull request #1996 from smellman/mapoverlay-android-fix
Fix Map.Overlay for android
2018-01-27 21:11:46 -03:00
Taro Matsuzawa 48d3f09e87 Merge branch 'master' of github.com:airbnb/react-native-maps into mapoverlay-android-fix 2018-01-27 17:22:34 +09:00
Taro Matsuzawa 31ff2711c4 Refactoring Map.Overlay for android
- fix LatLngBounds order
- LatLngBounds use Double instead of String
- enable to image readable and support URI
- added two examples
2018-01-27 17:12:40 +09:00
Daniel Playfair Cal a1f5f8e044 Merge remote-tracking branch 'upstream/master' into es6-exports 2018-01-26 12:20:14 +11:00
BEGEMOT9I 8363c7c011 Add native animation for Markers on Android (with documentation) (#1976)
* added functionality for smooth marker movement on android

* added docs for new functionality

* edited example of marker animation

* fixed formatting

* removed package-lock
2018-01-22 16:55:14 +01:00
Daniel Playfair Cal c44b80de2b Events example: Call event.persist() where appropriate to avoid synthetic events being recycled before setState occurs 2018-01-22 09:56:28 +11:00
Daniel Playfair Cal 100c50aa05 Update examples and documentation to use new es6 exports 2018-01-22 09:41:27 +11:00
Daniel Playfair Cal 9f3c5f6e8b Switch to using es6 exports 2018-01-21 18:57:00 +11:00
Hein Rutjes fef05cdec5 Add gradient/multi-color polyline support for iOS (MapKit) (#1911)
* Add multi/gradient polyline support for iOS (MapKit)

* Fixed MapExplorer not building with RN51

* Renamed color/color2 to startColor & endColor for new Polyline renderer

* Fixed gradient line sometimes not visible on certain zoom resolutions
2017-12-23 14:05:13 +01:00
Jaroslav Kubíček c51b0822f5 Fix example with animated markers (#1840)
- AnimatedRegion is property of MapView
- make sure animate method is executed in correct context
2017-12-15 15:39:21 +01:00
Tim O. Peters fe389e5370 Update for Animated.Region #24 Fix on the AnimatedMarkers Example (#1889)
* Update for #24 Fix

Fix for 'Animated.Region undefined constructor' in recent react-native version. 
Solved by using MapView.AnimatedRegion instead of Animated.Region

* Change Animated.Region #24 on AnimatedMarkers Example

Fix for 'Animated.Region undefined constructor' in recent react-native version.
Solved by using MapView.AnimatedRegion instead of Animated.Region
2017-12-15 02:56:48 -08:00
Dan Tamas e0a7218fce Fix podfile, example and setup instructions so the example runs (#1879)
* fix podfile and example setup instructions so the example runs

* update react, reactnative and pods deps

* simplify example setup to use existent scripts

* remove SyntheticEvent - react 16+ seems not to have it exposed anymore

* import PropTypes from  prop-types

* migrate createClass to es6 Component in PanContrioler

* upgrade build.gradle to use react-native:0.51.+
2017-12-14 07:39:58 -08:00
Peter Zavadsky 7822544baa Added LocalTile example 2017-12-07 14:28:52 +01:00
sandinosaso 7006e3afee Adds support to animateToBearing and animateToViewingAngle functions on IOS. 2017-08-11 01:28:06 -03:00
Gabriel Peal ee1e7094be Use prop-types and add supprort for RN 0.45 2017-06-27 15:53:58 -07:00
Ryan Kaskel 0c925244cf [iOS - Google Maps] Fix animateToCoordinate and animateToRegion (#1115)
* Add animateToCoordinate to Google Maps on iOS

* Add animate to random coordinate button in example app

* Fix animateToRegion duration for Google Maps on iOS
2017-06-15 09:34:23 -07:00
Guilherme Pontes 535f599c5d [iOS] Added onPress support for Polyline on Google Maps (#1194) 2017-05-19 09:45:48 -07:00
Leland Richardson 4e8326fd29 Merge pull request #814 from airbnb/gil/BugMarkerWontUpdate
[android] Create example for marker not updating bug
2017-03-26 12:58:02 -07:00
Gerardo Pacheco 5c80a5c399 [iOS] Added onPress support for Polygons on Google Maps 2017-02-05 20:08:54 +01:00
gilbox 571fbb53cc [android] Create example for marker not updating bug 2017-02-01 11:54:17 -08:00
Nick Italiano 106cc02b1b Lint 2017-01-15 14:11:46 -08:00
Nick Italiano b03a27473a Added opacity prop to marker 2017-01-15 14:11:46 -08:00
Nick Italiano fa4d9b05f4 Added support to nest overlays in views and react components 2017-01-15 14:11:46 -08:00
Nick Italiano 9384bb62c9 Added setNativeProps support to shape overlays 2017-01-15 14:11:46 -08:00
James Ide d274eb48a9 [RN 0.40] Update iOS header imports and JS SyntheticEvent import for RN 0.40
React Native 0.40 (coming soon) changes the way its iOS headers should be imported. The headers are now under a directory called "React" that is in the compiler's include path, hence the new import style. On the JS side, RN 0.40 now peer-depends on React 15.4.x which moved SyntheticEvent from `react/lib` to deep inside `react-native`, so update that import as well.

Test Plan: Follow the setup instructions (https://github.com/airbnb/react-native-maps/blob/master/docs/examples-setup.md) and run the explorer app (notably verify that it compiles).
2017-01-05 11:46:02 -08:00
Javier Cuevas a6d345d3c9 Fix “Animating with MapViews” example – fixes #763 (#888) 2016-12-27 10:23:34 -08:00
Seph Soliman 7869dfd277 Allow legalLabelInsets to be changed and animated (#873)
* Allow legalLabelInsets to be changed and animated

Updated example to include a button to animate the legal label.

* Docs for legalLabelInsets prop

While structurally identical to EdgePadding, they serve completely
different purposes. Default left empty since it's an OS default (around
{left: 10, bottom: 10})

* Spacing / linting
2016-12-08 13:41:21 -08:00
Seph Soliman 8e7f854e93 Fixes #470. Support legalLabelInsets on Apple Maps (#840)
* Fixes #470 for iOS and Apple Maps

This will add support for `legalLabelInsets` prop on iOS with Apple Maps. Code is adapted from RN core.

* Pluralize updateLegalLabelInset(s) for consistency

* Removed arrow notation

* Added legalLabelInsets example
2016-12-06 11:44:52 -08:00