Socket
Socket
Sign inDemoInstall

@types/leaflet

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/leaflet - npm Package Compare versions

Comparing version 1.0.40 to 1.0.41

32

leaflet/index.d.ts

@@ -393,3 +393,4 @@ // Type definitions for Leaflet.js 1.0.2

export interface Layer extends Evented {
export class Layer extends Evented {
constructor(options?: LayerOptions);
addTo(map: Map): this;

@@ -506,3 +507,3 @@ remove(): this;

export namespace tileLayer {
export function wms(baseUrl: string, options: WMSOptions): WMS;
export function wms(baseUrl: string, options?: WMSOptions): WMS;
}

@@ -1252,8 +1253,8 @@

setView(center: LatLngExpression, zoom: number, options?: ZoomPanOptions): this;
setZoom(zoom: number, options: ZoomPanOptions): this;
setZoom(zoom: number, options?: ZoomPanOptions): this;
zoomIn(delta?: number, options?: ZoomOptions): this;
zoomOut(delta?: number, options?: ZoomOptions): this;
setZoomAround(latlng: LatLngExpression, zoom: number, options: ZoomOptions): this;
setZoomAround(offset: Point, zoom: number, options: ZoomOptions): this;
fitBounds(bounds: LatLngBoundsExpression, options: FitBoundsOptions): this;
setZoomAround(latlng: LatLngExpression, zoom: number, options?: ZoomOptions): this;
setZoomAround(offset: Point, zoom: number, options?: ZoomOptions): this;
fitBounds(bounds: LatLngBoundsExpression, options?: FitBoundsOptions): this;
fitWorld(options?: FitBoundsOptions): this;

@@ -1351,4 +1352,11 @@ panTo(latlng: LatLngExpression, options?: PanOptions): this;

export class Icon {
constructor(options: IconOptions);
}
export namespace Icon {
export const Default: IconDefault;
export class Default extends Icon {
constructor(options?: IconOptions);
imagePath: string;
}
}

@@ -1367,5 +1375,7 @@

export interface DivIcon extends Icon {}
export class DivIcon extends Icon {
constructor(options?: DivIconOptions);
}
export function divIcon(options: DivIconOptions): DivIcon;
export function divIcon(options?: DivIconOptions): DivIcon;

@@ -1384,3 +1394,4 @@ export interface MarkerOptions extends InteractiveLayerOptions {

export interface Marker extends Layer {
export class Marker extends Layer {
constructor(latlng: LatLngExpression, options?: MarkerOptions);
getLatLng(): LatLng;

@@ -1391,2 +1402,3 @@ setLatLng(latlng: LatLngExpression): this;

setOpacity(opacity: number): this;
getElement(): Element;

@@ -1393,0 +1405,0 @@ // Properties

{
"name": "@types/leaflet",
"version": "1.0.40",
"version": "1.0.41",
"description": "TypeScript definitions for Leaflet.js",

@@ -17,3 +17,3 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "5d00f6bcf648569a45a0fc7833f5153f4240a8e1de7c127e773622fe6b8aa5e5"
"typesPublisherContentHash": "57e34db7a5ee7ac73cf809559e7e901a3e81d53e11a5a7ec5249005ca6dbe4c7"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 15 Dec 2016 16:51:51 GMT
* Last updated: Mon, 19 Dec 2016 14:59:23 GMT
* Library Dependencies: geojson

@@ -14,0 +14,0 @@ * Module Dependencies: none

@@ -24,3 +24,3 @@ {

"hasPackageJson": true,
"contentHash": "5d00f6bcf648569a45a0fc7833f5153f4240a8e1de7c127e773622fe6b8aa5e5"
"contentHash": "57e34db7a5ee7ac73cf809559e7e901a3e81d53e11a5a7ec5249005ca6dbe4c7"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc