├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .npmignore ├── .watchmanconfig ├── MapView.js ├── README.md ├── RNHereMapsIos.podspec ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── libs │ │ ├── HERE-sdk-javadoc.jar │ │ ├── HERE-sdk.aar │ │ └── docs │ │ │ └── mapsdoc │ │ │ ├── FiraGO-Bold.eot │ │ │ ├── FiraGO-Bold.ttf │ │ │ ├── FiraGO-Bold.woff │ │ │ ├── FiraGO-Bold.woff2 │ │ │ ├── FiraGO-Book.eot │ │ │ ├── FiraGO-Book.ttf │ │ │ ├── FiraGO-Book.woff │ │ │ ├── FiraGO-Book.woff2 │ │ │ ├── FiraGO-BookItalic.eot │ │ │ ├── FiraGO-BookItalic.ttf │ │ │ ├── FiraGO-BookItalic.woff │ │ │ ├── FiraGO-BookItalic.woff2 │ │ │ ├── FiraGO-Regular.eot │ │ │ ├── FiraGO-Regular.ttf │ │ │ ├── FiraGO-Regular.woff │ │ │ ├── FiraGO-Regular.woff2 │ │ │ ├── FiraGO.LICENSE │ │ │ ├── FiraMono-Bold.eot │ │ │ ├── FiraMono-Bold.woff │ │ │ ├── FiraMono-Bold.woff2 │ │ │ ├── FiraMono-Medium.eot │ │ │ ├── FiraMono-Medium.woff │ │ │ ├── FiraMono-Medium.woff2 │ │ │ ├── FiraMono-Regular.eot │ │ │ ├── FiraMono-Regular.ttf │ │ │ ├── FiraMono-Regular.woff │ │ │ ├── FiraMono-Regular.woff2 │ │ │ ├── FiraMono.LICENSE │ │ │ ├── allclasses-frame.html │ │ │ ├── allclasses-noframe.html │ │ │ ├── com │ │ │ └── here │ │ │ │ └── android │ │ │ │ └── mpa │ │ │ │ ├── common │ │ │ │ ├── CopyrightLogoPosition.html │ │ │ │ ├── GeoBoundingBox.html │ │ │ │ ├── GeoCoordinate.html │ │ │ │ ├── GeoPolygon.html │ │ │ │ ├── GeoPolyline.html │ │ │ │ ├── GeoPosition.html │ │ │ │ ├── Image.Type.html │ │ │ │ ├── Image.html │ │ │ │ ├── MapEngine.html │ │ │ │ ├── OnEngineInitListener.Error.html │ │ │ │ ├── OnEngineInitListener.html │ │ │ │ ├── PositioningManager.LocationMethod.html │ │ │ │ ├── PositioningManager.LocationStatus.html │ │ │ │ ├── PositioningManager.OnPositionChangedListener.html │ │ │ │ ├── PositioningManager.html │ │ │ │ ├── RoadElement.Attribute.html │ │ │ │ ├── RoadElement.FormOfWay.html │ │ │ │ ├── RoadElement.PluralType.html │ │ │ │ ├── RoadElement.html │ │ │ │ ├── ViewObject.Type.html │ │ │ │ ├── ViewObject.html │ │ │ │ ├── ViewRect.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ │ ├── mapping │ │ │ │ ├── Map.Animation.html │ │ │ │ ├── Map.InfoBubbleAdapter.html │ │ │ │ ├── Map.OnSchemeChangedListener.html │ │ │ │ ├── Map.OnTransformListener.html │ │ │ │ ├── Map.PixelResult.Error.html │ │ │ │ ├── Map.PixelResult.html │ │ │ │ ├── Map.Scheme.html │ │ │ │ ├── Map.html │ │ │ │ ├── MapCircle.html │ │ │ │ ├── MapContainer.html │ │ │ │ ├── MapFragment.html │ │ │ │ ├── MapGesture.OnGestureListener.OnGestureListenerAdapter.html │ │ │ │ ├── MapGesture.OnGestureListener.html │ │ │ │ ├── MapGesture.html │ │ │ │ ├── MapMarker.OnDragListener.html │ │ │ │ ├── MapMarker.html │ │ │ │ ├── MapObject.Type.html │ │ │ │ ├── MapObject.html │ │ │ │ ├── MapPolygon.html │ │ │ │ ├── MapPolyline.html │ │ │ │ ├── MapRasterTileSource.MapTileSystemHelper.html │ │ │ │ ├── MapRasterTileSource.TileResult.Error.html │ │ │ │ ├── MapRasterTileSource.TileResult.html │ │ │ │ ├── MapRasterTileSource.html │ │ │ │ ├── MapRoute.RenderType.html │ │ │ │ ├── MapRoute.html │ │ │ │ ├── MapState.html │ │ │ │ ├── MapView.TileSize.html │ │ │ │ ├── MapView.html │ │ │ │ ├── OnMapRenderListener.OnMapRenderListenerAdapter.html │ │ │ │ ├── OnMapRenderListener.html │ │ │ │ ├── PositionIndicator.html │ │ │ │ ├── UrlMapRasterTileSourceBase.html │ │ │ │ ├── class-use │ │ │ │ │ ├── Map.Animation.html │ │ │ │ │ ├── Map.InfoBubbleAdapter.html │ │ │ │ │ ├── Map.OnSchemeChangedListener.html │ │ │ │ │ ├── Map.OnTransformListener.html │ │ │ │ │ ├── Map.PixelResult.Error.html │ │ │ │ │ ├── Map.PixelResult.html │ │ │ │ │ ├── Map.Scheme.html │ │ │ │ │ ├── Map.html │ │ │ │ │ ├── MapCircle.html │ │ │ │ │ ├── MapContainer.html │ │ │ │ │ ├── MapFragment.html │ │ │ │ │ ├── MapGesture.OnGestureListener.OnGestureListenerAdapter.html │ │ │ │ │ ├── MapGesture.OnGestureListener.html │ │ │ │ │ ├── MapGesture.html │ │ │ │ │ ├── MapMarker.OnDragListener.html │ │ │ │ │ ├── MapMarker.html │ │ │ │ │ ├── MapObject.Type.html │ │ │ │ │ ├── MapObject.html │ │ │ │ │ ├── MapPolygon.html │ │ │ │ │ ├── MapPolyline.html │ │ │ │ │ ├── MapRasterTileSource.MapTileSystemHelper.html │ │ │ │ │ ├── MapRasterTileSource.TileResult.Error.html │ │ │ │ │ ├── MapRasterTileSource.TileResult.html │ │ │ │ │ ├── MapRasterTileSource.html │ │ │ │ │ ├── MapRoute.RenderType.html │ │ │ │ │ ├── MapRoute.html │ │ │ │ │ ├── MapState.html │ │ │ │ │ ├── MapView.TileSize.html │ │ │ │ │ ├── MapView.html │ │ │ │ │ ├── OnMapRenderListener.OnMapRenderListenerAdapter.html │ │ │ │ │ ├── OnMapRenderListener.html │ │ │ │ │ ├── PositionIndicator.html │ │ │ │ │ └── UrlMapRasterTileSourceBase.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ ├── package-tree.html │ │ │ │ └── package-use.html │ │ │ │ ├── routing │ │ │ │ ├── Maneuver.Action.html │ │ │ │ ├── Maneuver.Icon.html │ │ │ │ ├── Maneuver.TrafficDirection.html │ │ │ │ ├── Maneuver.Turn.html │ │ │ │ ├── Maneuver.html │ │ │ │ ├── Route.TrafficPenaltyMode.html │ │ │ │ ├── Route.html │ │ │ │ ├── RouteElement.Type.html │ │ │ │ ├── RouteElement.html │ │ │ │ ├── RouteElements.html │ │ │ │ ├── RouteManager.Error.html │ │ │ │ ├── RouteManager.Listener.html │ │ │ │ ├── RouteManager.html │ │ │ │ ├── RouteOptions.TimeType.html │ │ │ │ ├── RouteOptions.TransportMode.html │ │ │ │ ├── RouteOptions.Type.html │ │ │ │ ├── RouteOptions.html │ │ │ │ ├── RoutePlan.html │ │ │ │ ├── RouteResult.ViolatedOption.html │ │ │ │ ├── RouteResult.html │ │ │ │ ├── RouteTta.Detail.html │ │ │ │ ├── RouteTta.html │ │ │ │ ├── Signpost.html │ │ │ │ ├── class-use │ │ │ │ │ ├── Maneuver.Action.html │ │ │ │ │ ├── Maneuver.Icon.html │ │ │ │ │ ├── Maneuver.TrafficDirection.html │ │ │ │ │ ├── Maneuver.Turn.html │ │ │ │ │ ├── Maneuver.html │ │ │ │ │ ├── Route.TrafficPenaltyMode.html │ │ │ │ │ ├── Route.html │ │ │ │ │ ├── RouteElement.Type.html │ │ │ │ │ ├── RouteElement.html │ │ │ │ │ ├── RouteElements.html │ │ │ │ │ ├── RouteManager.Error.html │ │ │ │ │ ├── RouteManager.Listener.html │ │ │ │ │ ├── RouteManager.html │ │ │ │ │ ├── RouteOptions.TimeType.html │ │ │ │ │ ├── RouteOptions.TransportMode.html │ │ │ │ │ ├── RouteOptions.Type.html │ │ │ │ │ ├── RouteOptions.html │ │ │ │ │ ├── RoutePlan.html │ │ │ │ │ ├── RouteResult.ViolatedOption.html │ │ │ │ │ ├── RouteResult.html │ │ │ │ │ ├── RouteTta.Detail.html │ │ │ │ │ ├── RouteTta.html │ │ │ │ │ └── Signpost.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ ├── package-tree.html │ │ │ │ └── package-use.html │ │ │ │ └── search │ │ │ │ ├── Address.html │ │ │ │ ├── AutoSuggest.Type.html │ │ │ │ ├── AutoSuggest.html │ │ │ │ ├── AutoSuggestPlace.html │ │ │ │ ├── AutoSuggestQuery.html │ │ │ │ ├── AutoSuggestSearch.html │ │ │ │ ├── Category.Global.html │ │ │ │ ├── Category.html │ │ │ │ ├── CategoryFilter.html │ │ │ │ ├── ContactDetail.html │ │ │ │ ├── CreateLink.html │ │ │ │ ├── DiscoveryLink.html │ │ │ │ ├── DiscoveryRequest.html │ │ │ │ ├── DiscoveryResult.ResultType.html │ │ │ │ ├── DiscoveryResult.html │ │ │ │ ├── DiscoveryResultPage.html │ │ │ │ ├── EditorialMedia.html │ │ │ │ ├── ErrorCode.html │ │ │ │ ├── ExploreRequest.html │ │ │ │ ├── ExtendedAttribute.html │ │ │ │ ├── GeocodeRequest.html │ │ │ │ ├── GeocodeRequest2.html │ │ │ │ ├── GeocodeResult.html │ │ │ │ ├── HereRequest.html │ │ │ │ ├── ImageMedia.html │ │ │ │ ├── Link.html │ │ │ │ ├── Location.html │ │ │ │ ├── Media.Type.html │ │ │ │ ├── Media.html │ │ │ │ ├── MediaCollectionPage.html │ │ │ │ ├── MediaCollectionPageRequest.html │ │ │ │ ├── Place.html │ │ │ │ ├── PlaceLink.html │ │ │ │ ├── PlaceRequest.html │ │ │ │ ├── RatingMedia.html │ │ │ │ ├── Ratings.html │ │ │ │ ├── ReportingLink.html │ │ │ │ ├── Request.html │ │ │ │ ├── ResultListener.html │ │ │ │ ├── ReverseGeocodeRequest.html │ │ │ │ ├── ReviewMedia.html │ │ │ │ ├── RichTextFormatting.html │ │ │ │ ├── SearchRequest.html │ │ │ │ ├── SupplierLink.html │ │ │ │ ├── TextAutoSuggestionRequest.AutoSuggestFilterType.html │ │ │ │ ├── TextAutoSuggestionRequest.html │ │ │ │ ├── UserLink.html │ │ │ │ ├── ViaLink.html │ │ │ │ ├── class-use │ │ │ │ ├── Address.html │ │ │ │ ├── AutoSuggest.Type.html │ │ │ │ ├── AutoSuggest.html │ │ │ │ ├── AutoSuggestPlace.html │ │ │ │ ├── AutoSuggestQuery.html │ │ │ │ ├── AutoSuggestSearch.html │ │ │ │ ├── Category.Global.html │ │ │ │ ├── Category.html │ │ │ │ ├── CategoryFilter.html │ │ │ │ ├── ContactDetail.html │ │ │ │ ├── CreateLink.html │ │ │ │ ├── DiscoveryLink.html │ │ │ │ ├── DiscoveryRequest.html │ │ │ │ ├── DiscoveryResult.ResultType.html │ │ │ │ ├── DiscoveryResult.html │ │ │ │ ├── DiscoveryResultPage.html │ │ │ │ ├── EditorialMedia.html │ │ │ │ ├── ErrorCode.html │ │ │ │ ├── ExploreRequest.html │ │ │ │ ├── ExtendedAttribute.html │ │ │ │ ├── GeocodeRequest.html │ │ │ │ ├── GeocodeRequest2.html │ │ │ │ ├── GeocodeResult.html │ │ │ │ ├── HereRequest.html │ │ │ │ ├── ImageMedia.html │ │ │ │ ├── Link.html │ │ │ │ ├── Location.html │ │ │ │ ├── Media.Type.html │ │ │ │ ├── Media.html │ │ │ │ ├── MediaCollectionPage.html │ │ │ │ ├── MediaCollectionPageRequest.html │ │ │ │ ├── Place.html │ │ │ │ ├── PlaceLink.html │ │ │ │ ├── PlaceRequest.html │ │ │ │ ├── RatingMedia.html │ │ │ │ ├── Ratings.html │ │ │ │ ├── ReportingLink.html │ │ │ │ ├── Request.html │ │ │ │ ├── ResultListener.html │ │ │ │ ├── ReverseGeocodeRequest.html │ │ │ │ ├── ReviewMedia.html │ │ │ │ ├── RichTextFormatting.html │ │ │ │ ├── SearchRequest.html │ │ │ │ ├── SupplierLink.html │ │ │ │ ├── TextAutoSuggestionRequest.AutoSuggestFilterType.html │ │ │ │ ├── TextAutoSuggestionRequest.html │ │ │ │ ├── UserLink.html │ │ │ │ └── ViaLink.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ ├── package-tree.html │ │ │ │ └── package-use.html │ │ │ ├── constant-values.html │ │ │ ├── deprecated-list.html │ │ │ ├── help-doc.html │ │ │ ├── here-logo-2016-dark.png │ │ │ ├── here-logo-2016-neg-solid.png │ │ │ ├── here-logo-2016-white.png │ │ │ ├── here-logo-2016.png │ │ │ ├── here-logo.svg │ │ │ ├── index-files │ │ │ ├── index-1.html │ │ │ ├── index-10.html │ │ │ ├── index-11.html │ │ │ ├── index-12.html │ │ │ ├── index-13.html │ │ │ ├── index-14.html │ │ │ ├── index-15.html │ │ │ ├── index-16.html │ │ │ ├── index-17.html │ │ │ ├── index-18.html │ │ │ ├── index-19.html │ │ │ ├── index-2.html │ │ │ ├── index-20.html │ │ │ ├── index-21.html │ │ │ ├── index-3.html │ │ │ ├── index-4.html │ │ │ ├── index-5.html │ │ │ ├── index-6.html │ │ │ ├── index-7.html │ │ │ ├── index-8.html │ │ │ └── index-9.html │ │ │ ├── index.html │ │ │ ├── overview-frame.html │ │ │ ├── overview-summary.html │ │ │ ├── overview-tree.html │ │ │ ├── package-list │ │ │ ├── script.js │ │ │ └── stylesheet.css │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── heremapsrn │ │ │ ├── HereMapManager.java │ │ │ ├── HereMapModule.java │ │ │ ├── HereMapPackage.java │ │ │ ├── HereMapView.java │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── drawable │ │ ├── location.png │ │ └── marker.png │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── index.android.js ├── index.ios.js ├── ios ├── HRMapView.h ├── HRMapView.m ├── Podfile ├── Podfile.lock ├── RCTViewManager.h ├── RNHereMapsIos.xcodeproj │ └── project.pbxproj ├── RNHereMapsIos.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── RNTMapManager.m └── libPods-RNHereMapsIos.a └── package.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | emoji=true 26 | 27 | module.system=haste 28 | 29 | experimental.strict_type_args=true 30 | 31 | munge_underscores=true 32 | 33 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 34 | 35 | suppress_type=$FlowIssue 36 | suppress_type=$FlowFixMe 37 | suppress_type=$FixMe 38 | 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-8]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 42 | 43 | unsafe.enable_getters_and_setters=true 44 | 45 | [version] 46 | ^0.38.0 47 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # android studio 6 | *.iml 7 | .idea 8 | .gradle 9 | build/ 10 | 11 | # Xcode 12 | # 13 | build/ 14 | *.pbxuser 15 | !default.pbxuser 16 | *.mode1v3 17 | !default.mode1v3 18 | *.mode2v3 19 | !default.mode2v3 20 | *.perspectivev3 21 | !default.perspectivev3 22 | xcuserdata 23 | *.xccheckout 24 | *.moved-aside 25 | DerivedData 26 | *.hmap 27 | *.ipa 28 | *.xcuserstate 29 | project.xcworkspace 30 | 31 | # Android/IJ 32 | # 33 | .idea 34 | .gradle 35 | local.properties 36 | 37 | # node.js 38 | # 39 | node_modules/ 40 | npm-debug.log 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | android/keystores/debug.keystore 46 | pods 47 | .vscode -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 50 | 51 | fastlane/report.xml 52 | fastlane/Preview.html 53 | fastlane/screenshots 54 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /MapView.js: -------------------------------------------------------------------------------- 1 | // MapView.js 2 | 3 | import React from 'react'; 4 | import PropTypes from 'prop-types'; 5 | import { 6 | View, 7 | Button, 8 | Text, 9 | NativeModules, 10 | requireNativeComponent, 11 | findNodeHandle 12 | } from 'react-native'; 13 | 14 | const MAP_TYPES = { 15 | NORMAL: 'normal', 16 | SATELLITE: 'satellite', 17 | }; 18 | 19 | const MapViewComponent = NativeModules.MapView; 20 | const UIManager = NativeModules.UIManager; 21 | 22 | var iface = { 23 | name: 'MapView', 24 | propTypes: { 25 | //...View.propTypes, // include the default view properties 26 | 27 | /** 28 | * style 29 | */ 30 | style: PropTypes.Object, 31 | 32 | /** 33 | * Center of the map : latitude,longitude 34 | */ 35 | center: PropTypes.Object, 36 | 37 | /** 38 | * The map type to be displayed. 39 | * 40 | * - standard: standard road map (default) 41 | * - satellite: satellite view 42 | * - hybrid: satellite view with roads and points of interest overlayed 43 | * - terrain: topographic view 44 | * - none: no base map 45 | */ 46 | mapType: PropTypes.oneOf(Object.values(MAP_TYPES)), 47 | 48 | /** 49 | * initialZoom: initial zoom level for map 50 | */ 51 | initialZoom : PropTypes.number, 52 | 53 | /** 54 | * Marker put on the map for the user location : latitude,longitude 55 | */ 56 | userLocation: PropTypes.Object, 57 | 58 | markersList: PropTypes.array, 59 | }, 60 | }; 61 | 62 | // requireNativeComponent commonly takes two parameters, the first is 63 | // the name of the native view and the second is an object that describes the 64 | // component interface. The component interface should declare a friendly name 65 | // for use in debug messages and must declare the propTypes reflected by the 66 | // Native View. The propTypes are used for checking the validity of a user's 67 | // use of the native view. 68 | // Note that if you need your JavaScript component to do 69 | // more than just specify a name and propTypes, like do custom event handling, 70 | // you can wrap the native component in a normal react component. In that case, 71 | // you want to pass in the wrapper component instead of iface to 72 | // requireNativeComponent. 73 | const HereMapView = requireNativeComponent('HereMapView', iface); 74 | 75 | export default class MapView extends React.Component { 76 | 77 | constructor(props) { 78 | super(props); 79 | 80 | this.state = { 81 | isReady: false, 82 | zoomLevel: 15, 83 | center: this.props.center 84 | }; 85 | 86 | this._onMapReady = this._onMapReady.bind(this); 87 | } 88 | 89 | // componentWillUpdate() is invoked immediately before rendering when 90 | // new props or state are being received. Use this as an opportunity 91 | // to perform preparation before an update occurs. This method is not called 92 | // for the initial render. 93 | componentWillUpdate(nextProps) { 94 | } 95 | 96 | // componentDidMount() is invoked immediately after a component is mounted. 97 | // Initialization that requires DOM nodes should go here. If you need to load 98 | // data from a remote endpoint, this is a good place to instantiate the 99 | // network request. Setting state in this method will trigger a re-rendering. 100 | componentDidMount() { 101 | const { isReady } = this.state; 102 | if (isReady) { 103 | } 104 | } 105 | 106 | render() { 107 | console.log('Center: ', this.props.center); 108 | return ( 109 | 110 | 117 | 118 | 121 | 122 | 123 | ); 124 | } 125 | 126 | _onMapReady() { 127 | this.setState({ isReady: true }); 128 | } 129 | 130 | onZoomInPress = () => { 131 | if ( this.state.zoomLevel < 20 ) { 132 | this.setState({ zoomLevel : this.state.zoomLevel + 1}); 133 | UIManager.dispatchViewManagerCommand( 134 | findNodeHandle(this), 135 | UIManager.HereMapView.Commands.zoomIn, 136 | [this.state.zoomLevel] ); 137 | } 138 | } 139 | 140 | onZoomOutPress = () => { 141 | if (this.state.zoomLevel > 0) { 142 | this.setState({ zoomLevel : this.state.zoomLevel - 1}); 143 | UIManager.dispatchViewManagerCommand( 144 | findNodeHandle(this), 145 | UIManager.HereMapView.Commands.zoomOut, 146 | [ this.state.zoomLevel ] ); 147 | } 148 | } 149 | 150 | onSetCenterPress = () => { 151 | this.setState({ center : this.state.center }); 152 | UIManager.dispatchViewManagerCommand( 153 | findNodeHandle(this), 154 | UIManager.HereMapView.Commands.setCenter, 155 | [ this.state.center ] ); 156 | } 157 | 158 | } 159 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-here-maps 2 | 3 | A native module to use Here Maps with React Native 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | yarn add https://github.com/Weopt/react-native-here-maps/tarball/master 10 | 11 | react-native link 12 | ``` 13 | In AndroidManifest.xml add: 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | In MainApplication.java : 22 | 23 | ``` 24 | import com.heremapsrn.HereMapPackage; 25 | 26 | protected List getPackages() { 27 | return Arrays.asList( 28 | new MainReactPackage(), 29 | new HereMapPackage() // <------ Add this line 30 | ); 31 | } 32 | 33 | ``` 34 | 35 | ## Here Maps license 36 | Go to [HERE website](https://developer.here.com/develop/mobile-sdks) and create your license key. 37 | 38 | 39 | Then, open AndroidManifest.xml and update this section with your license. 40 | 41 | ``` 42 | 43 | 46 | 47 | 50 | 51 | 53 | ``` 54 | -------------------------------------------------------------------------------- /RNHereMapsIos.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "RNHereMapsIos" 3 | s.version = "1.0.0" 4 | s.summary = "RNHereMapsIos" 5 | s.description = <<-DESC 6 | RNHereMapsIos 7 | DESC 8 | s.homepage = "RNHereMapsIos" 9 | s.license = "MIT" 10 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" } 11 | s.author = { "author" => "n.potier@we-opt.com" } 12 | s.platform = :ios, "10.0" 13 | s.source = { :git => "https://github.com/Weopt/react-native-here-maps.git", :tag => "master" } 14 | s.source_files = "ios/**/*.{h,m,swift,a}" 15 | s.requires_arc = true 16 | 17 | s.dependency "React" 18 | s.dependency "HEREMaps", '~> 3.15.2' 19 | end 20 | -------------------------------------------------------------------------------- /__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.heremapsrn', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.heremapsrn', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | //apply plugin: "com.android.application" 2 | apply plugin: 'com.android.library' 3 | 4 | import com.android.build.OutputFile 5 | 6 | /** 7 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 8 | * and bundleReleaseJsAndAssets). 9 | * These basically call `react-native bundle` with the correct arguments during the Android build 10 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 11 | * bundle directly from the development server. Below you can see all the possible configurations 12 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 13 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 14 | * 15 | * project.ext.react = [ 16 | * // the name of the generated asset file containing your JS bundle 17 | * bundleAssetName: "index.android.bundle", 18 | * 19 | * // the entry file for bundle generation 20 | * entryFile: "index.android.js", 21 | * 22 | * // whether to bundle JS and assets in debug mode 23 | * bundleInDebug: false, 24 | * 25 | * // whether to bundle JS and assets in release mode 26 | * bundleInRelease: true, 27 | * 28 | * // whether to bundle JS and assets in another build variant (if configured). 29 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 30 | * // The configuration property can be in the following formats 31 | * // 'bundleIn${productFlavor}${buildType}' 32 | * // 'bundleIn${buildType}' 33 | * // bundleInFreeDebug: true, 34 | * // bundleInPaidRelease: true, 35 | * // bundleInBeta: true, 36 | * 37 | * // the root of your project, i.e. where "package.json" lives 38 | * root: "../../", 39 | * 40 | * // where to put the JS bundle asset in debug mode 41 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 42 | * 43 | * // where to put the JS bundle asset in release mode 44 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 45 | * 46 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 47 | * // require('./image.png')), in debug mode 48 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 49 | * 50 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 51 | * // require('./image.png')), in release mode 52 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 53 | * 54 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 55 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 56 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 57 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 58 | * // for example, you might want to remove it from here. 59 | * inputExcludes: ["android/**", "ios/**"], 60 | * 61 | * // override which node gets called and with what additional arguments 62 | * nodeExecutableAndArgs: ["node"] 63 | * 64 | * // supply additional arguments to the packager 65 | * extraPackagerArgs: [] 66 | * ] 67 | */ 68 | 69 | // apply from: "../../node_modules/react-native/react.gradle" 70 | 71 | /** 72 | * Set this to true to create two separate APKs instead of one: 73 | * - An APK that only works on ARM devices 74 | * - An APK that only works on x86 devices 75 | * The advantage is the size of the APK is reduced by about 4MB. 76 | * Upload all the APKs to the Play Store and people will download 77 | * the correct one based on the CPU architecture of their device. 78 | */ 79 | def enableSeparateBuildPerCPUArchitecture = false 80 | 81 | /** 82 | * Run Proguard to shrink the Java bytecode in release builds. 83 | */ 84 | def enableProguardInReleaseBuilds = false 85 | 86 | repositories { 87 | flatDir { 88 | dirs 'libs' 89 | } 90 | } 91 | 92 | 93 | 94 | android { 95 | compileSdkVersion 23 96 | buildToolsVersion '27.0.3' 97 | 98 | defaultConfig { 99 | // applicationId "com.heremapsrn" 100 | minSdkVersion 16 101 | targetSdkVersion 22 102 | versionCode 1 103 | versionName "1.0" 104 | ndk { 105 | abiFilters "armeabi-v7a", "x86" 106 | } 107 | } 108 | splits { 109 | abi { 110 | reset() 111 | enable enableSeparateBuildPerCPUArchitecture 112 | universalApk false // If true, also generate a universal APK 113 | include "armeabi-v7a", "x86" 114 | } 115 | } 116 | buildTypes { 117 | release { 118 | minifyEnabled enableProguardInReleaseBuilds 119 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 120 | } 121 | } 122 | 123 | packagingOptions { 124 | pickFirst 'lib/armeabi-v7a/libgnustl_shared.so' 125 | } 126 | 127 | // applicationVariants are e.g. debug, release 128 | /* applicationVariants.all { variant -> 129 | variant.outputs.each { output -> 130 | // For each separate APK per architecture, set a unique version code as described here: 131 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 132 | def versionCodes = ["armeabi-v7a":1, "x86":2] 133 | def abi = output.getFilter(OutputFile.ABI) 134 | if (abi != null) { // null for the universal-debug, universal-release variants 135 | output.versionCodeOverride = 136 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 137 | } 138 | } 139 | } */ 140 | 141 | } 142 | 143 | dependencies { 144 | implementation fileTree(dir: 'libs', include: ['*.jar']) 145 | implementation fileTree(dir: 'libs', include: ['*.aar']) 146 | 147 | // implementation(name:'HERE-sdk', ext:'aar') 148 | compile "com.android.support:appcompat-v7:23.0.1" 149 | compile "com.facebook.react:react-native:+" // From node_modules 150 | } 151 | 152 | // Run this once to be able to run the application with BUCK 153 | // puts all compile dependencies into folder libs for BUCK to use 154 | task copyDownloadableDepsToLibs(type: Copy) { 155 | from configurations.compile 156 | into 'libs' 157 | } -------------------------------------------------------------------------------- /android/app/libs/HERE-sdk-javadoc.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/HERE-sdk-javadoc.jar -------------------------------------------------------------------------------- /android/app/libs/HERE-sdk.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/HERE-sdk.aar -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Bold.eot -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Bold.ttf -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Bold.woff -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Bold.woff2 -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Book.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Book.eot -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Book.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Book.ttf -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Book.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Book.woff -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Book.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Book.woff2 -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-BookItalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-BookItalic.eot -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-BookItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-BookItalic.ttf -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-BookItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-BookItalic.woff -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-BookItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-BookItalic.woff2 -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Regular.eot -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Regular.ttf -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Regular.woff -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraGO-Regular.woff2 -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraGO.LICENSE: -------------------------------------------------------------------------------- 1 | Fira Go fonts v0.300 #56fd2c5 2 | ================================================================================ 3 | 4 | Digitized data copyright 2012–2017 for Fira GO, Carrois Corporate GbR and HERE Europe B.V. All rights reserved / Digitized data copyright 2012–2017 for Fira Sans up to version 4.3 The Mozilla Foundation, Telefonica S.A. and Carrois Corporate GbR 5 | 6 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 7 | 8 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 9 | 10 | SIL OPEN FONT LICENSE 11 | 12 | Version 1.1 - 26 February 2007 13 | 14 | PREAMBLE 15 | 16 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 17 | 18 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 19 | 20 | DEFINITIONS 21 | 22 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 23 | 24 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 25 | 26 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 27 | 28 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting — in part or in whole — any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 29 | 30 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 31 | 32 | PERMISSION & CONDITIONS 33 | 34 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 35 | 36 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 37 | 38 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 39 | 40 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 41 | 42 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 43 | 44 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 45 | 46 | TERMINATION 47 | 48 | This license becomes null and void if any of the above conditions are not met. 49 | 50 | DISCLAIMER 51 | 52 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Bold.eot -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Bold.woff -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Bold.woff2 -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Medium.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Medium.eot -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Medium.woff -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Medium.woff2 -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Regular.eot -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Regular.ttf -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Regular.woff -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/FiraMono-Regular.woff2 -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/FiraMono.LICENSE: -------------------------------------------------------------------------------- 1 | Fira Mono fonts 2 | ================================================================================ 3 | 4 | Digitized data copyright (c) 2012-2015, The Mozilla Foundation and Telefonica S.A. 5 | with Reserved Font Name Fira Mono. 6 | 7 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 8 | 9 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 10 | 11 | SIL OPEN FONT LICENSE 12 | 13 | Version 1.1 - 26 February 2007 14 | 15 | PREAMBLE 16 | 17 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 18 | 19 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 20 | 21 | DEFINITIONS 22 | 23 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 24 | 25 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 26 | 27 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 28 | 29 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting — in part or in whole — any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 30 | 31 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 32 | 33 | PERMISSION & CONDITIONS 34 | 35 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 36 | 37 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 38 | 39 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 40 | 41 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 42 | 43 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 44 | 45 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 46 | 47 | TERMINATION 48 | 49 | This license becomes null and void if any of the above conditions are not met. 50 | 51 | DISCLAIMER 52 | 53 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/common/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.here.android.mpa.common (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 |

