@@ -27,6 +27,7 @@ declare module google.maps {
27
27
/***** MVC *****/
28
28
export class MVCObject {
29
29
constructor ( ) ;
30
+ addListener ( eventName : string , handler : ( ...args : any [ ] ) => void ) : MapsEventListener ;
30
31
bindTo ( key : string , target : MVCObject , targetKey ?: string , noNotify ?: bool ) : void ;
31
32
changed ( key : string ) : void ;
32
33
get ( key : string ) : any ;
@@ -304,20 +305,23 @@ declare module google.maps {
304
305
305
306
export class Polyline extends MVCObject {
306
307
constructor ( opts ?: PolylineOptions ) ;
308
+ getDraggable ( ) : bool ;
307
309
getEditable ( ) : bool ;
308
310
getMap ( ) : Map ;
309
- getPath ( ) : MVCArray [ ] ;
311
+ getPath ( ) : MVCArray ;
310
312
getVisible ( ) : bool ;
313
+ setDraggable ( draggable : bool ) : void ;
311
314
setEditable ( editable : bool ) : void ;
312
315
setMap ( map : Map ) : void ;
313
316
setOptions ( options : PolylineOptions ) : void ;
314
- setPath ( path : MVCArray [ ] ) : void ;
317
+ setPath ( path : MVCArray ) : void ;
315
318
setPath ( path : LatLng [ ] ) : void ;
316
319
setVisible ( visible : bool ) : void ;
317
320
}
318
321
319
322
export interface PolylineOptions {
320
323
clickable ?: bool ;
324
+ draggable : bool ;
321
325
editable ?: bool ;
322
326
geodesic ?: bool ;
323
327
icons ?: IconSequence [ ] ;
@@ -331,32 +335,36 @@ declare module google.maps {
331
335
}
332
336
333
337
export interface IconSequence {
338
+ fixedRotation ?: bool ;
334
339
icon ?: Symbol ;
335
340
offset ?: string ;
336
341
repeat ?: string ;
337
342
}
338
343
339
344
export class Polygon extends MVCObject {
340
345
constructor ( opts ?: PolygonOptions ) ;
346
+ getDraggable ( ) : bool ;
341
347
getEditable ( ) : bool ;
342
348
getMap ( ) : Map ;
343
- getPath ( ) : MVCArray [ ] ;
344
- getPaths ( ) : MVCArray [ ] [ ] ;
349
+ getPath ( ) : MVCArray ;
350
+ getPaths ( ) : MVCArray [ ] ;
345
351
getVisible ( ) : bool ;
352
+ setDraggable ( draggable : bool ) : void ;
346
353
setEditable ( editable : bool ) : void ;
347
354
setMap ( map : Map ) : void ;
348
355
setOptions ( options : PolygonOptions ) : void ;
349
- setPath ( path : MVCArray [ ] ) : void ;
356
+ setPath ( path : MVCArray ) : void ;
350
357
setPath ( path : LatLng [ ] ) : void ;
358
+ setPaths ( paths : MVCArray ) : void ;
351
359
setPaths ( paths : MVCArray [ ] ) : void ;
352
- setPaths ( paths : MVCArray [ ] [ ] ) : void ;
353
360
setPaths ( path : LatLng [ ] ) : void ;
354
361
setPaths ( path : LatLng [ ] [ ] ) : void ;
355
362
setVisible ( visible : bool ) : void ;
356
363
}
357
364
358
365
export interface PolygonOptions {
359
366
clickable ?: bool ;
367
+ draggable ?: bool ;
360
368
editable ?: bool ;
361
369
fillColor ?: string ;
362
370
fillOpacity ?: number ;
@@ -365,6 +373,7 @@ declare module google.maps {
365
373
paths ?: any [ ] ;
366
374
strokeColor ?: string ;
367
375
strokeOpacity ?: number ;
376
+ strokePosition ?: StrokePosition ;
368
377
strokeWeight ?: number ;
369
378
visible ?: bool ;
370
379
zIndex ?: number ;
@@ -379,10 +388,12 @@ declare module google.maps {
379
388
export class Rectangle extends MVCObject {
380
389
constructor ( opts ?: RectangleOptions ) ;
381
390
getBounds ( ) : LatLngBounds ;
391
+ getDraggable ( ) : bool ;
382
392
getEditable ( ) : bool ;
383
393
getMap ( ) : Map ;
384
394
getVisible ( ) : bool ;
385
395
setBounds ( bounds : LatLngBounds ) : void ;
396
+ setDraggable ( draggable : bool ) : void ;
386
397
setEditable ( editable : bool ) : void ;
387
398
setMap ( map : Map ) : void ;
388
399
setOptions ( options : RectangleOptions ) : void ;
@@ -392,12 +403,14 @@ declare module google.maps {
392
403
export interface RectangleOptions {
393
404
bounds ?: LatLngBounds ;
394
405
clickable ?: bool ;
406
+ draggable ?: bool ;
395
407
editable ?: bool ;
396
408
fillColor ?: string ;
397
409
fillOpacity ?: number ;
398
410
map ?: Map ;
399
411
strokeColor ?: string ;
400
412
strokeOpacity ?: number ;
413
+ strokePosition ?: StrokePosition ;
401
414
strokeWeight ?: number ;
402
415
visible ?: bool ;
403
416
zIndex ?: number ;
@@ -407,11 +420,13 @@ declare module google.maps {
407
420
constructor ( opts ?: CircleOptions ) ;
408
421
getBounds ( ) : LatLngBounds ;
409
422
getCenter ( ) : LatLng ;
423
+ getDraggable ( ) : bool ;
410
424
getEditable ( ) : bool ;
411
425
getMap ( ) : Map ;
412
426
getRadius ( ) : number ;
413
427
getVisible ( ) : bool ;
414
428
setCenter ( center : LatLng ) : void ;
429
+ setDraggable ( draggable : bool ) : void ;
415
430
setEditable ( editable : bool ) : void ;
416
431
setMap ( map : Map ) : void ;
417
432
setOptions ( options : CircleOptions ) : void ;
@@ -422,17 +437,25 @@ declare module google.maps {
422
437
export interface CircleOptions {
423
438
center ?: LatLng ;
424
439
clickable ?: bool ;
440
+ draggable ?: bool ;
425
441
editable ?: bool ;
426
442
fillColor ?: string ;
427
443
fillOpacity ?: number ;
428
444
map ?: Map ;
429
445
radius ?: number ;
430
446
strokeColor ?: string ;
431
447
strokeOpacity ?: number ;
448
+ strokePosition ?: StrokePosition ;
432
449
strokeWeight ?: number ;
433
450
visible ?: bool ;
434
451
zIndex ?: number ;
435
452
}
453
+
454
+ export enum StrokePosition {
455
+ CENTER ,
456
+ INSIDE ,
457
+ OUTSIDE
458
+ }
436
459
437
460
export class GroundOverlay extends MVCObject {
438
461
constructor ( url : string , bounds : LatLngBounds , opts ?: GroundOverlayOptions ) ;
@@ -486,7 +509,7 @@ declare module google.maps {
486
509
}
487
510
488
511
export interface GeocoderRequest {
489
- address : string ;
512
+ address ? : string ;
490
513
bounds ?: LatLngBounds ;
491
514
location ?: LatLng ;
492
515
region ?: string ;
@@ -1099,7 +1122,7 @@ declare module google.maps {
1099
1122
1100
1123
export interface StreetViewPov {
1101
1124
heading ?: number ;
1102
- picth ?: number ;
1125
+ pitch ?: number ;
1103
1126
zoom ?: number ;
1104
1127
}
1105
1128
@@ -1403,28 +1426,28 @@ declare module google.maps {
1403
1426
}
1404
1427
1405
1428
export interface DrawingManagerOptions {
1406
- circleOptions : CircleOptions ;
1407
- drawingControl : bool ;
1408
- drawingControlOptions : DrawingControlOptions ;
1409
- drawingMode : OverlayType ;
1410
- map : Map ;
1411
- markerOptions : MarkerOptions ;
1412
- polygonOptions : PolygonOptions ;
1413
- polylineOptions : PolylineOptions ;
1414
- rectangleOptions : RectangleOptions ;
1429
+ circleOptions ? : CircleOptions ;
1430
+ drawingControl ? : bool ;
1431
+ drawingControlOptions ? : DrawingControlOptions ;
1432
+ drawingMode ? : OverlayType ;
1433
+ map ? : Map ;
1434
+ markerOptions ? : MarkerOptions ;
1435
+ polygonOptions ? : PolygonOptions ;
1436
+ polylineOptions ? : PolylineOptions ;
1437
+ rectangleOptions ? : RectangleOptions ;
1415
1438
}
1416
1439
1417
1440
export interface DrawingControlOptions {
1418
- drawingModes : OverlayType [ ] ;
1419
- position : ControlPosition ;
1441
+ drawingModes ? : OverlayType [ ] ;
1442
+ position ? : ControlPosition ;
1420
1443
}
1421
1444
1422
1445
export interface OverlayCompleteEvent {
1423
1446
overlay : MVCObject ;
1424
1447
type : OverlayType ;
1425
1448
}
1426
1449
1427
- export enum OverlayType {
1450
+ export enum OverlayType {
1428
1451
CIRCLE ,
1429
1452
MARKER ,
1430
1453
POLYGON ,
0 commit comments