mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-24 05:47:44 +08:00
Update google.maps.MapPane interface (#13122)
This commit is contained in:
@@ -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);
|
||||
5
googlemaps/google.maps.d.ts
vendored
5
googlemaps/google.maps.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user