my-openlayer 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/DomPoint.d.ts +1 -1
- package/dist/core/Line.d.ts +2 -2
- package/dist/core/MapBaseLayers.d.ts +1 -1
- package/dist/core/MapTools.d.ts +1 -1
- package/dist/core/Point.d.ts +2 -2
- package/dist/core/Polygon.d.ts +2 -2
- package/dist/{MyOl.d.ts → index.d.ts} +1 -1
- package/dist/{MyOl.js → index.js} +2 -1
- package/package.json +2 -4
- /package/dist/{type.d.ts → types.d.ts} +0 -0
- /package/dist/{type.js → types.js} +0 -0
package/dist/core/DomPoint.d.ts
CHANGED
package/dist/core/Line.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Map from "ol/Map";
|
|
2
|
-
import MyOl from "../
|
|
2
|
+
import MyOl from "../index";
|
|
3
3
|
import { Style } from "ol/style";
|
|
4
|
-
import { OptionsType, MapJSONData } from "../
|
|
4
|
+
import { OptionsType, MapJSONData } from "../types";
|
|
5
5
|
export default class Line {
|
|
6
6
|
private map;
|
|
7
7
|
private myOlMap;
|
package/dist/core/MapTools.d.ts
CHANGED
package/dist/core/Point.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Map from "ol/Map";
|
|
2
2
|
import VectorLayer from "ol/layer/Vector";
|
|
3
3
|
import VectorSource from "ol/source/Vector";
|
|
4
|
-
import MyOl from "../
|
|
5
|
-
import { OptionsType, PointData } from '../
|
|
4
|
+
import MyOl from "../index";
|
|
5
|
+
import { OptionsType, PointData } from '../types';
|
|
6
6
|
export default class Point {
|
|
7
7
|
private myOlMap;
|
|
8
8
|
private map;
|
package/dist/core/Polygon.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import Map from "ol/Map";
|
|
|
2
2
|
import VectorLayer from "ol/layer/Vector";
|
|
3
3
|
import VectorSource from "ol/source/Vector";
|
|
4
4
|
import { Geometry } from "ol/geom";
|
|
5
|
-
import MyOl from "../
|
|
6
|
-
import { OptionsType, MapJSONData } from '../
|
|
5
|
+
import MyOl from "../index";
|
|
6
|
+
import { OptionsType, MapJSONData } from '../types';
|
|
7
7
|
export default class Polygon {
|
|
8
8
|
private myOlMap;
|
|
9
9
|
map: Map;
|
|
@@ -4,7 +4,7 @@ import Polygon from "./core/Polygon";
|
|
|
4
4
|
import Point from "./core/Point";
|
|
5
5
|
import Line from "./core/Line";
|
|
6
6
|
import MapTools from "./core/MapTools";
|
|
7
|
-
import { OptionsType, MapInitType, MapbaseType } from './
|
|
7
|
+
import { OptionsType, MapInitType, MapbaseType } from './types';
|
|
8
8
|
export default class MyOl {
|
|
9
9
|
map: Map;
|
|
10
10
|
private baseLayers;
|
|
@@ -77,7 +77,8 @@ class MyOl {
|
|
|
77
77
|
this.baseLayers = new MapBaseLayers_1.default(this.map, {
|
|
78
78
|
zIndex: 1,
|
|
79
79
|
mapClip: !!this.options.mapClipData,
|
|
80
|
-
mapClipData: this.options.mapClipData
|
|
80
|
+
mapClipData: this.options.mapClipData,
|
|
81
|
+
token: this.options.token || ''
|
|
81
82
|
});
|
|
82
83
|
return this.baseLayers;
|
|
83
84
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my-openlayer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"
|
|
10
|
-
"LICENSE",
|
|
11
|
-
"dist"
|
|
9
|
+
"dist/*"
|
|
12
10
|
],
|
|
13
11
|
"scripts": {
|
|
14
12
|
"dev": "vite",
|
|
File without changes
|
|
File without changes
|