react-native-maps 1.21.0-alpha.98 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/android/build.gradle +65 -72
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/src/main/RCTAppDependencyProvider.h +25 -0
- package/android/src/main/RCTAppDependencyProvider.mm +55 -0
- package/android/src/main/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/android/src/main/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/android/src/main/RCTThirdPartyComponentsProvider.h +16 -0
- package/android/src/main/RCTThirdPartyComponentsProvider.mm +28 -0
- package/android/src/main/ReactAppDependencyProvider.podspec +34 -0
- package/android/src/main/java/com/facebook/fbreact/specs/NativeAirMapsModuleSpec.java +63 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java +35 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +17 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCircleManagerDelegate.java +49 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsCircleManagerInterface.java +23 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerDelegate.java +49 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerInterface.java +23 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +209 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +74 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +104 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +39 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerDelegate.java +45 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerInterface.java +22 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerDelegate.java +58 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerInterface.java +26 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsUrlTileManagerDelegate.java +62 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsUrlTileManagerInterface.java +27 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsWMSTileManagerDelegate.java +56 -0
- package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsWMSTileManagerInterface.java +25 -0
- package/android/src/main/java/com/rnmaps/fabric/MapViewManager.java +5 -1
- package/android/src/main/java/com/rnmaps/fabric/NativeAirMapsModule.java +1 -1
- package/android/src/main/java/com/rnmaps/fabric/OverlayManager.java +9 -3
- package/android/src/main/java/com/rnmaps/fabric/UrlTileManager.java +124 -0
- package/android/src/main/java/com/rnmaps/fabric/WMSTileManager.java +114 -0
- package/android/src/main/java/com/rnmaps/maps/MapAirModulePackage.java +19 -3
- package/android/src/main/java/com/rnmaps/maps/MapMarker.java +608 -603
- package/android/src/main/java/com/rnmaps/maps/MapMarkerManager.java +3 -3
- package/android/src/main/java/com/rnmaps/maps/MapOverlay.java +2 -22
- package/android/src/main/java/com/rnmaps/maps/MapOverlayManager.java +23 -1
- package/android/src/main/java/com/rnmaps/maps/MapUrlTile.java +18 -18
- package/android/src/main/java/com/rnmaps/maps/MapUrlTileManager.java +10 -14
- package/android/src/main/java/com/rnmaps/maps/MapView.java +58 -49
- package/android/src/main/java/com/rnmaps/maps/MapWMSTile.java +3 -3
- package/android/src/main/java/com/rnmaps/maps/MapWMSTileManager.java +10 -10
- package/android/src/main/jni/CMakeLists.txt +36 -0
- package/android/src/main/jni/RNMapsSpecs-generated.cpp +68 -0
- package/android/src/main/jni/RNMapsSpecs.h +31 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.cpp +31 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.h +33 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +979 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +860 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.cpp +227 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.h +1297 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI-generated.cpp +74 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI.h +268 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.cpp +26 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.h +131 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.cpp +16 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/States.h +137 -0
- package/ios/AirGoogleMaps/AIRGoogleMap.h +13 -13
- package/ios/AirGoogleMaps/{AIRGoogleMap.m → AIRGoogleMap.mm} +32 -34
- package/ios/AirGoogleMaps/AIRGoogleMapManager.h +1 -0
- package/ios/AirGoogleMaps/AIRGoogleMapManager.mm +543 -0
- package/ios/AirGoogleMaps/AIRGoogleMapMarker.m +3 -3
- package/ios/AirGoogleMaps/AIRGoogleMapMarkerManager.m +1 -1
- package/ios/AirGoogleMaps/AIRGoogleMapUrlTile.m +2 -2
- package/ios/AirGoogleMaps/AIRGoogleMapWMSTile.m +2 -2
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.h +5 -2
- package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +41 -33
- package/ios/AirGoogleMaps/RNMapsGoogleMapViewManager.mm +16 -1
- package/ios/AirGoogleMaps/RNMapsGooglePolygonView.mm +23 -14
- package/ios/AirGoogleMaps/RNMapsGooglePolygonViewManager.mm +1 -0
- package/ios/AirMaps/AIRMap.h +8 -9
- package/ios/AirMaps/{AIRMap.m → AIRMap.mm} +18 -14
- package/ios/AirMaps/AIRMapManager.m +8 -19
- package/ios/AirMaps/AIRMapMarker.m +57 -44
- package/ios/AirMaps/AIRMapOverlay.m +2 -2
- package/ios/AirMaps/AIRMapWMSTile.m +8 -8
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderGoogleMapView.h +25 -0
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderGoogleMapView.mm +77 -0
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderPolygonView.h +25 -0
- package/ios/AirMaps/FabricPlaceholders/PlaceHolderPolygonView.mm +51 -0
- package/ios/AirMaps/RNMapsAirModule.h +2 -3
- package/ios/AirMaps/RNMapsAirModule.mm +14 -0
- package/ios/AirMaps/RNMapsDefines.h +1 -0
- package/ios/AirMaps/RNMapsMapView.h +5 -2
- package/ios/AirMaps/RNMapsMapView.mm +16 -6
- package/ios/AirMaps/RNMapsMapViewManager.mm +19 -1
- package/ios/AirMaps/RNMapsMarkerView.mm +12 -4
- package/ios/AirMaps/RNMapsMarkerViewManager.mm +7 -0
- package/ios/AirMaps/module.modulemap +6 -0
- package/ios/AirMaps.xcodeproj/project.pbxproj +15 -55
- package/ios/generated/RCTAppDependencyProvider.h +25 -0
- package/ios/generated/RCTAppDependencyProvider.mm +55 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
- package/ios/generated/RCTThirdPartyComponentsProvider.mm +26 -0
- package/ios/{AirMaps → generated}/RNMapsAirModuleDelegate.h +1 -1
- package/ios/generated/RNMapsSpecs/ComponentDescriptors.cpp +29 -0
- package/ios/generated/RNMapsSpecs/ComponentDescriptors.h +31 -0
- package/ios/generated/RNMapsSpecs/EventEmitters.cpp +977 -0
- package/ios/generated/RNMapsSpecs/EventEmitters.h +846 -0
- package/ios/generated/RNMapsSpecs/Props.cpp +194 -0
- package/ios/generated/RNMapsSpecs/Props.h +1224 -0
- package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +591 -0
- package/ios/generated/RNMapsSpecs/RNMapsSpecs-generated.mm +92 -0
- package/ios/generated/RNMapsSpecs/RNMapsSpecs.h +137 -0
- package/ios/generated/RNMapsSpecs/ShadowNodes.cpp +24 -0
- package/ios/generated/RNMapsSpecs/ShadowNodes.h +109 -0
- package/ios/generated/RNMapsSpecs/States.cpp +16 -0
- package/ios/generated/RNMapsSpecs/States.h +113 -0
- package/ios/generated/RNMapsSpecsJSI-generated.cpp +74 -0
- package/ios/generated/RNMapsSpecsJSI.h +268 -0
- package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
- package/ios/generated/module.modulemap +15 -0
- package/package.json +30 -25
- package/react-native-google-maps.podspec +27 -0
- package/react-native-maps-generated.podspec +31 -0
- package/react-native-maps.podspec +52 -46
- package/react-native.config.js +16 -0
- package/src/AnimatedRegion.ts +169 -0
- package/src/Geojson.tsx +541 -0
- package/src/MapCallout.tsx +77 -0
- package/src/MapCalloutSubview.tsx +64 -0
- package/src/MapCircle.tsx +162 -0
- package/src/MapHeatmap.tsx +125 -0
- package/src/MapLocalTile.tsx +60 -0
- package/src/MapMarker.tsx +531 -0
- package/src/MapMarkerNativeComponent.ts +51 -0
- package/src/MapOverlay.tsx +178 -0
- package/src/MapPolygon.tsx +188 -0
- package/src/MapPolygon.types.ts +25 -0
- package/src/MapPolyline.tsx +215 -0
- package/src/MapUrlTile.tsx +169 -0
- package/src/MapView.tsx +1230 -0
- package/src/MapView.types.ts +212 -0
- package/src/MapView.web.ts +2 -0
- package/src/MapViewNativeComponent.ts +86 -0
- package/src/MapWMSTile.tsx +148 -0
- package/src/ProviderConstants.ts +2 -0
- package/src/createFabricMap.tsx +253 -0
- package/src/decorateMapComponent.ts +227 -0
- package/src/fixImageProp.ts +17 -0
- package/src/index.ts +52 -0
- package/src/sharedTypes.ts +101 -0
- package/{specs → src/specs}/NativeComponentCircle.ts +3 -4
- package/{specs → src/specs}/NativeComponentGoogleMapView.ts +15 -9
- package/{specs → src/specs}/NativeComponentMapView.ts +61 -32
- package/{specs → src/specs}/NativeComponentOverlay.ts +11 -2
- package/{specs → src/specs}/NativeComponentPolyline.ts +1 -1
- package/src/specs/NativeComponentUrlTile.ts +128 -0
- package/src/specs/NativeComponentWMSTile.ts +107 -0
- package/ios/AirGoogleMaps/AIRGoogleMapManager.m +0 -533
- package/lib/AnimatedRegion.d.ts +0 -19
- package/lib/AnimatedRegion.js +0 -134
- package/lib/Geojson.d.ts +0 -204
- package/lib/Geojson.js +0 -166
- package/lib/MapCallout.d.ts +0 -40
- package/lib/MapCallout.js +0 -51
- package/lib/MapCalloutSubview.d.ts +0 -34
- package/lib/MapCalloutSubview.js +0 -48
- package/lib/MapCircle.d.ts +0 -117
- package/lib/MapCircle.js +0 -53
- package/lib/MapHeatmap.d.ts +0 -78
- package/lib/MapHeatmap.js +0 -59
- package/lib/MapLocalTile.d.ts +0 -35
- package/lib/MapLocalTile.js +0 -44
- package/lib/MapMarker.d.ts +0 -322
- package/lib/MapMarker.js +0 -158
- package/lib/MapMarkerNativeComponent.d.ts +0 -15
- package/lib/MapMarkerNativeComponent.js +0 -15
- package/lib/MapOverlay.d.ts +0 -88
- package/lib/MapOverlay.js +0 -65
- package/lib/MapPolygon.d.ts +0 -140
- package/lib/MapPolygon.js +0 -53
- package/lib/MapPolygon.types.d.ts +0 -18
- package/lib/MapPolygon.types.js +0 -2
- package/lib/MapPolyline.d.ts +0 -156
- package/lib/MapPolyline.js +0 -53
- package/lib/MapUrlTile.d.ts +0 -134
- package/lib/MapUrlTile.js +0 -44
- package/lib/MapView.d.ts +0 -703
- package/lib/MapView.js +0 -427
- package/lib/MapView.types.d.ts +0 -161
- package/lib/MapView.types.js +0 -2
- package/lib/MapView.web.d.ts +0 -1
- package/lib/MapView.web.js +0 -9
- package/lib/MapViewNativeComponent.d.ts +0 -18
- package/lib/MapViewNativeComponent.js +0 -19
- package/lib/MapWMSTile.d.ts +0 -116
- package/lib/MapWMSTile.js +0 -44
- package/lib/ProviderConstants.d.ts +0 -2
- package/lib/ProviderConstants.js +0 -5
- package/lib/createFabricMap.d.ts +0 -24
- package/lib/createFabricMap.js +0 -188
- package/lib/decorateMapComponent.d.ts +0 -36
- package/lib/decorateMapComponent.js +0 -120
- package/lib/fixImageProp.d.ts +0 -4
- package/lib/fixImageProp.js +0 -16
- package/lib/index.d.ts +0 -38
- package/lib/index.js +0 -81
- package/lib/sharedTypes.d.ts +0 -81
- package/lib/sharedTypes.js +0 -2
- package/lib/sharedTypesInternal.js +0 -2
- package/lib/specs/NativeAirMapsModule.d.ts +0 -31
- package/lib/specs/NativeAirMapsModule.js +0 -4
- package/lib/specs/NativeComponentCallout.d.ts +0 -46
- package/lib/specs/NativeComponentCallout.js +0 -9
- package/lib/specs/NativeComponentCircle.d.ts +0 -74
- package/lib/specs/NativeComponentCircle.js +0 -7
- package/lib/specs/NativeComponentGoogleMapView.d.ts +0 -713
- package/lib/specs/NativeComponentGoogleMapView.js +0 -22
- package/lib/specs/NativeComponentGooglePolygon.d.ts +0 -75
- package/lib/specs/NativeComponentGooglePolygon.js +0 -7
- package/lib/specs/NativeComponentMapView.d.ts +0 -847
- package/lib/specs/NativeComponentMapView.js +0 -20
- package/lib/specs/NativeComponentMarker.d.ts +0 -258
- package/lib/specs/NativeComponentMarker.js +0 -19
- package/lib/specs/NativeComponentOverlay.d.ts +0 -67
- package/lib/specs/NativeComponentOverlay.js +0 -7
- package/lib/specs/NativeComponentPolyline.d.ts +0 -101
- package/lib/specs/NativeComponentPolyline.js +0 -7
- /package/ios/AirMaps/{UIView +AirMap.m → UIView+AirMap.m} +0 -0
- /package/ios/{AirMaps → generated}/RNMapsHostVewDelegate.h +0 -0
- /package/{lib/sharedTypesInternal.d.ts → src/sharedTypesInternal.ts} +0 -0
- /package/{specs → src/specs}/NativeAirMapsModule.ts +0 -0
- /package/{specs → src/specs}/NativeComponentCallout.ts +0 -0
- /package/{specs → src/specs}/NativeComponentGooglePolygon.ts +0 -0
- /package/{specs → src/specs}/NativeComponentMarker.ts +0 -0
package/lib/MapCircle.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MapCircle = void 0;
|
|
27
|
-
const React = __importStar(require("react"));
|
|
28
|
-
const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
|
|
29
|
-
class MapCircle extends React.Component {
|
|
30
|
-
getNativeComponent;
|
|
31
|
-
getMapManagerCommand;
|
|
32
|
-
getUIManagerCommand;
|
|
33
|
-
circle;
|
|
34
|
-
constructor(props) {
|
|
35
|
-
super(props);
|
|
36
|
-
this.circle = React.createRef();
|
|
37
|
-
}
|
|
38
|
-
setNativeProps(props) {
|
|
39
|
-
this.circle.current?.setNativeProps(props);
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
const { strokeColor = '#000', strokeWidth = 1 } = this.props;
|
|
43
|
-
const AIRMapCircle = this.getNativeComponent();
|
|
44
|
-
return (<AIRMapCircle {...this.props} strokeColor={strokeColor} strokeWidth={strokeWidth} ref={this.circle}/>);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.MapCircle = MapCircle;
|
|
48
|
-
exports.default = (0, decorateMapComponent_1.default)(MapCircle, 'Circle', {
|
|
49
|
-
google: {
|
|
50
|
-
ios: decorateMapComponent_1.SUPPORTED,
|
|
51
|
-
android: decorateMapComponent_1.USES_DEFAULT_IMPLEMENTATION,
|
|
52
|
-
},
|
|
53
|
-
});
|
package/lib/MapHeatmap.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ProcessedColorValue, View, ViewProps } from 'react-native';
|
|
3
|
-
import { MapManagerCommand, NativeComponent, ProviderContext, UIManagerCommand } from './decorateMapComponent';
|
|
4
|
-
import { LatLng } from './sharedTypes';
|
|
5
|
-
import { Modify } from './sharedTypesInternal';
|
|
6
|
-
export type MapHeatmapProps = ViewProps & {
|
|
7
|
-
gradient?: {
|
|
8
|
-
/**
|
|
9
|
-
* Resolution of color map -- number corresponding to the number of steps colors are interpolated into.
|
|
10
|
-
*
|
|
11
|
-
* @default 256
|
|
12
|
-
* @platform iOS: Google Maps only
|
|
13
|
-
* @platform Android: Supported
|
|
14
|
-
*/
|
|
15
|
-
colorMapSize: number;
|
|
16
|
-
/**
|
|
17
|
-
* Colors (one or more) to used for gradient.
|
|
18
|
-
*
|
|
19
|
-
* @platform iOS: Google Maps only
|
|
20
|
-
* @platform Android: Supported
|
|
21
|
-
*/
|
|
22
|
-
colors: string[];
|
|
23
|
-
/**
|
|
24
|
-
* Array of floating point values from 0 to 1 representing where each color starts.
|
|
25
|
-
*
|
|
26
|
-
* Array length must be equal to `colors` array length.
|
|
27
|
-
*
|
|
28
|
-
* @platform iOS: Google Maps only
|
|
29
|
-
* @platform Android: Supported
|
|
30
|
-
*/
|
|
31
|
-
startPoints: number[];
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* The opacity of the heatmap.
|
|
35
|
-
*
|
|
36
|
-
* @default 0.7
|
|
37
|
-
* @platform iOS: Google Maps only
|
|
38
|
-
* @platform Android: Supported
|
|
39
|
-
*/
|
|
40
|
-
opacity?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Array of heatmap entries to apply towards density.
|
|
43
|
-
*
|
|
44
|
-
* @platform iOS: Google Maps only
|
|
45
|
-
* @platform Android: Supported
|
|
46
|
-
*/
|
|
47
|
-
points?: WeightedLatLng[];
|
|
48
|
-
/**
|
|
49
|
-
* The radius of the heatmap points in pixels, between 10 and 50.
|
|
50
|
-
*
|
|
51
|
-
* @default 20
|
|
52
|
-
* @platform iOS: Google Maps only
|
|
53
|
-
* @platform Android: Supported
|
|
54
|
-
*/
|
|
55
|
-
radius?: number;
|
|
56
|
-
};
|
|
57
|
-
type NativeProps = Modify<MapHeatmapProps, {
|
|
58
|
-
gradient?: Modify<MapHeatmapProps['gradient'], {
|
|
59
|
-
colors: (ProcessedColorValue | null | undefined)[];
|
|
60
|
-
}>;
|
|
61
|
-
}> & {
|
|
62
|
-
ref: React.RefObject<View | null>;
|
|
63
|
-
};
|
|
64
|
-
export declare class MapHeatmap extends React.Component<MapHeatmapProps | null> {
|
|
65
|
-
context: React.ContextType<typeof ProviderContext>;
|
|
66
|
-
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
67
|
-
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
68
|
-
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
69
|
-
private heatmap;
|
|
70
|
-
constructor(props: MapHeatmapProps);
|
|
71
|
-
setNativeProps(props: Partial<NativeProps>): void;
|
|
72
|
-
render(): React.JSX.Element;
|
|
73
|
-
}
|
|
74
|
-
declare const _default: typeof MapHeatmap;
|
|
75
|
-
export default _default;
|
|
76
|
-
type WeightedLatLng = LatLng & {
|
|
77
|
-
weight?: number;
|
|
78
|
-
};
|
package/lib/MapHeatmap.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MapHeatmap = void 0;
|
|
27
|
-
const React = __importStar(require("react"));
|
|
28
|
-
const react_native_1 = require("react-native");
|
|
29
|
-
const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
|
|
30
|
-
class MapHeatmap extends React.Component {
|
|
31
|
-
getNativeComponent;
|
|
32
|
-
getMapManagerCommand;
|
|
33
|
-
getUIManagerCommand;
|
|
34
|
-
heatmap;
|
|
35
|
-
constructor(props) {
|
|
36
|
-
super(props);
|
|
37
|
-
this.heatmap = React.createRef();
|
|
38
|
-
}
|
|
39
|
-
setNativeProps(props) {
|
|
40
|
-
this.heatmap.current?.setNativeProps(props);
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
const AIRMapHeatmap = this.getNativeComponent();
|
|
44
|
-
const propGradient = this.props?.gradient;
|
|
45
|
-
let gradient;
|
|
46
|
-
if (propGradient) {
|
|
47
|
-
const colors = propGradient.colors.map(c => (0, react_native_1.processColor)(c));
|
|
48
|
-
gradient = { ...propGradient, colors };
|
|
49
|
-
}
|
|
50
|
-
return (<AIRMapHeatmap {...this.props} gradient={gradient} ref={this.heatmap}/>);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.MapHeatmap = MapHeatmap;
|
|
54
|
-
exports.default = (0, decorateMapComponent_1.default)(MapHeatmap, 'Heatmap', {
|
|
55
|
-
google: {
|
|
56
|
-
ios: decorateMapComponent_1.SUPPORTED,
|
|
57
|
-
android: decorateMapComponent_1.USES_DEFAULT_IMPLEMENTATION,
|
|
58
|
-
},
|
|
59
|
-
});
|
package/lib/MapLocalTile.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ViewProps } from 'react-native';
|
|
3
|
-
import { ProviderContext, NativeComponent, MapManagerCommand, UIManagerCommand } from './decorateMapComponent';
|
|
4
|
-
export type MapLocalTileProps = ViewProps & {
|
|
5
|
-
/**
|
|
6
|
-
* @platform iOS: Apple Maps only
|
|
7
|
-
* @platform Android: Supported
|
|
8
|
-
*/
|
|
9
|
-
pathTemplate: string;
|
|
10
|
-
/**
|
|
11
|
-
* @platform iOS: Apple Maps only
|
|
12
|
-
* @platform Android: Supported
|
|
13
|
-
*/
|
|
14
|
-
tileSize?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Set to true to use pathTemplate to open files from Android's AssetManager. The default is false.
|
|
17
|
-
* @platform android
|
|
18
|
-
*/
|
|
19
|
-
useAssets?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @platform iOS: Not supported
|
|
22
|
-
* @platform Android: Supported
|
|
23
|
-
*/
|
|
24
|
-
zIndex?: number;
|
|
25
|
-
};
|
|
26
|
-
type NativeProps = MapLocalTileProps;
|
|
27
|
-
export declare class MapLocalTile extends React.Component<MapLocalTileProps> {
|
|
28
|
-
context: React.ContextType<typeof ProviderContext>;
|
|
29
|
-
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
30
|
-
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
31
|
-
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
32
|
-
render(): React.JSX.Element;
|
|
33
|
-
}
|
|
34
|
-
declare const _default: typeof MapLocalTile;
|
|
35
|
-
export default _default;
|
package/lib/MapLocalTile.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MapLocalTile = void 0;
|
|
27
|
-
const React = __importStar(require("react"));
|
|
28
|
-
const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
|
|
29
|
-
class MapLocalTile extends React.Component {
|
|
30
|
-
getNativeComponent;
|
|
31
|
-
getMapManagerCommand;
|
|
32
|
-
getUIManagerCommand;
|
|
33
|
-
render() {
|
|
34
|
-
const AIRMapLocalTile = this.getNativeComponent();
|
|
35
|
-
return <AIRMapLocalTile {...this.props}/>;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.MapLocalTile = MapLocalTile;
|
|
39
|
-
exports.default = (0, decorateMapComponent_1.default)(MapLocalTile, 'LocalTile', {
|
|
40
|
-
google: {
|
|
41
|
-
ios: decorateMapComponent_1.SUPPORTED,
|
|
42
|
-
android: decorateMapComponent_1.USES_DEFAULT_IMPLEMENTATION,
|
|
43
|
-
},
|
|
44
|
-
});
|
package/lib/MapMarker.d.ts
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Animated, ViewProps, ImageURISource, ImageRequireSource } from 'react-native';
|
|
3
|
-
import { MapManagerCommand, NativeComponent, ProviderContext, UIManagerCommand } from './decorateMapComponent';
|
|
4
|
-
import { MapMarkerNativeComponentType } from './MapMarkerNativeComponent';
|
|
5
|
-
import type { AppleMarkerPriority } from './specs/NativeComponentMarker';
|
|
6
|
-
import { CalloutPressEvent, LatLng, MarkerDeselectEvent, MarkerDragEvent, MarkerDragStartEndEvent, MarkerPressEvent, MarkerSelectEvent, Point } from './sharedTypes';
|
|
7
|
-
import { Modify } from './sharedTypesInternal';
|
|
8
|
-
type AppleMarkerVisibility = 'hidden' | 'adaptive' | 'visible';
|
|
9
|
-
export type MapMarkerProps = ViewProps & {
|
|
10
|
-
/**
|
|
11
|
-
* Sets the anchor point for the marker.
|
|
12
|
-
* The anchor specifies the point in the icon image that is anchored to the marker's position on the Earth's surface.
|
|
13
|
-
*
|
|
14
|
-
* The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],
|
|
15
|
-
* where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.
|
|
16
|
-
*
|
|
17
|
-
* The anchoring point in a W x H image is the nearest discrete grid point in a (W + 1) x (H + 1) grid, obtained by scaling the then rounding.
|
|
18
|
-
* For example, in a 4 x 2 image, the anchor point (0.7, 0.6) resolves to the grid point at (3, 1).
|
|
19
|
-
*
|
|
20
|
-
* @default {x: 0.5, y: 1.0}
|
|
21
|
-
* @platform iOS: Google Maps only. For Apple Maps, see the `centerOffset` prop
|
|
22
|
-
* @platform Android: Supported
|
|
23
|
-
*/
|
|
24
|
-
anchor?: Point;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the point in the marker image at which to anchor the callout when it is displayed.
|
|
27
|
-
* This is specified in the same coordinate system as the anchor.
|
|
28
|
-
*
|
|
29
|
-
* See the `anchor` prop for more details.
|
|
30
|
-
*
|
|
31
|
-
* @default {x: 0.5, y: 0.0}
|
|
32
|
-
* @platform iOS: Google Maps only. For Apple Maps, see the `calloutOffset` prop
|
|
33
|
-
* @platform Android: Supported
|
|
34
|
-
*/
|
|
35
|
-
calloutAnchor?: Point;
|
|
36
|
-
/**
|
|
37
|
-
* The offset (in points) at which to place the callout bubble.
|
|
38
|
-
* When this property is set to (0, 0),
|
|
39
|
-
* the anchor point of the callout bubble is placed on the top-center point of the marker view’s frame.
|
|
40
|
-
*
|
|
41
|
-
* Specifying positive offset values moves the callout bubble down and to the right,
|
|
42
|
-
* while specifying negative values moves it up and to the left
|
|
43
|
-
*
|
|
44
|
-
* @default {x: 0.0, y: 0.0}
|
|
45
|
-
* @platform iOS: Apple Maps only. For Google Maps, see the `calloutAnchor` prop
|
|
46
|
-
* @platform Android: Not supported. see the `calloutAnchor` prop
|
|
47
|
-
*/
|
|
48
|
-
calloutOffset?: Point;
|
|
49
|
-
/**
|
|
50
|
-
* The offset (in points) at which to display the annotation view.
|
|
51
|
-
*
|
|
52
|
-
* By default, the center point of an annotation view is placed at the coordinate point of the associated annotation.
|
|
53
|
-
*
|
|
54
|
-
* Positive offset values move the annotation view down and to the right, while negative values move it up and to the left.
|
|
55
|
-
*
|
|
56
|
-
* @default {x: 0.0, y: 0.0}
|
|
57
|
-
* @platform iOS: Apple Maps only. For Google Maps, see the `anchor` prop
|
|
58
|
-
* @platform Android: Not supported. see the `anchor` prop
|
|
59
|
-
*/
|
|
60
|
-
centerOffset?: Point;
|
|
61
|
-
/**
|
|
62
|
-
* The coordinate for the marker.
|
|
63
|
-
*
|
|
64
|
-
* @platform iOS: Supported
|
|
65
|
-
* @platform Android: Supported
|
|
66
|
-
*/
|
|
67
|
-
coordinate: LatLng;
|
|
68
|
-
/**
|
|
69
|
-
* The description of the marker.
|
|
70
|
-
*
|
|
71
|
-
* This is only used if the <Marker /> component has no children that are a `<Callout />`,
|
|
72
|
-
* in which case the default callout behavior will be used,
|
|
73
|
-
* which will show both the `title` and the `description`, if provided.
|
|
74
|
-
*
|
|
75
|
-
* @platform iOS: Supported
|
|
76
|
-
* @platform Android: Supported
|
|
77
|
-
*/
|
|
78
|
-
description?: string;
|
|
79
|
-
/**
|
|
80
|
-
* if `true` allows the marker to be draggable (re-positioned).
|
|
81
|
-
*
|
|
82
|
-
* @default false
|
|
83
|
-
* @platform iOS: Supported
|
|
84
|
-
* @platform Android: Supported
|
|
85
|
-
*/
|
|
86
|
-
draggable?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Sets whether this marker should be flat against the map true or a billboard facing the camera.
|
|
89
|
-
*
|
|
90
|
-
* @default false
|
|
91
|
-
* @platform iOS: Google Maps only
|
|
92
|
-
* @platform Android: Supported
|
|
93
|
-
*/
|
|
94
|
-
flat?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Marker icon to render (equivalent to `icon` property of GMSMarker Class).
|
|
97
|
-
* Only local image resources are allowed to be used.
|
|
98
|
-
*
|
|
99
|
-
* @platform iOS: Google Maps only
|
|
100
|
-
* @platform Android: Supported
|
|
101
|
-
*/
|
|
102
|
-
icon?: ImageURISource | ImageRequireSource;
|
|
103
|
-
/**
|
|
104
|
-
* A string that can be used to identify this marker.
|
|
105
|
-
*
|
|
106
|
-
* @platform iOS: Supported
|
|
107
|
-
* @platform Android: Supported
|
|
108
|
-
*/
|
|
109
|
-
identifier?: string;
|
|
110
|
-
/**
|
|
111
|
-
* A custom image to be used as the marker's icon. Only local image resources are allowed to be used.
|
|
112
|
-
*
|
|
113
|
-
* @platform iOS: Supported
|
|
114
|
-
* @platform Android: Supported
|
|
115
|
-
*/
|
|
116
|
-
image?: ImageURISource | ImageRequireSource;
|
|
117
|
-
/**
|
|
118
|
-
* When true, the marker will be pre-selected.
|
|
119
|
-
* Setting this to true allows the user to drag the marker without needing to tap on it first to focus it.
|
|
120
|
-
*
|
|
121
|
-
* @default false
|
|
122
|
-
* @platform iOS: Apple Maps only
|
|
123
|
-
* @platform Android: Not supported
|
|
124
|
-
*/
|
|
125
|
-
isPreselected?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Callback that is called when the user taps the callout view.
|
|
128
|
-
*
|
|
129
|
-
* @platform iOS: Apple Maps only
|
|
130
|
-
* @platform Android: Supported
|
|
131
|
-
*/
|
|
132
|
-
onCalloutPress?: (event: CalloutPressEvent) => void;
|
|
133
|
-
/**
|
|
134
|
-
* Callback that is called when the marker is deselected, before the callout is hidden.
|
|
135
|
-
*
|
|
136
|
-
* @platform iOS: Apple Maps only
|
|
137
|
-
* @platform Android: Not supported
|
|
138
|
-
*/
|
|
139
|
-
onDeselect?: (event: MarkerDeselectEvent) => void;
|
|
140
|
-
/**
|
|
141
|
-
* Callback called continuously as the marker is dragged
|
|
142
|
-
*
|
|
143
|
-
* @platform iOS: Apple Maps only
|
|
144
|
-
* @platform Android: Supported
|
|
145
|
-
*/
|
|
146
|
-
onDrag?: (event: MarkerDragEvent) => void;
|
|
147
|
-
/**
|
|
148
|
-
* Callback that is called when a drag on the marker finishes.
|
|
149
|
-
* This is usually the point you will want to setState on the marker's coordinate again
|
|
150
|
-
*
|
|
151
|
-
* @platform iOS: Apple Maps only
|
|
152
|
-
* @platform Android: Supported
|
|
153
|
-
*/
|
|
154
|
-
onDragEnd?: (event: MarkerDragStartEndEvent) => void;
|
|
155
|
-
/**
|
|
156
|
-
* Callback that is called when the user initiates a drag on the marker (if it is draggable)
|
|
157
|
-
*
|
|
158
|
-
* @platform iOS: Apple Maps only
|
|
159
|
-
* @platform Android: Supported
|
|
160
|
-
*/
|
|
161
|
-
onDragStart?: (event: MarkerDragStartEndEvent) => void;
|
|
162
|
-
/**
|
|
163
|
-
* Callback that is called when the marker is tapped by the user.
|
|
164
|
-
*
|
|
165
|
-
* @platform iOS: Supported
|
|
166
|
-
* @platform Android: Supported
|
|
167
|
-
*/
|
|
168
|
-
onPress?: (event: MarkerPressEvent) => void;
|
|
169
|
-
/**
|
|
170
|
-
* Callback that is called when the marker becomes selected.
|
|
171
|
-
* This will be called when the callout for that marker is about to be shown.
|
|
172
|
-
*
|
|
173
|
-
* @platform iOS: Supported.
|
|
174
|
-
* @platform Android: Supported
|
|
175
|
-
*/
|
|
176
|
-
onSelect?: (event: MarkerSelectEvent) => void;
|
|
177
|
-
/**
|
|
178
|
-
* The marker's opacity between 0.0 and 1.0.
|
|
179
|
-
*
|
|
180
|
-
* @default 1.0
|
|
181
|
-
* @platform iOS: Supported
|
|
182
|
-
* @platform Android: Supported
|
|
183
|
-
*/
|
|
184
|
-
opacity?: number;
|
|
185
|
-
/**
|
|
186
|
-
* If no custom marker view or custom image is provided, the platform default pin will be used, which can be customized by this color.
|
|
187
|
-
* Ignored if a custom marker is being used.<br/><br/>
|
|
188
|
-
* For Android, the set of available colors is limited. Unsupported colors will fall back to red.
|
|
189
|
-
* See [#887](https://github.com/react-community/react-native-maps/issues/887) for more information.
|
|
190
|
-
*
|
|
191
|
-
* @platform iOS: Supported
|
|
192
|
-
* @platform Android: Supported
|
|
193
|
-
*/
|
|
194
|
-
pinColor?: string;
|
|
195
|
-
/**
|
|
196
|
-
* A float number indicating marker's rotation angle, in degrees.
|
|
197
|
-
*
|
|
198
|
-
* @default 0
|
|
199
|
-
* @platform iOS: Google Maps only
|
|
200
|
-
* @platform Android: Supported
|
|
201
|
-
*/
|
|
202
|
-
rotation?: number;
|
|
203
|
-
/**
|
|
204
|
-
* Sets whether this marker should propagate `onPress` events.
|
|
205
|
-
* Enabling it will stop the parent `MapView`'s `onPress` from being called.
|
|
206
|
-
*
|
|
207
|
-
* Android does not propagate `onPress` events.
|
|
208
|
-
*
|
|
209
|
-
* See [#1132](https://github.com/react-community/react-native-maps/issues/1132) for more information.
|
|
210
|
-
*
|
|
211
|
-
* @default false
|
|
212
|
-
* @platform iOS: Apple Maps only
|
|
213
|
-
* @platform Android: Not supported
|
|
214
|
-
*/
|
|
215
|
-
stopPropagation?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Sets whether marker should be tappable.
|
|
218
|
-
* If set to false, the marker will not have onPress events.
|
|
219
|
-
*
|
|
220
|
-
* @default true
|
|
221
|
-
* @platform iOS: Google Maps only
|
|
222
|
-
* @platform Android: Not supported
|
|
223
|
-
*/
|
|
224
|
-
tappable?: boolean;
|
|
225
|
-
/**
|
|
226
|
-
* The title of the marker.
|
|
227
|
-
* This is only used if the <Marker /> component has no `<Callout />` children.
|
|
228
|
-
*
|
|
229
|
-
* If the marker has <Callout /> children, default callout behavior will be used,
|
|
230
|
-
* which will show both the `title` and the `description`, if provided.
|
|
231
|
-
*
|
|
232
|
-
* @platform iOS: Supported
|
|
233
|
-
* @platform Android: Supported
|
|
234
|
-
*/
|
|
235
|
-
title?: string;
|
|
236
|
-
/**
|
|
237
|
-
* Sets whether this marker should track view changes in info window.
|
|
238
|
-
* Enabling it will let marker change content of info window after first render pass, but will lead to decreased performance,
|
|
239
|
-
* so it's recommended to disable it whenever you don't need it.
|
|
240
|
-
* **Note**: iOS Google Maps only.
|
|
241
|
-
*
|
|
242
|
-
* @default false
|
|
243
|
-
* @platform iOS: Google Maps only
|
|
244
|
-
* @platform Android: Not supported
|
|
245
|
-
*/
|
|
246
|
-
tracksInfoWindowChanges?: boolean;
|
|
247
|
-
/**
|
|
248
|
-
* Sets whether this marker should track view changes.
|
|
249
|
-
* It's recommended to turn it off whenever it's possible to improve custom marker performance.
|
|
250
|
-
*
|
|
251
|
-
* @default true
|
|
252
|
-
* @platform iOS: Google Maps only
|
|
253
|
-
* @platform Android: Supported
|
|
254
|
-
*/
|
|
255
|
-
tracksViewChanges?: boolean;
|
|
256
|
-
/**
|
|
257
|
-
* The order in which this tile overlay is drawn with respect to other overlays.
|
|
258
|
-
* An overlay with a larger z-index is drawn over overlays with smaller z-indices.
|
|
259
|
-
* The order of overlays with the same z-index is arbitrary.
|
|
260
|
-
*
|
|
261
|
-
* @platform iOS: Supported
|
|
262
|
-
* @platform Android: Supported
|
|
263
|
-
*/
|
|
264
|
-
zIndex?: number;
|
|
265
|
-
/**
|
|
266
|
-
Constants that indicates the display priority for annotations.
|
|
267
|
-
@default required
|
|
268
|
-
@platform iOS: Apple Maps only.
|
|
269
|
-
@platform Android: Not supported
|
|
270
|
-
|
|
271
|
-
Required: A constant indicating that the item is required.
|
|
272
|
-
High: A constant indicating that the item’s display priority is high.
|
|
273
|
-
Low: A constant indicating that the item’s display priority is Low.
|
|
274
|
-
*/
|
|
275
|
-
displayPriority?: AppleMarkerPriority;
|
|
276
|
-
/**
|
|
277
|
-
* Visibility of the title text rendered beneath Marker balloon
|
|
278
|
-
* @platform iOS: Apple Maps only
|
|
279
|
-
* @platform Android: Not supported
|
|
280
|
-
*/
|
|
281
|
-
titleVisibility?: AppleMarkerVisibility;
|
|
282
|
-
/**
|
|
283
|
-
* Visibility of the subtitle text rendered beneath Marker balloon
|
|
284
|
-
* @platform iOS: Apple Maps only
|
|
285
|
-
* @platform Android: Not supported
|
|
286
|
-
*/
|
|
287
|
-
subtitleVisibility?: AppleMarkerVisibility;
|
|
288
|
-
/**
|
|
289
|
-
* Indicate type of default markers if it's true MKPinAnnotationView will be used and MKMarkerAnnotationView if it's false
|
|
290
|
-
* It doesn't change anything if you are using custom Markers
|
|
291
|
-
* @platform iOS: Apple Maps only
|
|
292
|
-
* @platform Android: Not supported
|
|
293
|
-
*/
|
|
294
|
-
useLegacyPinView?: boolean;
|
|
295
|
-
};
|
|
296
|
-
type OmittedProps = Omit<MapMarkerProps, 'stopPropagation'>;
|
|
297
|
-
export type NativeProps = Modify<OmittedProps, {
|
|
298
|
-
icon?: string;
|
|
299
|
-
image?: MapMarkerProps['image'] | string;
|
|
300
|
-
}> & {
|
|
301
|
-
ref: React.RefObject<MapMarkerNativeComponentType | null>;
|
|
302
|
-
};
|
|
303
|
-
export declare class MapMarker extends React.Component<MapMarkerProps> {
|
|
304
|
-
context: React.ContextType<typeof ProviderContext>;
|
|
305
|
-
getNativeComponent: () => NativeComponent<NativeProps>;
|
|
306
|
-
getMapManagerCommand: (name: string) => MapManagerCommand;
|
|
307
|
-
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
308
|
-
static Animated: Animated.AnimatedComponent<typeof MapMarker>;
|
|
309
|
-
private marker;
|
|
310
|
-
private fabricMarker?;
|
|
311
|
-
constructor(props: MapMarkerProps);
|
|
312
|
-
setNativeProps(props: Partial<NativeProps>): void;
|
|
313
|
-
showCallout(): void;
|
|
314
|
-
hideCallout(): void;
|
|
315
|
-
setCoordinates(coordinate: LatLng): void;
|
|
316
|
-
redrawCallout(): void;
|
|
317
|
-
animateMarkerToCoordinate(coordinate: LatLng, duration?: number): void;
|
|
318
|
-
redraw(): void;
|
|
319
|
-
render(): React.JSX.Element;
|
|
320
|
-
}
|
|
321
|
-
declare const _default: typeof MapMarker;
|
|
322
|
-
export default _default;
|