|
|
@@ -1,5 +1,6 @@
|
|
|
import { createSelector, OutputSelector } from 'reselect';
|
|
|
import Global from './Common';
|
|
|
+import { Marker, Circle, Line, Polygon} from 'react-native-smart-amap';
|
|
|
import {
|
|
|
latLngDegreesToDecimal,
|
|
|
latLngDecimalToDegrees,
|
|
|
@@ -9,13 +10,11 @@ import {
|
|
|
isNumber
|
|
|
} from './Utils'
|
|
|
|
|
|
+export { Marker, Circle, Line, Polygon };
|
|
|
+
|
|
|
let LatLon = require('geodesy').LatLonSpherical;
|
|
|
|
|
|
-export interface Region {
|
|
|
- center: CoordinateLong;
|
|
|
- radius: number;
|
|
|
- animate: boolean;
|
|
|
-}
|
|
|
+
|
|
|
declare namespace LatLon {
|
|
|
export interface Spherical {
|
|
|
lat: number;
|
|
|
@@ -224,43 +223,6 @@ declare type PassingPoint = PassingPointLocal | PassingPointServer
|
|
|
|
|
|
// shapes
|
|
|
export type Coordinate = CoordinateLong | CoordinateShort
|
|
|
-export interface Circle {
|
|
|
- coordinate: Coordinate;
|
|
|
- radius: number;
|
|
|
- lineWidth: number;
|
|
|
- strokeColor: string;
|
|
|
- fillColor: string;
|
|
|
-}
|
|
|
-
|
|
|
-export interface CustomViewProps {
|
|
|
- imgName: string;
|
|
|
- addrName: string;
|
|
|
- index: number;
|
|
|
- isSelected: boolean;
|
|
|
-}
|
|
|
-
|
|
|
-export interface Marker {
|
|
|
- coordinate: Coordinate;
|
|
|
- imageName?: string;
|
|
|
- customView?: string;
|
|
|
- customViewProps?: CustomViewProps;
|
|
|
- isToTop?: boolean;
|
|
|
- flat?: boolean;
|
|
|
- uid?: string;
|
|
|
-}
|
|
|
-
|
|
|
-export interface Polygon {
|
|
|
- lineWidth: number;
|
|
|
- strokeColor: string;
|
|
|
- fillColor: string;
|
|
|
- coordinates: Coordinate[];
|
|
|
-}
|
|
|
-
|
|
|
-export interface Line {
|
|
|
- lineWidth: number;
|
|
|
- strokeColor: string;
|
|
|
- coordinates: Coordinate[];
|
|
|
-}
|
|
|
|
|
|
export interface CirclesAndMarkers {
|
|
|
circles: Circle[];
|