@artstesh/maps 1.1.37 → 1.2.1
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/README.md +7 -0
- package/dist/README.md +24 -24
- package/dist/bundles/maps-components-src-map.umd.js +4 -8
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +4 -8
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/messages/executors/calculate-area.executor.js +1 -1
- package/dist/esm2015/map/messages/executors/generate-zoom-control.executor.js +1 -1
- package/dist/esm2015/map/services/drawing/drawing.service.js +5 -2
- package/dist/esm2015/map/services/map-postboy.service.js +1 -9
- package/dist/esm2015/map/services/map-state.service.js +2 -2
- package/dist/esm2015/src/map/messages/executors/calculate-area.executor.js +1 -1
- package/dist/esm2015/src/map/messages/executors/generate-zoom-control.executor.js +1 -1
- package/dist/esm2015/src/map/services/drawing/drawing.service.js +5 -2
- package/dist/esm2015/src/map/services/map-postboy.service.js +1 -9
- package/dist/esm2015/src/map/services/map-state.service.js +2 -2
- package/dist/fesm2015/maps-components-src-map.js +4 -7
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +4 -7
- package/dist/fesm2015/maps-components.js.map +1 -1
- package/dist/map/messages/executors/calculate-area.executor.d.ts +1 -3
- package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +2 -2
- package/dist/package.json +1 -1
- package/dist/src/map/messages/executors/calculate-area.executor.d.ts +1 -3
- package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +2 -2
- package/package.json +13 -3
package/README.md
CHANGED
|
@@ -9,3 +9,10 @@ The main purpose of the project is to make easier the process of using of [openl
|
|
|
9
9
|
### License
|
|
10
10
|
|
|
11
11
|
This project is licensed under the MIT License
|
|
12
|
+
|
|
13
|
+
### Support status
|
|
14
|
+
|
|
15
|
+
This line targets Angular 12, which is end-of-life, and is **archived**: it receives no
|
|
16
|
+
further features, fixes, ports, or releases. Migrate to a supported Angular major and
|
|
17
|
+
install the matching `@artstesh/maps` line - see the version support table at
|
|
18
|
+
https://maps.artstesh.ru.
|
package/dist/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# PlatformNgxComponents
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project maps-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project maps-components`.
|
|
8
|
-
> Note: Don't forget to add `--project maps-components` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build maps-components` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build maps-components`, go to the dist folder `cd dist/maps-components` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test maps-components` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# PlatformNgxComponents
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project maps-components` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project maps-components`.
|
|
8
|
+
> Note: Don't forget to add `--project maps-components` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build maps-components` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build maps-components`, go to the dist folder `cd dist/maps-components` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test maps-components` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -1566,13 +1566,7 @@
|
|
|
1566
1566
|
var MapPostboyService = /** @class */ (function (_super) {
|
|
1567
1567
|
__extends(MapPostboyService, _super);
|
|
1568
1568
|
function MapPostboyService() {
|
|
1569
|
-
|
|
1570
|
-
_this.addLocker({
|
|
1571
|
-
locker: StartDrawingCommand.ID,
|
|
1572
|
-
unlocker: DrawingFinishedEvent.ID,
|
|
1573
|
-
locking: [MapClickEvent.ID],
|
|
1574
|
-
});
|
|
1575
|
-
return _this;
|
|
1569
|
+
return _super.call(this) || this;
|
|
1576
1570
|
}
|
|
1577
1571
|
return MapPostboyService;
|
|
1578
1572
|
}(postboy.PostboyService));
|
|
@@ -1731,7 +1725,7 @@
|
|
|
1731
1725
|
if (!this.map)
|
|
1732
1726
|
return null;
|
|
1733
1727
|
var _c = __read(this.map.getView().getCenter(), 2), longitude = _c[0], latitude = _c[1];
|
|
1734
|
-
var zoom =
|
|
1728
|
+
var zoom = this.map.getView().getZoom();
|
|
1735
1729
|
var extent = this.map.getView().calculateExtent();
|
|
1736
1730
|
return { longitude: longitude, latitude: latitude, zoom: zoom, extent: extent };
|
|
1737
1731
|
};
|
|
@@ -1910,6 +1904,7 @@
|
|
|
1910
1904
|
DrawingService.prototype.observeDrawing = function () {
|
|
1911
1905
|
var _this = this;
|
|
1912
1906
|
this.postboy.sub(StartDrawingCommand).subscribe(function (ev) {
|
|
1907
|
+
_this.postboy.exec(new postboy.LockMessage(MapClickEvent));
|
|
1913
1908
|
_this.draw(function (l) {
|
|
1914
1909
|
var _a;
|
|
1915
1910
|
if (!l || !_this.map) {
|
|
@@ -1960,6 +1955,7 @@
|
|
|
1960
1955
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.removeInteraction(this.drawInteraction);
|
|
1961
1956
|
layer === null || layer === void 0 ? void 0 : layer.setSource(new source.Vector({}));
|
|
1962
1957
|
}
|
|
1958
|
+
this.postboy.exec(new postboy.UnlockMessage(MapClickEvent));
|
|
1963
1959
|
setTimeout(function () { return _this.postboy.fire(new DrawingFinishedEvent()); }, 300);
|
|
1964
1960
|
};
|
|
1965
1961
|
return DrawingService;
|