com.here.android.mpa.common

12 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/class-use/Map.Scheme.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.mapping.Map.Scheme (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.mapping.Map.Scheme

73 |
74 |
No usage of com.here.android.mpa.mapping.Map.Scheme
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/class-use/MapFragment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.mapping.MapFragment (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.mapping.MapFragment

73 |
74 |
No usage of com.here.android.mpa.mapping.MapFragment
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/class-use/MapGesture.OnGestureListener.OnGestureListenerAdapter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.mapping.MapGesture.OnGestureListener.OnGestureListenerAdapter (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.mapping.MapGesture.OnGestureListener.OnGestureListenerAdapter

73 |
74 |
No usage of com.here.android.mpa.mapping.MapGesture.OnGestureListener.OnGestureListenerAdapter
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/class-use/MapRasterTileSource.MapTileSystemHelper.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.mapping.MapRasterTileSource.MapTileSystemHelper (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.mapping.MapRasterTileSource.MapTileSystemHelper

73 |
74 |
No usage of com.here.android.mpa.mapping.MapRasterTileSource.MapTileSystemHelper
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/class-use/MapView.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.mapping.MapView (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.mapping.MapView

73 |
74 |
No usage of com.here.android.mpa.mapping.MapView
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/class-use/OnMapRenderListener.OnMapRenderListenerAdapter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.mapping.OnMapRenderListener.OnMapRenderListenerAdapter (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.mapping.OnMapRenderListener.OnMapRenderListenerAdapter

73 |
74 |
No usage of com.here.android.mpa.mapping.OnMapRenderListener.OnMapRenderListenerAdapter
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/class-use/UrlMapRasterTileSourceBase.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.mapping.UrlMapRasterTileSourceBase (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.mapping.UrlMapRasterTileSourceBase

73 |
74 |
No usage of com.here.android.mpa.mapping.UrlMapRasterTileSourceBase
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/mapping/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.here.android.mpa.mapping (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 |

com.here.android.mpa.mapping

12 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/routing/class-use/RouteManager.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.routing.RouteManager (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.routing.RouteManager

73 |
74 |
No usage of com.here.android.mpa.routing.RouteManager
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/routing/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.here.android.mpa.routing (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 |

com.here.android.mpa.routing

12 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/search/class-use/AutoSuggestPlace.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.search.AutoSuggestPlace (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.search.AutoSuggestPlace

73 |
74 |
No usage of com.here.android.mpa.search.AutoSuggestPlace
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/search/class-use/AutoSuggestQuery.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.search.AutoSuggestQuery (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.search.AutoSuggestQuery

73 |
74 |
No usage of com.here.android.mpa.search.AutoSuggestQuery
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/search/class-use/AutoSuggestSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.search.AutoSuggestSearch (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.search.AutoSuggestSearch

73 |
74 |
No usage of com.here.android.mpa.search.AutoSuggestSearch
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/search/class-use/CreateLink.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.search.CreateLink (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.search.CreateLink

73 |
74 |
No usage of com.here.android.mpa.search.CreateLink
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/search/class-use/ReverseGeocodeRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class com.here.android.mpa.search.ReverseGeocodeRequest (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Uses of Class
com.here.android.mpa.search.ReverseGeocodeRequest

73 |
74 |
No usage of com.here.android.mpa.search.ReverseGeocodeRequest
75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 93 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/com/here/android/mpa/search/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.here.android.mpa.search (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 |

com.here.android.mpa.search

12 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Deprecated List (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
72 |

Deprecated API

73 |

Contents

74 | 78 |
79 |
80 | 81 | 82 | 99 | 100 | 101 | 102 | 120 |
121 | 122 |
123 | 124 | 125 | 126 | 127 | 128 | 129 | 139 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
140 |
141 | 168 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/here-logo-2016-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/here-logo-2016-dark.png -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/here-logo-2016-neg-solid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/here-logo-2016-neg-solid.png -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/here-logo-2016-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/here-logo-2016-white.png -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/here-logo-2016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/here-logo-2016.png -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/here-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/libs/docs/mapsdoc/here-logo.svg -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/index-files/index-12.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | N-Index (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
A B C D E F G H I L M N O P R S T U V W Z  72 | 73 | 74 |

N

75 |
76 |
NORMAL_DAY - Static variable in class com.here.android.mpa.mapping.Map.Scheme
77 |
78 |
Normal scheme presented in "day" colors.
79 |
80 |
NORMAL_DAY_GREY - Static variable in class com.here.android.mpa.mapping.Map.Scheme
81 |
82 |
Normal scheme presented in "day" colors that is suitable for use cases in which map still 83 | has a high relevance but is used as background for overlays (like venue maps).
84 |
85 |
86 | A B C D E F G H I L M N O P R S T U V W Z 
87 | 88 |
89 | 90 | 91 | 92 | 93 | 94 | 95 | 105 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
106 |
107 | 134 | 135 | 136 | 137 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/index-files/index-2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | B-Index (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
A B C D E F G H I L M N O P R S T U V W Z  72 | 73 | 74 |

B

75 |
76 |
BUILDING_ID_REFERENCE_NAME - Static variable in class com.here.android.mpa.search.Request
77 |
78 |
Name used to get building identifier references.
79 |
80 |
81 | A B C D E F G H I L M N O P R S T U V W Z 
82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 100 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
101 |
102 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/index-files/index-20.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | W-Index (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
A B C D E F G H I L M N O P R S T U V W Z  72 | 73 | 74 |

W

75 |
76 |
WHOLE_ROUTE - Static variable in class com.here.android.mpa.routing.Route
77 |
 
78 |
writeToParcel(Parcel, int) - Method in class com.here.android.mpa.mapping.MapState
79 |
 
80 |
81 | A B C D E F G H I L M N O P R S T U V W Z 
82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 100 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
101 |
102 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/index-files/index-21.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Z-Index (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
A B C D E F G H I L M N O P R S T U V W Z  72 | 73 | 74 |

Z

75 |
76 |
zoomTo(GeoBoundingBox, Map.Animation, float) - Method in class com.here.android.mpa.mapping.Map
77 |
78 |
Moves this Map instance's map center and changes the zoom level to show the specified 79 | GeoBoundingBox at the given orientation.
80 |
81 |
zoomTo(GeoBoundingBox, int, int, Map.Animation, float) - Method in class com.here.android.mpa.mapping.Map
82 |
83 |
Moves this Map instance and changes its zoom level to show the specified 84 | GeoBoundingBox within the specified pixel 85 | dimensions around the transform center.
86 |
87 |
88 | A B C D E F G H I L M N O P R S T U V W Z 
89 | 90 |
91 | 92 | 93 | 94 | 95 | 96 | 97 | 107 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
108 |
109 | 136 | 137 | 138 | 139 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/index-files/index-6.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | F-Index (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 21 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 42 |
43 | 70 | 71 |
A B C D E F G H I L M N O P R S T U V W Z  72 | 73 | 74 |

F

75 |
76 |
FIXED_HIGHDPI_SIZE - Static variable in class com.here.android.mpa.mapping.MapView
77 |
 
78 |
FIXED_LOWDPI_SIZE - Static variable in class com.here.android.mpa.mapping.MapView
79 |
 
80 |
81 | A B C D E F G H I L M N O P R S T U V W Z 
82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 100 |
Copyright (c) 2011-2018 HERE Global B.V. All rights reserved.
101 |
102 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HERE Android Started SDK 6 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | <body><noscript> 68 | <div>JavaScript is disabled on your browser.</div> 69 | </noscript> 70 | <h2>Frame Alert</h2> 71 | <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> 72 | 73 | 74 | </body> 75 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Overview List (HERE Android Started SDK) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 21 |

 

22 | 23 | 24 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/package-list: -------------------------------------------------------------------------------- 1 | com.here.android.mpa.common 2 | com.here.android.mpa.mapping 3 | com.here.android.mpa.routing 4 | com.here.android.mpa.search 5 | -------------------------------------------------------------------------------- /android/app/libs/docs/mapsdoc/script.js: -------------------------------------------------------------------------------- 1 | function show(type) 2 | { 3 | count = 0; 4 | for (var key in methods) { 5 | var row = document.getElementById(key); 6 | if ((methods[key] & type) != 0) { 7 | row.style.display = ''; 8 | row.className = (count++ % 2) ? rowColor : altColor; 9 | } 10 | else 11 | row.style.display = 'none'; 12 | } 13 | updateTabs(type); 14 | } 15 | 16 | function updateTabs(type) 17 | { 18 | for (var value in tabs) { 19 | var sNode = document.getElementById(tabs[value][0]); 20 | var spanNode = sNode.firstChild; 21 | if (value == type) { 22 | sNode.className = activeTableTab; 23 | spanNode.innerHTML = tabs[value][1]; 24 | } 25 | else { 26 | sNode.className = tableTab; 27 | spanNode.innerHTML = "" + tabs[value][1] + ""; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/heremapsrn/HereMapManager.java: -------------------------------------------------------------------------------- 1 | package com.heremapsrn; 2 | 3 | import android.util.Log; 4 | 5 | import com.facebook.infer.annotation.Assertions; 6 | import com.facebook.react.bridge.ReadableArray; 7 | import com.facebook.react.bridge.ReadableMap; 8 | import com.facebook.react.common.MapBuilder; 9 | import com.facebook.react.uimanager.ThemedReactContext; 10 | import com.facebook.react.uimanager.ViewGroupManager; 11 | import com.facebook.react.uimanager.annotations.ReactProp; 12 | 13 | import java.util.Map; 14 | 15 | import javax.annotation.Nullable; 16 | 17 | class HereMapManager extends ViewGroupManager { 18 | 19 | private static final int COMMAND_ZOOM_IN = 1; 20 | private static final int COMMAND_ZOOM_OUT = 2; 21 | private static final int COMMAND_SET_CENTER = 3; 22 | 23 | static final String REACT_CLASS = "HereMapView"; 24 | 25 | private static final String TAG = HereMapManager.class.getSimpleName(); 26 | 27 | @Override 28 | public String getName() { 29 | return REACT_CLASS; 30 | } 31 | 32 | @Override 33 | protected HereMapView createViewInstance(ThemedReactContext reactContext) { 34 | return new HereMapView(reactContext); 35 | } 36 | 37 | @Override 38 | public Map getCommandsMap() { 39 | Log.d("React"," View manager getCommandsMap:"); 40 | return MapBuilder.of( 41 | "zoomIn", COMMAND_ZOOM_IN, 42 | "zoomOut", COMMAND_ZOOM_OUT, 43 | "setCenter", COMMAND_SET_CENTER); 44 | } 45 | 46 | @Override 47 | public void receiveCommand(HereMapView view, 48 | int commandType, 49 | @Nullable ReadableArray args) { 50 | 51 | Assertions.assertNotNull(view); 52 | Assertions.assertNotNull(args); 53 | 54 | switch (commandType) { 55 | case COMMAND_ZOOM_IN: { 56 | double zoomLevel = args.getDouble(0); 57 | view.setZoomLevel(zoomLevel); 58 | return; 59 | } 60 | 61 | case COMMAND_ZOOM_OUT: { 62 | double zoomLevel = args.getDouble(0); 63 | view.setZoomLevel(zoomLevel); 64 | return; 65 | } 66 | 67 | case COMMAND_SET_CENTER: { 68 | ReadableMap coordinate = args.getMap(0); 69 | view.setCenter(coordinate); 70 | return; 71 | } 72 | 73 | default: 74 | throw new IllegalArgumentException(String.format( 75 | "Unsupported command %d received by %s.", 76 | commandType, 77 | getClass().getSimpleName())); 78 | } 79 | } 80 | 81 | @ReactProp(name = "center") 82 | public void setCenter(HereMapView view, @Nullable ReadableMap center) { 83 | Log.d(TAG, "======================= Center " + center); 84 | view.setCenter(center); 85 | } 86 | 87 | @ReactProp(name = "mapType") 88 | public void setMapType(HereMapView view, @Nullable String type) { 89 | Log.d(TAG, "======================= Map Type " + type); 90 | view.setMapType(type); 91 | } 92 | 93 | @ReactProp(name = "initialZoom", defaultDouble = 10.0) 94 | public void setZoomLevel(HereMapView view, double zoomLevel) { 95 | Log.d(TAG, "======================= ZOOM lolilol " + zoomLevel); 96 | view.setZoomLevel(zoomLevel); 97 | } 98 | 99 | @ReactProp(name = "userLocation") 100 | public void setUserLocation(HereMapView view, @Nullable ReadableMap markerPosition) { 101 | Log.d(TAG, "======================= Marker " + markerPosition); 102 | view.setUserLocation(markerPosition); 103 | } 104 | 105 | @ReactProp(name = "markersList") 106 | public void setMarkersList(HereMapView view, @Nullable ReadableArray markersPosition) { 107 | Log.d(TAG, "======================= Markers List " + markersPosition); 108 | view.setMarkersList(markersPosition); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/heremapsrn/HereMapModule.java: -------------------------------------------------------------------------------- 1 | package com.heremapsrn; 2 | 3 | import android.app.Activity; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 8 | import com.facebook.react.bridge.ReactMethod; 9 | 10 | import java.io.Closeable; 11 | import java.io.IOException; 12 | 13 | import static com.heremapsrn.HereMapManager.REACT_CLASS; 14 | 15 | class HereMapModule extends ReactContextBaseJavaModule { 16 | 17 | private static final String TAG = HereMapModule.class.getSimpleName(); 18 | 19 | HereMapModule(ReactApplicationContext reactContext) { 20 | super(reactContext); 21 | } 22 | 23 | @Override 24 | public String getName() { 25 | return REACT_CLASS; 26 | } 27 | 28 | // To expose a method to JavaScript a Java method must be annotated using @ReactMethod. 29 | // The return type of bridge methods is always void. 30 | // React Native bridge is asynchronous, so the only way to pass a result to JavaScript 31 | // is by using callbacks or emitting events (see below). 32 | 33 | public Activity getActivity() { 34 | return getCurrentActivity(); 35 | } 36 | 37 | public static void closeQuietly(Closeable closeable) { 38 | if (closeable == null) return; 39 | try { 40 | closeable.close(); 41 | } catch (IOException ignored) { 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/heremapsrn/HereMapPackage.java: -------------------------------------------------------------------------------- 1 | package com.heremapsrn; 2 | 3 | import android.app.Activity; 4 | 5 | import com.facebook.react.ReactPackage; 6 | import com.facebook.react.bridge.JavaScriptModule; 7 | import com.facebook.react.bridge.NativeModule; 8 | import com.facebook.react.bridge.ReactApplicationContext; 9 | import com.facebook.react.uimanager.ViewManager; 10 | 11 | import java.util.Arrays; 12 | import java.util.Collections; 13 | import java.util.List; 14 | 15 | public class HereMapPackage implements ReactPackage { 16 | public HereMapPackage() { 17 | } 18 | 19 | public HereMapPackage(Activity activity) { 20 | } // backwards compatibility 21 | 22 | 23 | @Override 24 | public List createNativeModules(ReactApplicationContext reactContext) { 25 | return Arrays.asList(new HereMapModule(reactContext)); 26 | } 27 | 28 | public List> createJSModules() { 29 | return Collections.emptyList(); 30 | } 31 | 32 | @Override 33 | public List createViewManagers(ReactApplicationContext reactContext) { 34 | //HereMapManager mapManager = new HereMapManager(reactContext); 35 | HereMapManager mapManager = new HereMapManager(); 36 | return Arrays.asList(mapManager); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/heremapsrn/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.heremapsrn; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "HereMapsRN"; 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/heremapsrn/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.heremapsrn; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | import com.heremapsrn.HereMapPackage; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | // we must register our package to expose it 28 | new HereMapPackage()); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/src/main/res/drawable/location.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/src/main/res/drawable/marker.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | react-native-here 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | google() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.1.4' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | mavenLocal() 19 | jcenter() 20 | maven { 21 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 22 | url "$rootDir/../node_modules/react-native/android" 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Oct 18 15:06:10 CEST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'react-native-here' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HereMapsRN", 3 | "displayName": "HereMapsRN" 4 | } -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | // MapView.js 2 | 3 | import React from 'react'; 4 | import PropTypes from 'prop-types'; 5 | import { 6 | View, 7 | Button, 8 | Text, 9 | NativeModules, 10 | requireNativeComponent, 11 | findNodeHandle 12 | } from 'react-native'; 13 | 14 | const MAP_TYPES = { 15 | NORMAL: 'normal', 16 | SATELLITE: 'satellite', 17 | }; 18 | 19 | const MapViewComponent = NativeModules.MapView; 20 | const UIManager = NativeModules.UIManager; 21 | 22 | var iface = { 23 | name: 'MapView', 24 | propTypes: { 25 | //...View.propTypes, // include the default view properties 26 | 27 | /** 28 | * style 29 | */ 30 | style: PropTypes.Object, 31 | 32 | /** 33 | * Center of the map : latitude,longitude 34 | */ 35 | center: PropTypes.Object, 36 | 37 | /** 38 | * The map type to be displayed. 39 | * 40 | * - standard: standard road map (default) 41 | * - satellite: satellite view 42 | * - hybrid: satellite view with roads and points of interest overlayed 43 | * - terrain: topographic view 44 | * - none: no base map 45 | */ 46 | mapType: PropTypes.oneOf(Object.values(MAP_TYPES)), 47 | 48 | /** 49 | * initialZoom: initial zoom level for map 50 | */ 51 | initialZoom : PropTypes.number, 52 | 53 | /** 54 | * Marker put on the map for the user location : latitude,longitude 55 | */ 56 | userLocation: PropTypes.Object, 57 | 58 | markersList: PropTypes.array, 59 | }, 60 | }; 61 | 62 | // requireNativeComponent commonly takes two parameters, the first is 63 | // the name of the native view and the second is an object that describes the 64 | // component interface. The component interface should declare a friendly name 65 | // for use in debug messages and must declare the propTypes reflected by the 66 | // Native View. The propTypes are used for checking the validity of a user's 67 | // use of the native view. 68 | // Note that if you need your JavaScript component to do 69 | // more than just specify a name and propTypes, like do custom event handling, 70 | // you can wrap the native component in a normal react component. In that case, 71 | // you want to pass in the wrapper component instead of iface to 72 | // requireNativeComponent. 73 | const HereMapView = requireNativeComponent('HereMapView', iface); 74 | 75 | export default class MapView extends React.Component { 76 | 77 | constructor(props) { 78 | super(props); 79 | 80 | this.state = { 81 | isReady: false, 82 | zoomLevel: 15, 83 | center: this.props.center 84 | }; 85 | 86 | this._onMapReady = this._onMapReady.bind(this); 87 | } 88 | 89 | // componentWillUpdate() is invoked immediately before rendering when 90 | // new props or state are being received. Use this as an opportunity 91 | // to perform preparation before an update occurs. This method is not called 92 | // for the initial render. 93 | componentWillUpdate(nextProps) { 94 | } 95 | 96 | // componentDidMount() is invoked immediately after a component is mounted. 97 | // Initialization that requires DOM nodes should go here. If you need to load 98 | // data from a remote endpoint, this is a good place to instantiate the 99 | // network request. Setting state in this method will trigger a re-rendering. 100 | componentDidMount() { 101 | const { isReady } = this.state; 102 | if (isReady) { 103 | } 104 | } 105 | 106 | render() { 107 | console.log('Center: ', this.props.center); 108 | return ( 109 | 110 | 117 | 118 | 121 | 122 | 123 | ); 124 | } 125 | 126 | _onMapReady() { 127 | this.setState({ isReady: true }); 128 | } 129 | 130 | onZoomInPress = () => { 131 | if ( this.state.zoomLevel < 20 ) { 132 | this.setState({ zoomLevel : this.state.zoomLevel + 1}); 133 | UIManager.dispatchViewManagerCommand( 134 | findNodeHandle(this), 135 | UIManager.HereMapView.Commands.zoomIn, 136 | [this.state.zoomLevel] ); 137 | } 138 | } 139 | 140 | onZoomOutPress = () => { 141 | if (this.state.zoomLevel > 0) { 142 | this.setState({ zoomLevel : this.state.zoomLevel - 1}); 143 | UIManager.dispatchViewManagerCommand( 144 | findNodeHandle(this), 145 | UIManager.HereMapView.Commands.zoomOut, 146 | [ this.state.zoomLevel ] ); 147 | } 148 | } 149 | 150 | onSetCenterPress = () => { 151 | this.setState({ center : this.state.center }); 152 | UIManager.dispatchViewManagerCommand( 153 | findNodeHandle(this), 154 | UIManager.HereMapView.Commands.setCenter, 155 | [ this.state.center ] ); 156 | } 157 | 158 | } 159 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { requireNativeComponent } from 'react-native'; 3 | import PropTypes from 'prop-types'; 4 | 5 | 6 | class MainRNTMap extends React.Component{ 7 | constructor(props){ 8 | super(props); 9 | 10 | } 11 | static propTypes = { 12 | mapCenter: PropTypes.objectOf, 13 | userLocation: PropTypes.objectOf, 14 | markersList: PropTypes.objectOf, 15 | initialZoom: PropTypes.objectOf, 16 | } 17 | 18 | 19 | render() { 20 | return ( 21 | 24 | ); 25 | }; 26 | }; 27 | 28 | // requireNativeComponent automatically resolves 'RNTMap' to 'RNTMapManager' 29 | module.exports = requireNativeComponent('RNTMap', MainRNTMap); 30 | -------------------------------------------------------------------------------- /ios/HRMapView.h: -------------------------------------------------------------------------------- 1 | // 2 | // HRMapView.h 3 | // RNHereMapsIos 4 | // 5 | // Created by WeOpt Mac on 11/02/2019. 6 | // Copyright © 2019 Facebook. All rights reserved. 7 | // 8 | #import "React/RCTEventDispatcher.h" 9 | #import "React/RCTView.h" 10 | #import 11 | #import 12 | @import NMAKit; 13 | 14 | @class RCTEventDispatcher; 15 | 16 | @interface HRMapView : UIView 17 | 18 | @property (strong, nonatomic) IBOutlet NMAMapView *mapView; 19 | @property (nonatomic, strong) NSDictionary *mapCenter; 20 | @property (nonatomic, strong) NSDictionary *userLocation; 21 | @property (nonatomic, strong) NSArray *markersList; 22 | @property (nonatomic) float initialZoom; 23 | 24 | 25 | - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER; 26 | 27 | 28 | @end 29 | 30 | -------------------------------------------------------------------------------- /ios/HRMapView.m: -------------------------------------------------------------------------------- 1 | // 2 | // HRMapView.m 3 | // RNHereMapsIos 4 | // 5 | // Created by WeOpt Mac on 11/02/2019. 6 | // Copyright © 2019 Facebook. All rights reserved. 7 | // 8 | 9 | #import "HRMapView.h" 10 | #import "React/RCTEventDispatcher.h" 11 | #import 12 | 13 | @import NMAKit; 14 | 15 | @interface HRMapView () 16 | 17 | 18 | @end 19 | 20 | @implementation HRMapView { 21 | 22 | RCTEventDispatcher *_eventDispatcher; 23 | 24 | } 25 | 26 | 27 | - (void)setMapCenter:(NSDictionary *)mapCenter 28 | { 29 | RCTLogInfo(@"Set center map to %f,%f", [[mapCenter objectForKey:(@"latitude")] doubleValue], [[mapCenter objectForKey:(@"longitude")] doubleValue]); 30 | 31 | if (![mapCenter isEqual:_mapCenter]) { 32 | _mapCenter = [mapCenter copy]; 33 | NMAGeoCoordinates* coord = [[NMAGeoCoordinates alloc] 34 | initWithLatitude: [[mapCenter objectForKey:(@"latitude")] doubleValue] 35 | longitude:[[mapCenter objectForKey:(@"longitude")] doubleValue]]; 36 | [_mapView setGeoCenter:coord 37 | zoomLevel:NMAMapViewPreserveValue 38 | withAnimation:NMAMapAnimationNone]; 39 | } 40 | } 41 | 42 | - (void)setInitialZoom:(float)initialZoom 43 | { 44 | RCTLogInfo(@"Set initial zoom map to %f", initialZoom); 45 | 46 | self.mapView.zoomLevel = initialZoom; 47 | } 48 | 49 | - (void)setUserLocation:(NSDictionary *)userLocation 50 | { 51 | RCTLogInfo(@"Set user location marker to %f,%f", [[userLocation objectForKey:(@"latitude")] doubleValue], [[userLocation objectForKey:(@"longitude")] doubleValue]); 52 | UIImage *myImage = [UIImage imageNamed:@"userLocation"]; 53 | // Add the marker on the map 54 | NMAMapMarker *positionMarker = 55 | [NMAMapMarker 56 | mapMarkerWithGeoCoordinates:[NMAGeoCoordinates 57 | geoCoordinatesWithLatitude:[[userLocation objectForKey:(@"latitude")] doubleValue] 58 | longitude:[[userLocation objectForKey:(@"longitude")] doubleValue]] 59 | image: myImage]; 60 | 61 | [_mapView addMapObject:positionMarker]; 62 | } 63 | 64 | - (void)setMarkersList:(NSArray *)markersList 65 | { 66 | RCTLogInfo(@"Set markers List"); 67 | for (id marker in markersList) { 68 | RCTLogInfo(@"Set marker on map to %f,%f", [[marker objectForKey:(@"latitude")] doubleValue], [[marker objectForKey:(@"longitude")] doubleValue]); 69 | 70 | // Add the marker on the map 71 | NMAMapMarker *positionMarker = 72 | [NMAMapMarker 73 | mapMarkerWithGeoCoordinates:[NMAGeoCoordinates 74 | geoCoordinatesWithLatitude:[[marker objectForKey:(@"latitude")] doubleValue] 75 | longitude:[[marker objectForKey:(@"longitude")] doubleValue]] 76 | image:[UIImage imageNamed:@"marker"]]; 77 | 78 | // [positionMarker setTitle:[marker objectForKey:(@"title")]]; 79 | if ( [marker objectForKey:(@"description")] != (id)[NSNull null] ) { 80 | // [positionMarker setTextDescription:[marker objectForKey:(@"description")]]; 81 | } 82 | 83 | 84 | [_mapView addMapObject:positionMarker]; 85 | 86 | } 87 | } 88 | 89 | 90 | - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher 91 | { 92 | if ((self = [super init])) { 93 | // Do any additional setup after loading the view, typically from a nib. 94 | //set geo center 95 | 96 | _eventDispatcher = eventDispatcher; 97 | _mapView = [[NMAMapView alloc] init]; 98 | 99 | NMAGeoCoordinates *geoCoordCenter = 100 | [[NMAGeoCoordinates alloc] initWithLatitude:49.260327 longitude:-123.115025]; 101 | [_mapView setGeoCenter:geoCoordCenter withAnimation:NMAMapAnimationNone]; 102 | _mapView.copyrightLogoPosition = NMALayoutPositionBottomCenter; 103 | //set zoom level 104 | _mapView.zoomLevel = 13; 105 | 106 | //Allow to use didSelectObjects to detect when we click on a marker 107 | self.mapView.delegate = self; 108 | 109 | 110 | } 111 | 112 | return self; 113 | } 114 | 115 | -(void)mapView:(NMAMapView *)mapView didSelectObjects:(NSArray *)objects { 116 | RCTLogInfo(@"TAP on marker !"); 117 | NMAMapMarker *mapMarker = (NMAMapMarker *) objects.firstObject; 118 | // [mapMarker showInfoBubble]; 119 | } 120 | 121 | - (void)layoutSubviews 122 | { 123 | [super layoutSubviews]; 124 | self.mapView.frame = self.bounds; 125 | [self addSubview:_mapView]; 126 | } 127 | 128 | @end 129 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'RNHereMapsIos' do 5 | # Uncomment the next line if you're using Swift or would like to use dynamic frameworks 6 | # use_frameworks! 7 | 8 | # Pods for RNHereMapsIos 9 | pod 'HEREMaps' 10 | 11 | end 12 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - HEREMaps (3.11.2) 3 | 4 | DEPENDENCIES: 5 | - HEREMaps 6 | 7 | SPEC REPOS: 8 | trunk: 9 | - HEREMaps 10 | 11 | SPEC CHECKSUMS: 12 | HEREMaps: 842884a0feb0b352fe291aafab60eb289dfa1804 13 | 14 | PODFILE CHECKSUM: 8a9a4bc16fc3f8e716be257b567c4927bfb02d47 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /ios/RCTViewManager.h: -------------------------------------------------------------------------------- 1 | #if __has_include() 2 | #import 3 | #else 4 | #import "RCTBridgeModule.h" 5 | #endif 6 | 7 | @interface RNTMapManager : NSObject 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /ios/RNHereMapsIos.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/RNHereMapsIos.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/RNTMapManager.m: -------------------------------------------------------------------------------- 1 | // RNTMapManager.m 2 | #import 3 | @import NMAKit; 4 | #import 5 | #import "HRMapView.h" 6 | 7 | @interface RNTMapManager : RCTViewManager 8 | @end 9 | 10 | @implementation RNTMapManager 11 | 12 | RCT_EXPORT_MODULE() 13 | @synthesize bridge = _bridge; 14 | 15 | - (UIView *)view 16 | { 17 | return [[HRMapView alloc] initWithEventDispatcher:self.bridge.eventDispatcher]; 18 | } 19 | 20 | RCT_EXPORT_VIEW_PROPERTY(mapCenter, NSDictionary); 21 | RCT_EXPORT_VIEW_PROPERTY(userLocation, NSDictionary); 22 | RCT_EXPORT_VIEW_PROPERTY(markersList, NSArray); 23 | RCT_EXPORT_VIEW_PROPERTY(initialZoom, float); 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios/libPods-RNHereMapsIos.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weopt/react-native-here-maps/f36dd030bc13f3909d4e41f4bcaa255d67825b89/ios/libPods-RNHereMapsIos.a -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "peerDependencies": { 3 | "react": "~15.4.1", 4 | "react-native": "^0.42.3" 5 | }, 6 | "dependencies": { 7 | "prop-types": "^15.6.1" 8 | }, 9 | "description": "A react native module to display HERE maps", 10 | "devDependencies": { 11 | "babel-jest": "19.0.0", 12 | "babel-preset-react-native": "1.9.1", 13 | "jest": "19.0.2", 14 | "react-test-renderer": "~15.4.1" 15 | }, 16 | "jest": { 17 | "preset": "react-native" 18 | }, 19 | "keywords": [ 20 | "react-native", 21 | "component", 22 | "maps", 23 | "HereMaps", 24 | "HereMapsRN" 25 | ], 26 | "main": "./index", 27 | "name": "react-native-heremaps", 28 | "scripts": { 29 | "start": "node node_modules/react-native/local-cli/cli.js start", 30 | "test": "jest" 31 | }, 32 | "version": "0.0.2" 33 | } 34 | --------------------------------------------------------------------------------