Browse Source

添加几种类型

guohui.deng 7 years ago
parent
commit
8b590a229d
1 changed files with 18 additions and 1 deletions
  1. 18 1
      index.ts

+ 18 - 1
index.ts

@@ -11,6 +11,11 @@ import {
 
 let LatLon = require('geodesy').LatLonSpherical;
 
+export interface Region {
+    center: CoordinateLong;
+    radius: number;
+    animate: boolean;
+}
 declare namespace LatLon {
     export interface Spherical {
         lat: number;
@@ -227,9 +232,21 @@ export interface Circle {
     fillColor: string;
 }
 
+export interface CustomViewProps {
+    imgName: string;
+    addrName: string;
+    index: number;
+    isSelected: boolean;
+}
+
 export interface Marker {
     coordinate: Coordinate;
-    imageName: string;
+    imageName?: string;
+    customView?: string;
+    customViewProps?: CustomViewProps;
+    isToTop?: boolean;
+    flat?: boolean;
+    uid?: string;
 }
 
 export interface Polygon {