Skip to content

Commit b085b55

Browse files
author
Matthew Meehan
committed
matched changes with master.
1 parent 1b7e32e commit b085b55

File tree

8 files changed

+57
-54
lines changed

8 files changed

+57
-54
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
22
node_modules/
33
npm-debug.log
4-
docs/_site/
4+
docs/_site/
5+
dist/

dist/vue2-leaflet.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/vue2-leaflet.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/vue2-leaflet.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/package-lock.json

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue2-leaflet",
3-
"version": "1.1.0-next.6",
3+
"version": "1.1.0",
44
"description": "Vue2 leaflet library",
55
"author": "Mickael Bouchaud",
66
"license": "MIT",

types/index.d.ts

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ declare module "vue2-leaflet" {
5151
}
5252
class Control extends Vue {
5353
position: "topleft" | "topright" | "bottomleft" | "bottomright";
54-
options: L.ControlOptions;
5554
}
5655
class GridLayer extends Mixins(Layer) {
5756
/**
@@ -67,7 +66,7 @@ declare module "vue2-leaflet" {
6766
*/
6867
zIndex: number;
6968
}
70-
class ImageOverlay extends Mixins(Layer) {
69+
class ImageOverlay extends Mixins(Layer, InteractiveLayer) {
7170
// props
7271
url: string;
7372
/**
@@ -156,6 +155,9 @@ declare module "vue2-leaflet" {
156155
removeLayer(layer: any, alreadyRemoved?: boolean): void;
157156
setLayerType(newVal: string | null, oldVal?: string | null): void;
158157
}
158+
class Options extends Vue {
159+
options: any;
160+
}
159161
class Path extends Mixins(Layer, InteractiveLayer) {
160162
// props
161163
/**
@@ -250,21 +252,15 @@ declare module "vue2-leaflet" {
250252
class Popper extends Vue {
251253
// props
252254
/**
253-
* @default ''
255+
* @default null
254256
*/
255-
content: string;
257+
content: string | null;
256258
/**
257259
* @default {}
258260
*/
259-
options: any;
260-
/**
261-
* @default false
262-
*/
263-
dynamic: boolean;
264-
// data
265-
ready: boolean;
261+
popperOptions: any;
266262
// methods
267-
setContent(): void;
263+
setContent(newVal?: string | null): void;
268264
}
269265
class TileLayer extends Mixins(GridLayer) {
270266
// props
@@ -279,8 +275,7 @@ declare module "vue2-leaflet" {
279275
/**
280276
* @default {}
281277
*/
282-
options: L.TileLayerOptions;
283-
layerType?: string;
278+
tileLayerOptions: L.TileLayerOptions;
284279
}
285280
class TileLayerWMS extends Mixins(TileLayer) {
286281
/**
@@ -333,22 +328,22 @@ declare module "vue2-leaflet" {
333328
mapObject: L.CircleMarker;
334329
parentContainer: any;
335330
}
336-
class LControl extends Mixins(Control) {
331+
class LControl extends Mixins(Control, Options) {
337332
mapObject: L.Control & {
338333
element?: HTMLElement;
339334
onAdd(): HTMLElement;
340335
setElement(el: HTMLElement): void;
341336
};
342337
parentContainer: any;
343338
}
344-
class LControlAttribution extends Mixins(Control) {
339+
class LControlAttribution extends Mixins(Control, Options) {
345340
/**
346341
* @default null
347342
*/
348343
prefix: string | null;
349344
mapObject: L.Control.Attribution;
350345
}
351-
class LControlLayers extends Mixins(Control) {
346+
class LControlLayers extends Mixins(Control, Options) {
352347
// Props
353348
/**
354349
* @default true
@@ -375,7 +370,7 @@ declare module "vue2-leaflet" {
375370
addLayer(layer: any): void;
376371
removeLayer(layer: any): void;
377372
}
378-
class LControlScale extends Mixins(Control) {
373+
class LControlScale extends Mixins(Control, Options) {
379374
// props
380375
/**
381376
* @default 100
@@ -397,7 +392,7 @@ declare module "vue2-leaflet" {
397392
// data
398393
mapObject: L.Control.Scale;
399394
}
400-
class LControlZoom extends Mixins(Control) {
395+
class LControlZoom extends Mixins(Control, Options) {
401396
// props
402397
/**
403398
* @default '+'
@@ -471,12 +466,12 @@ declare module "vue2-leaflet" {
471466
mapObject: L.ImageOverlay;
472467
parentContainer: any;
473468
}
474-
class LLayerGroup extends LayerGroup {
469+
class LLayerGroup extends Mixins(LayerGroup) {
475470
ready: boolean;
476471
mapObject: L.LayerGroup;
477472
parentContainer: any;
478473
}
479-
class LMap extends Vue {
474+
class LMap extends Mixins(Options) {
480475
// props
481476
/**
482477
* @default [0, 0]
@@ -564,7 +559,7 @@ declare module "vue2-leaflet" {
564559

565560
moveEndHandler(): void;
566561
}
567-
class LMarker extends Mixins(Layer) {
562+
class LMarker extends Mixins(Layer, Options) {
568563
// props
569564
/**
570565
* @default 'markerPane'
@@ -624,7 +619,7 @@ declare module "vue2-leaflet" {
624619
mapObject: L.Polyline;
625620
parentContainer: any;
626621
}
627-
class LPopup extends Mixins(Popper) {
622+
class LPopup extends Mixins(Popper, Options) {
628623
// props
629624
/**
630625
* @default []
@@ -647,7 +642,7 @@ declare module "vue2-leaflet" {
647642
mapObject: L.Rectangle;
648643
parentContainer: any;
649644
}
650-
class LTileLayer extends Mixins(TileLayer) {
645+
class LTileLayer extends Mixins(TileLayer, Options) {
651646
// props
652647
/**
653648
* @default null
@@ -663,12 +658,12 @@ declare module "vue2-leaflet" {
663658
mapObject: L.TileLayer;
664659
parentContainer: any;
665660
}
666-
class LTooltip extends Mixins(Popper) {
661+
class LTooltip extends Mixins(Popper, Options) {
667662
// data
668663
mapObject: L.Tooltip;
669664
parentContainer: any;
670665
}
671-
class LWMSTileLayer extends Mixins(TileLayerWMS) {
666+
class LWMSTileLayer extends Mixins(TileLayerWMS, Options) {
672667
// props
673668
/**
674669
* @default null

0 commit comments

Comments
 (0)