@types/leaflet
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -1166,2 +1166,17 @@ // Type definitions for Leaflet.js 1.5 | ||
export abstract class DivOverlay extends Layer { | ||
constructor(options?: DivOverlayOptions, source?: Layer); | ||
getLatLng(): LatLng | undefined; | ||
setLatLng(latlng: LatLngExpression): this; | ||
getContent(): Content | ((source: Layer) => Content) | undefined; | ||
setContent(htmlContent: ((source: Layer) => Content) | Content): this; | ||
getElement(): HTMLElement | undefined; | ||
update(): void; | ||
isOpen(): boolean; | ||
bringToFront(): this; | ||
bringToBack(): this; | ||
options: DivOverlayOptions; | ||
} | ||
export interface PopupOptions extends DivOverlayOptions { | ||
@@ -1184,13 +1199,4 @@ maxWidth?: number; | ||
export class Popup extends Layer { | ||
export class Popup extends DivOverlay { | ||
constructor(options?: PopupOptions, source?: Layer); | ||
getLatLng(): LatLng | undefined; | ||
setLatLng(latlng: LatLngExpression): this; | ||
getContent(): Content | ((source: Layer) => Content) | undefined; | ||
setContent(htmlContent: ((source: Layer) => Content) | Content): this; | ||
getElement(): HTMLElement | undefined; | ||
update(): void; | ||
isOpen(): boolean; | ||
bringToFront(): this; | ||
bringToBack(): this; | ||
openOn(map: Map): this; | ||
@@ -1215,14 +1221,5 @@ | ||
export class Tooltip extends Layer { | ||
export class Tooltip extends DivOverlay { | ||
constructor(options?: TooltipOptions, source?: Layer); | ||
setOpacity(val: number): void; | ||
getLatLng(): LatLng | undefined; | ||
setLatLng(latlng: LatLngExpression): this; | ||
getContent(): Content | undefined; | ||
setContent(htmlContent: ((source: Layer) => Content) | Content): this; | ||
getElement(): HTMLElement | undefined; | ||
update(): void; | ||
isOpen(): boolean; | ||
bringToFront(): this; | ||
bringToBack(): this; | ||
@@ -1229,0 +1226,0 @@ options: TooltipOptions; |
{ | ||
"name": "@types/leaflet", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "TypeScript definitions for Leaflet.js", | ||
@@ -49,4 +49,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "031f014a72b56c3b0e444c94705fe600a6d9cd1af513707f39d68eb63cb27b60", | ||
"typesPublisherContentHash": "221b5169e698aea3ccc86f62390278768130cb46a8c036aa0c475ca7db3daed5", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 14 Aug 2019 19:55:38 GMT | ||
* Last updated: Tue, 24 Sep 2019 17:10:53 GMT | ||
* Dependencies: @types/geojson | ||
@@ -14,0 +14,0 @@ * Global values: L |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57500
1377