52 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
Frieder Bluemle 00552eaa37 Upgrade Example to react-native to 0.59.3 (#2792) 2019-04-05 13:27:14 +02: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 6fd2483cb2 Add indoor events support for Android/iOS 2018-08-22 15:46:01 +07: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
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
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 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 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
gilbox 571fbb53cc [android] Create example for marker not updating bug 2017-02-01 11:54:17 -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
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
Ali Al Amine db42a97dbe [android] Add customMapStyle prop support to MapView for android (#808) 2016-11-21 11:15:10 -08:00
Nick Italiano 8e78aa3923 iOS google maps custom tile support (#770) 2016-11-10 16:08:48 -08:00
Gil Birman 71151c16c3 [ios][google] implement fitToSuppliedMarkers and fitToCoordinates (#750) 2016-10-31 13:56:00 -07:00
Nick Italiano 09b233001f Added ios google maps circle support 2016-10-24 18:20:41 -07:00
Nick Italiano 16f362b64e Added ios google maps polygon, polyline, maptype support 2016-10-24 14:51:13 -07:00
Matt Lanter 2828d2e099 Add an example 2016-10-13 01:40:53 -07:00
Gil Birman d556597de5 [google] refactor AIRGoogleMapMarker to use DummyView (#649)
- DummyView is used to create virtual tree
- Add CustomMarkers example
- Prevent annoying errors from showing up with OS_ACTIVITY_MODE disable, see here https://github.com/facebook/react-native/issues/9921#issuecomment-250078139
2016-10-05 12:55:44 -07:00
Naoufal Kadhom a1991034a8 Add example 2016-09-22 19:45:07 -04:00
Spike Brehm dc33d7b223 Fix list of examples on Android
In #548, we added Google Maps support for iOS. We changed the example
app to list examples based on whether they support Google Maps on iOS.
The logic was such that on Android it only showed the examples that are
iOS + Google Map compatible, however on Android this condition is
irrelevant, this commit changes it to show all examples on Android,
regardless.
2016-09-22 10:34:53 -07:00
Gil Birman f78c0ee674 Support Google Maps on iOS (#548) 2016-09-22 10:03:08 -07:00
cascadian 2855d8a6f2 changed url template to use {x} {y} {z} pattern replacement 2016-09-20 11:48:01 -07:00
Daniele Rossetti c8ea624e4a Adding support for Android lite mode 2016-09-17 16:01:46 +01:00
Spike Brehm b1ebd3aaa7 Merge pull request #515 from lelandrichardson/more-eslint
Fix all remaining ESLint violations
2016-08-31 14:55:35 -07:00
Spike Brehm 7b6c4cdf75 Make ScrollView in example/App.js full-width
The example app had bad UX because you could only scroll in the middle
of the screen. Make the `<ScrollView />` use `StyleSheet.absoluteFill`
to make it full-width.
2016-08-31 14:17:39 -07:00
Spike Brehm 456e91c985 [ESLint] Use ES6 import style 2016-08-31 13:10:06 -07:00
Spike Brehm dcde97d5e9 [ESLint] Refactor React.createClass() to use ES6 classes 2016-08-31 13:10:03 -07:00
Spike Brehm fef1a637b6 [ESLint] Apply eslint --fix 2016-08-30 19:59:39 -07:00
Spike Brehm ea313387f0 Merge pull request #500 from stereodenis/patch-1
StyleSheet.absoluteFillObject
2016-08-30 13:52:53 -07:00
Spike Brehm ae713af39f Autofix linting errors using eslint --fix 2016-08-25 13:15:05 -07:00
Denis 9be72f1076 StyleSheet.absoluteFillObject 2016-08-25 23:14:49 +03:00
Aiden Montgomery 980628cdff Fit to supplied markers (#386)
* Added support for zooming the map to specific markers

* Moved list creation outside of a loop in Android. Updated documentation for fitToSuppliedMarkers

* Tidied up the fitToSuppliedMarkers example

* Updated Android gif in the readme
2016-07-22 07:03:18 -07:00
Ivan Foong f11edb43f6 Added ability for caching map as static image for performance reason, also added loading indicator to be display when map is being cache.
New props; `cachedEnabled`, `loadingEnabled`, `loadingBackgroundColor`, `loadingIndicatorColor`

Big thanks to @jrichardlai for his contribution and guiding me on this commit.
2016-06-14 11:31:52 +08:00
Jakub 3090821bdd Taking snapshots of map for ios (#203)
* Taking snapshots of map for ios

* Changed centerPoint parameter to region in takeSnapshot method
2016-05-27 16:02:01 -07:00
Jean-Richard Lai 61f43a1ce2 On pan drag (#159)
* Add onPanDrag event

* Edit PolygonCreator example with onPanDrag

* Add PolylineCreator example

* Only handle onPanDrag when requested

* Only listen to panDrag when handlePanDrag is set

* Merge branch 'master' into on-pan-drag
2016-05-23 23:02:34 -07:00
James Gibbons c86db86ae2 converted to RN 0.24+ 2016-04-21 23:52:35 -04:00
Christopher Dro 4318f8df7f [Android] Update Airmaps Explorer to latest RN settings.
Fix related to https://github.com/facebook/react-native/issues/5963
2016-03-02 12:20:41 -08:00
Leland Richardson 0b8ec5c8ea Added dashed line support for iOS 2016-01-24 11:51:01 -08:00
Leland Richardson fa74cfd549 Fix showCallout bug for pin views on ios 2016-01-23 14:53:16 -08:00
Leland Richardson 7d080eaa5f Draggable Markers 2016-01-23 13:27:02 -08:00
Leland Richardson 62acbda269 Animated Marker Position 2016-01-18 11:04:22 -08:00