Update google.maps.MapPane interface (#13122)

This commit is contained in:
Kiarash
2016-12-08 21:58:18 +01:00
committed by Andy
parent 1e2e0b9354
commit a8a8a493f0
2 changed files with 17 additions and 1 deletions

View File

@@ -140,3 +140,16 @@ var mapTypeStyle: google.maps.MapTypeStyle ={
elementType: 'labels',
stylers: [],
};
/***** OverlayView *****/
var div = document.createElement('div');
var overlay = new google.maps.OverlayView();
var panes = overlay.getPanes();
panes.floatPane.appendChild(div);
panes.floatShadow.appendChild(div);
panes.mapPane.appendChild(div);
panes.markerLayer.appendChild(div);
panes.overlayImage.appendChild(div);
panes.overlayLayer.appendChild(div);
panes.overlayMouseTarget.appendChild(div);
panes.overlayShadow.appendChild(div);

View File

@@ -1,6 +1,6 @@
// Type definitions for Google Maps JavaScript API 3.25
// Project: https://developers.google.com/maps/
// Definitions by: Folia A/S <http://www.folia.dk>, Chris Wrench <https://github.com/cgwrench>
// Definitions by: Folia A/S <http://www.folia.dk>, Chris Wrench <https://github.com/cgwrench>, Kiarash Ghiaseddin <https://github.com/Silver-Connection/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/*
@@ -871,10 +871,13 @@ declare namespace google.maps {
export interface MapPanes {
floatPane: Element;
floatShadow: Element;
mapPane: Element;
markerLayer: Element;
overlayImage: Element;
overlayLayer: Element;
overlayMouseTarget: Element;
overlayShadow: Element;
}
export class MapCanvasProjection extends MVCObject {