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.
@@ -1,4 +1,4 @@
1
- import MyOl from "../MyOl";
1
+ import MyOl from "../index";
2
2
  interface Options {
3
3
  Template: any;
4
4
  lgtd: number;
@@ -1,7 +1,7 @@
1
1
  import Map from "ol/Map";
2
- import MyOl from "../MyOl";
2
+ import MyOl from "../index";
3
3
  import { Style } from "ol/style";
4
- import { OptionsType, MapJSONData } from "../type";
4
+ import { OptionsType, MapJSONData } from "../types";
5
5
  export default class Line {
6
6
  private map;
7
7
  private myOlMap;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import Map from "ol/Map";
5
5
  import WMTSTileGrid from "ol/tilegrid/WMTS";
6
- import { MapbaseType, MapJSONData } from "../type";
6
+ import { MapbaseType, MapJSONData } from "../types";
7
7
  interface MapLayersOptions {
8
8
  zIndex?: number;
9
9
  mapClip?: boolean;
@@ -1,5 +1,5 @@
1
1
  import Map from "ol/Map";
2
- import { MapJSONData } from "../type";
2
+ import { MapJSONData } from "../types";
3
3
  export default class MapTools {
4
4
  private map;
5
5
  constructor(map: Map);
@@ -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 "../MyOl";
5
- import { OptionsType, PointData } from '../type';
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;
@@ -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 "../MyOl";
6
- import { OptionsType, MapJSONData } from '../type';
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 './type';
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.6",
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
- "package.json",
10
- "LICENSE",
11
- "dist"
9
+ "dist/*"
12
10
  ],
13
11
  "scripts": {
14
12
  "dev": "vite",
File without changes
File without changes