@artstesh/maps 1.0.0 → 3.0.0
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/{esm2015/map/common/destructible.component.js → esm2020/map/common/destructible.component.mjs} +4 -4
- package/dist/esm2020/map/map-plate/features/markers/markers.component.mjs +41 -0
- package/dist/{esm2015/map/map-plate/layers/feature-layer/feature-layer.component.js → esm2020/map/map-plate/layers/feature-layer/feature-layer.component.mjs} +5 -10
- package/dist/{esm2015/map/map-plate/layers/feature-layer/feature-layer.factory.js → esm2020/map/map-plate/layers/feature-layer/feature-layer.factory.mjs} +4 -4
- package/dist/esm2020/map/map-plate/layers/feature-layer/feature-layer.settings.mjs +47 -0
- package/dist/esm2020/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.mjs +55 -0
- package/dist/esm2020/map/map-plate/layers/tile-layer/tile-layer.component.mjs +15 -0
- package/dist/esm2020/map/map-plate/layers/tile-layer/tile-layer.settings.mjs +41 -0
- package/dist/esm2020/map/map-plate/map-plate.component.mjs +59 -0
- package/dist/esm2020/map/map-plate/map-plate.factory.service.mjs +27 -0
- package/dist/{esm2015/map/map.module.js → esm2020/map/map.module.mjs} +5 -5
- package/dist/esm2020/map/models/map-settings.mjs +53 -0
- package/dist/esm2020/map/services/map-management.service.mjs +59 -0
- package/dist/{esm2015/map/services/map-postboy.service.js → esm2020/map/services/map-postboy.service.mjs} +4 -4
- package/dist/{esm2015/map/services/map-state.service.js → esm2020/map/services/map-state.service.mjs} +4 -4
- package/dist/{esm2015/map/services/message-registrator.service.js → esm2020/map/services/message-registrator.service.mjs} +4 -4
- package/dist/{esm2015/map/services/service.collector.js → esm2020/map/services/service.collector.mjs} +4 -4
- package/dist/{esm2015/src/map/common/destructible.component.js → esm2020/src/map/common/destructible.component.mjs} +4 -4
- package/dist/esm2020/src/map/map-plate/features/markers/markers.component.mjs +41 -0
- package/dist/{esm2015/src/map/map-plate/layers/feature-layer/feature-layer.component.js → esm2020/src/map/map-plate/layers/feature-layer/feature-layer.component.mjs} +5 -10
- package/dist/{esm2015/src/map/map-plate/layers/feature-layer/feature-layer.factory.js → esm2020/src/map/map-plate/layers/feature-layer/feature-layer.factory.mjs} +4 -4
- package/dist/esm2020/src/map/map-plate/layers/feature-layer/feature-layer.settings.mjs +47 -0
- package/dist/esm2020/src/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.mjs +55 -0
- package/dist/esm2020/src/map/map-plate/layers/tile-layer/tile-layer.component.mjs +15 -0
- package/dist/esm2020/src/map/map-plate/layers/tile-layer/tile-layer.settings.mjs +41 -0
- package/dist/{esm2015/map/map-plate/map-plate.component.js → esm2020/src/map/map-plate/map-plate.component.mjs} +7 -13
- package/dist/esm2020/src/map/map-plate/map-plate.factory.service.mjs +27 -0
- package/dist/{esm2015/src/map/map.module.js → esm2020/src/map/map.module.mjs} +5 -5
- package/dist/esm2020/src/map/models/map-settings.mjs +53 -0
- package/dist/esm2020/src/map/services/map-management.service.mjs +59 -0
- package/dist/{esm2015/src/map/services/map-postboy.service.js → esm2020/src/map/services/map-postboy.service.mjs} +4 -4
- package/dist/{esm2015/src/map/services/map-state.service.js → esm2020/src/map/services/map-state.service.mjs} +4 -4
- package/dist/{esm2015/src/map/services/message-registrator.service.js → esm2020/src/map/services/message-registrator.service.mjs} +4 -4
- package/dist/{esm2015/src/map/services/service.collector.js → esm2020/src/map/services/service.collector.mjs} +4 -4
- package/dist/fesm2015/{maps-components-src-map.js → maps-components-src-map.mjs} +50 -76
- package/dist/fesm2015/maps-components-src-map.mjs.map +1 -0
- package/dist/fesm2015/{maps-components.js → maps-components.mjs} +50 -76
- package/dist/fesm2015/maps-components.mjs.map +1 -0
- package/dist/fesm2020/maps-components-src-map.mjs +697 -0
- package/dist/fesm2020/maps-components-src-map.mjs.map +1 -0
- package/dist/fesm2020/maps-components.mjs +701 -0
- package/dist/fesm2020/maps-components.mjs.map +1 -0
- package/dist/map/common/destructible.component.d.ts +1 -1
- package/dist/map/map-plate/features/markers/markers.component.d.ts +1 -1
- package/dist/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +1 -1
- package/dist/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +1 -1
- package/dist/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +1 -1
- package/dist/map/map-plate/map-plate.component.d.ts +1 -1
- package/dist/package.json +29 -8
- package/dist/src/map/common/destructible.component.d.ts +1 -1
- package/dist/src/map/map-plate/features/markers/markers.component.d.ts +1 -1
- package/dist/src/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +1 -1
- package/dist/src/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +1 -1
- package/dist/src/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +1 -1
- package/dist/src/map/map-plate/map-plate.component.d.ts +1 -1
- package/package.json +26 -25
- package/dist/bundles/maps-components-src-map.umd.js +0 -1349
- package/dist/bundles/maps-components-src-map.umd.js.map +0 -1
- package/dist/bundles/maps-components.umd.js +0 -1353
- package/dist/bundles/maps-components.umd.js.map +0 -1
- package/dist/esm2015/map/map-plate/features/markers/markers.component.js +0 -47
- package/dist/esm2015/map/map-plate/layers/feature-layer/feature-layer.settings.js +0 -47
- package/dist/esm2015/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.js +0 -61
- package/dist/esm2015/map/map-plate/layers/tile-layer/tile-layer.component.js +0 -20
- package/dist/esm2015/map/map-plate/layers/tile-layer/tile-layer.settings.js +0 -41
- package/dist/esm2015/map/map-plate/map-plate.factory.service.js +0 -27
- package/dist/esm2015/map/models/map-settings.js +0 -53
- package/dist/esm2015/map/services/map-management.service.js +0 -61
- package/dist/esm2015/src/map/map-plate/features/markers/markers.component.js +0 -47
- package/dist/esm2015/src/map/map-plate/layers/feature-layer/feature-layer.settings.js +0 -47
- package/dist/esm2015/src/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.js +0 -61
- package/dist/esm2015/src/map/map-plate/layers/tile-layer/tile-layer.component.js +0 -20
- package/dist/esm2015/src/map/map-plate/layers/tile-layer/tile-layer.settings.js +0 -41
- package/dist/esm2015/src/map/map-plate/map-plate.component.js +0 -65
- package/dist/esm2015/src/map/map-plate/map-plate.factory.service.js +0 -27
- package/dist/esm2015/src/map/models/map-settings.js +0 -53
- package/dist/esm2015/src/map/services/map-management.service.js +0 -61
- package/dist/fesm2015/maps-components-src-map.js.map +0 -1
- package/dist/fesm2015/maps-components.js.map +0 -1
- package/dist/src/map/package.json +0 -10
- /package/dist/{esm2015/map/common/id.generator.js → esm2020/map/common/id.generator.mjs} +0 -0
- /package/dist/{esm2015/map/helpers/index.js → esm2020/map/helpers/index.mjs} +0 -0
- /package/dist/{esm2015/map/helpers/marker-style.helper.js → esm2020/map/helpers/marker-style.helper.mjs} +0 -0
- /package/dist/{esm2015/map/map-plate/features/index.js → esm2020/map/map-plate/features/index.mjs} +0 -0
- /package/dist/{esm2015/map/map-plate/layers/index.js → esm2020/map/map-plate/layers/index.mjs} +0 -0
- /package/dist/{esm2015/map/messages/commands/add-layer.command.js → esm2020/map/messages/commands/add-layer.command.mjs} +0 -0
- /package/dist/{esm2015/map/messages/commands/clear-layer.command.js → esm2020/map/messages/commands/clear-layer.command.mjs} +0 -0
- /package/dist/{esm2015/map/messages/commands/place-layer-features.command.js → esm2020/map/messages/commands/place-layer-features.command.mjs} +0 -0
- /package/dist/{esm2015/map/messages/commands/remove-layer.command.js → esm2020/map/messages/commands/remove-layer.command.mjs} +0 -0
- /package/dist/{esm2015/map/messages/events/map-rendered.event.js → esm2020/map/messages/events/map-rendered.event.mjs} +0 -0
- /package/dist/{esm2015/map/messages/generic-message.js → esm2020/map/messages/generic-message.mjs} +0 -0
- /package/dist/{esm2015/map/messages/index.js → esm2020/map/messages/index.mjs} +0 -0
- /package/dist/{esm2015/map/models/index.js → esm2020/map/models/index.mjs} +0 -0
- /package/dist/{esm2015/map/models/map-lyrs.enum.js → esm2020/map/models/map-lyrs.enum.mjs} +0 -0
- /package/dist/{esm2015/map/models/marker-model.js → esm2020/map/models/marker-model.mjs} +0 -0
- /package/dist/{esm2015/map/public-api.js → esm2020/map/public-api.mjs} +0 -0
- /package/dist/{esm2015/maps-components.js → esm2020/maps-components.mjs} +0 -0
- /package/dist/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- /package/dist/{esm2015/src/map/common/id.generator.js → esm2020/src/map/common/id.generator.mjs} +0 -0
- /package/dist/{esm2015/src/map/helpers/index.js → esm2020/src/map/helpers/index.mjs} +0 -0
- /package/dist/{esm2015/src/map/helpers/marker-style.helper.js → esm2020/src/map/helpers/marker-style.helper.mjs} +0 -0
- /package/dist/{esm2015/src/map/map-plate/features/index.js → esm2020/src/map/map-plate/features/index.mjs} +0 -0
- /package/dist/{esm2015/src/map/map-plate/layers/index.js → esm2020/src/map/map-plate/layers/index.mjs} +0 -0
- /package/dist/{esm2015/src/map/maps-components-src-map.js → esm2020/src/map/maps-components-src-map.mjs} +0 -0
- /package/dist/{esm2015/src/map/messages/commands/add-layer.command.js → esm2020/src/map/messages/commands/add-layer.command.mjs} +0 -0
- /package/dist/{esm2015/src/map/messages/commands/clear-layer.command.js → esm2020/src/map/messages/commands/clear-layer.command.mjs} +0 -0
- /package/dist/{esm2015/src/map/messages/commands/place-layer-features.command.js → esm2020/src/map/messages/commands/place-layer-features.command.mjs} +0 -0
- /package/dist/{esm2015/src/map/messages/commands/remove-layer.command.js → esm2020/src/map/messages/commands/remove-layer.command.mjs} +0 -0
- /package/dist/{esm2015/src/map/messages/events/map-rendered.event.js → esm2020/src/map/messages/events/map-rendered.event.mjs} +0 -0
- /package/dist/{esm2015/src/map/messages/generic-message.js → esm2020/src/map/messages/generic-message.mjs} +0 -0
- /package/dist/{esm2015/src/map/messages/index.js → esm2020/src/map/messages/index.mjs} +0 -0
- /package/dist/{esm2015/src/map/models/index.js → esm2020/src/map/models/index.mjs} +0 -0
- /package/dist/{esm2015/src/map/models/map-lyrs.enum.js → esm2020/src/map/models/map-lyrs.enum.mjs} +0 -0
- /package/dist/{esm2015/src/map/models/marker-model.js → esm2020/src/map/models/marker-model.mjs} +0 -0
- /package/dist/{esm2015/src/map/public-api.js → esm2020/src/map/public-api.mjs} +0 -0
- /package/dist/{maps-components.d.ts → index.d.ts} +0 -0
- /package/dist/src/map/{maps-components-src-map.d.ts → index.d.ts} +0 -0
|
@@ -1,1349 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ol'), require('ol/geom'), require('ol/proj'), require('rxjs'), require('ol/Map'), require('ol/View'), require('ol/layer/Tile'), require('ol/source/OSM'), require('rxjs/operators'), require('ol/source'), require('ol/layer'), require('ol/style/Style'), require('ol/style')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('maps-components/src/map', ['exports', '@angular/core', '@angular/common', 'ol', 'ol/geom', 'ol/proj', 'rxjs', 'ol/Map', 'ol/View', 'ol/layer/Tile', 'ol/source/OSM', 'rxjs/operators', 'ol/source', 'ol/layer', 'ol/style/Style', 'ol/style'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["maps-components"] = global["maps-components"] || {}, global["maps-components"].src = global["maps-components"].src || {}, global["maps-components"].src.map = {}), global.ng.core, global.ng.common, global.ol, global.geom, global.proj, global.rxjs, global.Map, global.View, global.TileLayer, global.OSM, global.rxjs.operators, global.source, global.layer, global.Style, global.style));
|
|
5
|
-
})(this, (function (exports, i0, i5, ol, geom, proj, rxjs, Map, View, TileLayer, OSM, operators, source, layer, Style, style) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
29
|
-
var Map__default = /*#__PURE__*/_interopDefaultLegacy(Map);
|
|
30
|
-
var View__default = /*#__PURE__*/_interopDefaultLegacy(View);
|
|
31
|
-
var TileLayer__default = /*#__PURE__*/_interopDefaultLegacy(TileLayer);
|
|
32
|
-
var OSM__default = /*#__PURE__*/_interopDefaultLegacy(OSM);
|
|
33
|
-
var Style__default = /*#__PURE__*/_interopDefaultLegacy(Style);
|
|
34
|
-
|
|
35
|
-
var DestructibleComponent = /** @class */ (function () {
|
|
36
|
-
function DestructibleComponent() {
|
|
37
|
-
this.subs = [];
|
|
38
|
-
}
|
|
39
|
-
DestructibleComponent.prototype.ngOnDestroy = function () {
|
|
40
|
-
this.subs.forEach(function (s) { return s.unsubscribe(); });
|
|
41
|
-
if (this.onDestroy)
|
|
42
|
-
this.onDestroy();
|
|
43
|
-
};
|
|
44
|
-
return DestructibleComponent;
|
|
45
|
-
}());
|
|
46
|
-
DestructibleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DestructibleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
47
|
-
DestructibleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DestructibleComponent, selector: "ng-component", ngImport: i0__namespace, template: '', isInline: true });
|
|
48
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DestructibleComponent, decorators: [{
|
|
49
|
-
type: i0.Component,
|
|
50
|
-
args: [{ template: '' }]
|
|
51
|
-
}] });
|
|
52
|
-
|
|
53
|
-
/******************************************************************************
|
|
54
|
-
Copyright (c) Microsoft Corporation.
|
|
55
|
-
|
|
56
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
57
|
-
purpose with or without fee is hereby granted.
|
|
58
|
-
|
|
59
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
60
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
61
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
62
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
63
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
64
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
65
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
66
|
-
***************************************************************************** */
|
|
67
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
68
|
-
var extendStatics = function (d, b) {
|
|
69
|
-
extendStatics = Object.setPrototypeOf ||
|
|
70
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
71
|
-
function (d, b) { for (var p in b)
|
|
72
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
73
|
-
d[p] = b[p]; };
|
|
74
|
-
return extendStatics(d, b);
|
|
75
|
-
};
|
|
76
|
-
function __extends(d, b) {
|
|
77
|
-
if (typeof b !== "function" && b !== null)
|
|
78
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79
|
-
extendStatics(d, b);
|
|
80
|
-
function __() { this.constructor = d; }
|
|
81
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
82
|
-
}
|
|
83
|
-
var __assign = function () {
|
|
84
|
-
__assign = Object.assign || function __assign(t) {
|
|
85
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
86
|
-
s = arguments[i];
|
|
87
|
-
for (var p in s)
|
|
88
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
89
|
-
t[p] = s[p];
|
|
90
|
-
}
|
|
91
|
-
return t;
|
|
92
|
-
};
|
|
93
|
-
return __assign.apply(this, arguments);
|
|
94
|
-
};
|
|
95
|
-
function __rest(s, e) {
|
|
96
|
-
var t = {};
|
|
97
|
-
for (var p in s)
|
|
98
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
99
|
-
t[p] = s[p];
|
|
100
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
101
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
102
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
103
|
-
t[p[i]] = s[p[i]];
|
|
104
|
-
}
|
|
105
|
-
return t;
|
|
106
|
-
}
|
|
107
|
-
function __decorate(decorators, target, key, desc) {
|
|
108
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
109
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
110
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
111
|
-
else
|
|
112
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
113
|
-
if (d = decorators[i])
|
|
114
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
115
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
116
|
-
}
|
|
117
|
-
function __param(paramIndex, decorator) {
|
|
118
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
119
|
-
}
|
|
120
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
121
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
122
|
-
throw new TypeError("Function expected"); return f; }
|
|
123
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
124
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
125
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
126
|
-
var _, done = false;
|
|
127
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
128
|
-
var context = {};
|
|
129
|
-
for (var p in contextIn)
|
|
130
|
-
context[p] = p === "access" ? {} : contextIn[p];
|
|
131
|
-
for (var p in contextIn.access)
|
|
132
|
-
context.access[p] = contextIn.access[p];
|
|
133
|
-
context.addInitializer = function (f) { if (done)
|
|
134
|
-
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
135
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
136
|
-
if (kind === "accessor") {
|
|
137
|
-
if (result === void 0)
|
|
138
|
-
continue;
|
|
139
|
-
if (result === null || typeof result !== "object")
|
|
140
|
-
throw new TypeError("Object expected");
|
|
141
|
-
if (_ = accept(result.get))
|
|
142
|
-
descriptor.get = _;
|
|
143
|
-
if (_ = accept(result.set))
|
|
144
|
-
descriptor.set = _;
|
|
145
|
-
if (_ = accept(result.init))
|
|
146
|
-
initializers.unshift(_);
|
|
147
|
-
}
|
|
148
|
-
else if (_ = accept(result)) {
|
|
149
|
-
if (kind === "field")
|
|
150
|
-
initializers.unshift(_);
|
|
151
|
-
else
|
|
152
|
-
descriptor[key] = _;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
if (target)
|
|
156
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
157
|
-
done = true;
|
|
158
|
-
}
|
|
159
|
-
;
|
|
160
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
161
|
-
var useValue = arguments.length > 2;
|
|
162
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
163
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
164
|
-
}
|
|
165
|
-
return useValue ? value : void 0;
|
|
166
|
-
}
|
|
167
|
-
;
|
|
168
|
-
function __propKey(x) {
|
|
169
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
170
|
-
}
|
|
171
|
-
;
|
|
172
|
-
function __setFunctionName(f, name, prefix) {
|
|
173
|
-
if (typeof name === "symbol")
|
|
174
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
175
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
176
|
-
}
|
|
177
|
-
;
|
|
178
|
-
function __metadata(metadataKey, metadataValue) {
|
|
179
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
180
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
181
|
-
}
|
|
182
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
183
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
184
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
185
|
-
function fulfilled(value) { try {
|
|
186
|
-
step(generator.next(value));
|
|
187
|
-
}
|
|
188
|
-
catch (e) {
|
|
189
|
-
reject(e);
|
|
190
|
-
} }
|
|
191
|
-
function rejected(value) { try {
|
|
192
|
-
step(generator["throw"](value));
|
|
193
|
-
}
|
|
194
|
-
catch (e) {
|
|
195
|
-
reject(e);
|
|
196
|
-
} }
|
|
197
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
198
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
function __generator(thisArg, body) {
|
|
202
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
203
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
204
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
205
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
206
|
-
function step(op) {
|
|
207
|
-
if (f)
|
|
208
|
-
throw new TypeError("Generator is already executing.");
|
|
209
|
-
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
210
|
-
try {
|
|
211
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
212
|
-
return t;
|
|
213
|
-
if (y = 0, t)
|
|
214
|
-
op = [op[0] & 2, t.value];
|
|
215
|
-
switch (op[0]) {
|
|
216
|
-
case 0:
|
|
217
|
-
case 1:
|
|
218
|
-
t = op;
|
|
219
|
-
break;
|
|
220
|
-
case 4:
|
|
221
|
-
_.label++;
|
|
222
|
-
return { value: op[1], done: false };
|
|
223
|
-
case 5:
|
|
224
|
-
_.label++;
|
|
225
|
-
y = op[1];
|
|
226
|
-
op = [0];
|
|
227
|
-
continue;
|
|
228
|
-
case 7:
|
|
229
|
-
op = _.ops.pop();
|
|
230
|
-
_.trys.pop();
|
|
231
|
-
continue;
|
|
232
|
-
default:
|
|
233
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
234
|
-
_ = 0;
|
|
235
|
-
continue;
|
|
236
|
-
}
|
|
237
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
238
|
-
_.label = op[1];
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
242
|
-
_.label = t[1];
|
|
243
|
-
t = op;
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
if (t && _.label < t[2]) {
|
|
247
|
-
_.label = t[2];
|
|
248
|
-
_.ops.push(op);
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
if (t[2])
|
|
252
|
-
_.ops.pop();
|
|
253
|
-
_.trys.pop();
|
|
254
|
-
continue;
|
|
255
|
-
}
|
|
256
|
-
op = body.call(thisArg, _);
|
|
257
|
-
}
|
|
258
|
-
catch (e) {
|
|
259
|
-
op = [6, e];
|
|
260
|
-
y = 0;
|
|
261
|
-
}
|
|
262
|
-
finally {
|
|
263
|
-
f = t = 0;
|
|
264
|
-
}
|
|
265
|
-
if (op[0] & 5)
|
|
266
|
-
throw op[1];
|
|
267
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
271
|
-
if (k2 === undefined)
|
|
272
|
-
k2 = k;
|
|
273
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
274
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
275
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
276
|
-
}
|
|
277
|
-
Object.defineProperty(o, k2, desc);
|
|
278
|
-
}) : (function (o, m, k, k2) {
|
|
279
|
-
if (k2 === undefined)
|
|
280
|
-
k2 = k;
|
|
281
|
-
o[k2] = m[k];
|
|
282
|
-
});
|
|
283
|
-
function __exportStar(m, o) {
|
|
284
|
-
for (var p in m)
|
|
285
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
286
|
-
__createBinding(o, m, p);
|
|
287
|
-
}
|
|
288
|
-
function __values(o) {
|
|
289
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
290
|
-
if (m)
|
|
291
|
-
return m.call(o);
|
|
292
|
-
if (o && typeof o.length === "number")
|
|
293
|
-
return {
|
|
294
|
-
next: function () {
|
|
295
|
-
if (o && i >= o.length)
|
|
296
|
-
o = void 0;
|
|
297
|
-
return { value: o && o[i++], done: !o };
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
301
|
-
}
|
|
302
|
-
function __read(o, n) {
|
|
303
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
304
|
-
if (!m)
|
|
305
|
-
return o;
|
|
306
|
-
var i = m.call(o), r, ar = [], e;
|
|
307
|
-
try {
|
|
308
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
309
|
-
ar.push(r.value);
|
|
310
|
-
}
|
|
311
|
-
catch (error) {
|
|
312
|
-
e = { error: error };
|
|
313
|
-
}
|
|
314
|
-
finally {
|
|
315
|
-
try {
|
|
316
|
-
if (r && !r.done && (m = i["return"]))
|
|
317
|
-
m.call(i);
|
|
318
|
-
}
|
|
319
|
-
finally {
|
|
320
|
-
if (e)
|
|
321
|
-
throw e.error;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
return ar;
|
|
325
|
-
}
|
|
326
|
-
/** @deprecated */
|
|
327
|
-
function __spread() {
|
|
328
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
329
|
-
ar = ar.concat(__read(arguments[i]));
|
|
330
|
-
return ar;
|
|
331
|
-
}
|
|
332
|
-
/** @deprecated */
|
|
333
|
-
function __spreadArrays() {
|
|
334
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
335
|
-
s += arguments[i].length;
|
|
336
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
337
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
338
|
-
r[k] = a[j];
|
|
339
|
-
return r;
|
|
340
|
-
}
|
|
341
|
-
function __spreadArray(to, from, pack) {
|
|
342
|
-
if (pack || arguments.length === 2)
|
|
343
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
344
|
-
if (ar || !(i in from)) {
|
|
345
|
-
if (!ar)
|
|
346
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
347
|
-
ar[i] = from[i];
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
351
|
-
}
|
|
352
|
-
function __await(v) {
|
|
353
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
354
|
-
}
|
|
355
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
356
|
-
if (!Symbol.asyncIterator)
|
|
357
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
358
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
359
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
360
|
-
function verb(n) { if (g[n])
|
|
361
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
362
|
-
function resume(n, v) { try {
|
|
363
|
-
step(g[n](v));
|
|
364
|
-
}
|
|
365
|
-
catch (e) {
|
|
366
|
-
settle(q[0][3], e);
|
|
367
|
-
} }
|
|
368
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
369
|
-
function fulfill(value) { resume("next", value); }
|
|
370
|
-
function reject(value) { resume("throw", value); }
|
|
371
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
372
|
-
resume(q[0][0], q[0][1]); }
|
|
373
|
-
}
|
|
374
|
-
function __asyncDelegator(o) {
|
|
375
|
-
var i, p;
|
|
376
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
377
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
378
|
-
}
|
|
379
|
-
function __asyncValues(o) {
|
|
380
|
-
if (!Symbol.asyncIterator)
|
|
381
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
382
|
-
var m = o[Symbol.asyncIterator], i;
|
|
383
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
384
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
385
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
386
|
-
}
|
|
387
|
-
function __makeTemplateObject(cooked, raw) {
|
|
388
|
-
if (Object.defineProperty) {
|
|
389
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
cooked.raw = raw;
|
|
393
|
-
}
|
|
394
|
-
return cooked;
|
|
395
|
-
}
|
|
396
|
-
;
|
|
397
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
398
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
399
|
-
}) : function (o, v) {
|
|
400
|
-
o["default"] = v;
|
|
401
|
-
};
|
|
402
|
-
function __importStar(mod) {
|
|
403
|
-
if (mod && mod.__esModule)
|
|
404
|
-
return mod;
|
|
405
|
-
var result = {};
|
|
406
|
-
if (mod != null)
|
|
407
|
-
for (var k in mod)
|
|
408
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
409
|
-
__createBinding(result, mod, k);
|
|
410
|
-
__setModuleDefault(result, mod);
|
|
411
|
-
return result;
|
|
412
|
-
}
|
|
413
|
-
function __importDefault(mod) {
|
|
414
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
415
|
-
}
|
|
416
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
417
|
-
if (kind === "a" && !f)
|
|
418
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
419
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
420
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
421
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
422
|
-
}
|
|
423
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
424
|
-
if (kind === "m")
|
|
425
|
-
throw new TypeError("Private method is not writable");
|
|
426
|
-
if (kind === "a" && !f)
|
|
427
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
428
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
429
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
430
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
431
|
-
}
|
|
432
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
433
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
434
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
435
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
436
|
-
}
|
|
437
|
-
function __addDisposableResource(env, value, async) {
|
|
438
|
-
if (value !== null && value !== void 0) {
|
|
439
|
-
if (typeof value !== "object" && typeof value !== "function")
|
|
440
|
-
throw new TypeError("Object expected.");
|
|
441
|
-
var dispose;
|
|
442
|
-
if (async) {
|
|
443
|
-
if (!Symbol.asyncDispose)
|
|
444
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
445
|
-
dispose = value[Symbol.asyncDispose];
|
|
446
|
-
}
|
|
447
|
-
if (dispose === void 0) {
|
|
448
|
-
if (!Symbol.dispose)
|
|
449
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
|
450
|
-
dispose = value[Symbol.dispose];
|
|
451
|
-
}
|
|
452
|
-
if (typeof dispose !== "function")
|
|
453
|
-
throw new TypeError("Object not disposable.");
|
|
454
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
455
|
-
}
|
|
456
|
-
else if (async) {
|
|
457
|
-
env.stack.push({ async: true });
|
|
458
|
-
}
|
|
459
|
-
return value;
|
|
460
|
-
}
|
|
461
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
462
|
-
var e = new Error(message);
|
|
463
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
464
|
-
};
|
|
465
|
-
function __disposeResources(env) {
|
|
466
|
-
function fail(e) {
|
|
467
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
468
|
-
env.hasError = true;
|
|
469
|
-
}
|
|
470
|
-
function next() {
|
|
471
|
-
while (env.stack.length) {
|
|
472
|
-
var rec = env.stack.pop();
|
|
473
|
-
try {
|
|
474
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
475
|
-
if (rec.async)
|
|
476
|
-
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
477
|
-
}
|
|
478
|
-
catch (e) {
|
|
479
|
-
fail(e);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
if (env.hasError)
|
|
483
|
-
throw env.error;
|
|
484
|
-
}
|
|
485
|
-
return next();
|
|
486
|
-
}
|
|
487
|
-
var tslib_es6 = {
|
|
488
|
-
__extends: __extends,
|
|
489
|
-
__assign: __assign,
|
|
490
|
-
__rest: __rest,
|
|
491
|
-
__decorate: __decorate,
|
|
492
|
-
__param: __param,
|
|
493
|
-
__metadata: __metadata,
|
|
494
|
-
__awaiter: __awaiter,
|
|
495
|
-
__generator: __generator,
|
|
496
|
-
__createBinding: __createBinding,
|
|
497
|
-
__exportStar: __exportStar,
|
|
498
|
-
__values: __values,
|
|
499
|
-
__read: __read,
|
|
500
|
-
__spread: __spread,
|
|
501
|
-
__spreadArrays: __spreadArrays,
|
|
502
|
-
__spreadArray: __spreadArray,
|
|
503
|
-
__await: __await,
|
|
504
|
-
__asyncGenerator: __asyncGenerator,
|
|
505
|
-
__asyncDelegator: __asyncDelegator,
|
|
506
|
-
__asyncValues: __asyncValues,
|
|
507
|
-
__makeTemplateObject: __makeTemplateObject,
|
|
508
|
-
__importStar: __importStar,
|
|
509
|
-
__importDefault: __importDefault,
|
|
510
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
511
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
512
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
513
|
-
__addDisposableResource: __addDisposableResource,
|
|
514
|
-
__disposeResources: __disposeResources,
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
var _a;
|
|
518
|
-
exports.MapLyrs = void 0;
|
|
519
|
-
(function (MapLyrs) {
|
|
520
|
-
MapLyrs[MapLyrs["Hybrid"] = 1] = "Hybrid";
|
|
521
|
-
MapLyrs[MapLyrs["Satellite"] = 2] = "Satellite";
|
|
522
|
-
MapLyrs[MapLyrs["Streets"] = 3] = "Streets";
|
|
523
|
-
MapLyrs[MapLyrs["Terrain"] = 4] = "Terrain";
|
|
524
|
-
})(exports.MapLyrs || (exports.MapLyrs = {}));
|
|
525
|
-
var MapLyrsLabel = /** @class */ (function () {
|
|
526
|
-
function MapLyrsLabel() {
|
|
527
|
-
}
|
|
528
|
-
MapLyrsLabel.get = function (lyrs) {
|
|
529
|
-
return MapLyrsLabel.lyrs[lyrs];
|
|
530
|
-
};
|
|
531
|
-
return MapLyrsLabel;
|
|
532
|
-
}());
|
|
533
|
-
MapLyrsLabel.lyrs = (_a = {},
|
|
534
|
-
_a[exports.MapLyrs.Hybrid] = 's,h',
|
|
535
|
-
_a[exports.MapLyrs.Satellite] = 's',
|
|
536
|
-
_a[exports.MapLyrs.Streets] = 'm',
|
|
537
|
-
_a[exports.MapLyrs.Terrain] = 'p',
|
|
538
|
-
_a);
|
|
539
|
-
|
|
540
|
-
var MapSettings = /** @class */ (function () {
|
|
541
|
-
function MapSettings() {
|
|
542
|
-
this.center = [0, 0];
|
|
543
|
-
this.maxZoom = 19;
|
|
544
|
-
this.minZoom = 0;
|
|
545
|
-
this.zoom = 4;
|
|
546
|
-
this.lyrs = exports.MapLyrs.Hybrid;
|
|
547
|
-
this.language = 'en';
|
|
548
|
-
}
|
|
549
|
-
MapSettings.copy = function (model) {
|
|
550
|
-
var result = new MapSettings();
|
|
551
|
-
result.center = model.center;
|
|
552
|
-
result.maxZoom = model.maxZoom;
|
|
553
|
-
result.minZoom = model.minZoom;
|
|
554
|
-
result.zoom = model.zoom;
|
|
555
|
-
result.lyrs = model.lyrs;
|
|
556
|
-
result.language = model.language;
|
|
557
|
-
return result;
|
|
558
|
-
};
|
|
559
|
-
MapSettings.prototype.setCenter = function (center) {
|
|
560
|
-
return MapSettings.copy(Object.assign(Object.assign({}, this), { center: center }));
|
|
561
|
-
};
|
|
562
|
-
MapSettings.prototype.setMaxZoom = function (maxZoom) {
|
|
563
|
-
return MapSettings.copy(Object.assign(Object.assign({}, this), { maxZoom: maxZoom }));
|
|
564
|
-
};
|
|
565
|
-
MapSettings.prototype.setMinZoom = function (minZoom) {
|
|
566
|
-
return MapSettings.copy(Object.assign(Object.assign({}, this), { minZoom: minZoom }));
|
|
567
|
-
};
|
|
568
|
-
MapSettings.prototype.setZoom = function (zoom) {
|
|
569
|
-
return MapSettings.copy(Object.assign(Object.assign({}, this), { zoom: zoom }));
|
|
570
|
-
};
|
|
571
|
-
MapSettings.prototype.setLyrs = function (lyrs) {
|
|
572
|
-
return MapSettings.copy(Object.assign(Object.assign({}, this), { lyrs: lyrs }));
|
|
573
|
-
};
|
|
574
|
-
MapSettings.prototype.setLanguage = function (language) {
|
|
575
|
-
return MapSettings.copy(Object.assign(Object.assign({}, this), { language: language }));
|
|
576
|
-
};
|
|
577
|
-
MapSettings.prototype.isSame = function (model) {
|
|
578
|
-
if (this.maxZoom !== model.maxZoom)
|
|
579
|
-
return false;
|
|
580
|
-
if (this.minZoom !== model.minZoom)
|
|
581
|
-
return false;
|
|
582
|
-
if (this.zoom !== model.zoom)
|
|
583
|
-
return false;
|
|
584
|
-
if (this.lyrs !== model.lyrs)
|
|
585
|
-
return false;
|
|
586
|
-
if (this.language !== model.language)
|
|
587
|
-
return false;
|
|
588
|
-
return this.center.length !== model.center.length || !!this.center.filter(function (c, i) { return c !== model.center[i]; });
|
|
589
|
-
};
|
|
590
|
-
return MapSettings;
|
|
591
|
-
}());
|
|
592
|
-
|
|
593
|
-
var IdGenerator = /** @class */ (function () {
|
|
594
|
-
function IdGenerator() {
|
|
595
|
-
}
|
|
596
|
-
IdGenerator.get = function () {
|
|
597
|
-
var result = [];
|
|
598
|
-
for (var i = 0; i < 7; i++) {
|
|
599
|
-
result.push(IdGenerator.collection
|
|
600
|
-
.sort(function () { return 0.5 - Math.random(); })
|
|
601
|
-
.slice(0, 5)
|
|
602
|
-
.join(''));
|
|
603
|
-
}
|
|
604
|
-
return result.join('-');
|
|
605
|
-
};
|
|
606
|
-
return IdGenerator;
|
|
607
|
-
}());
|
|
608
|
-
IdGenerator.collection = 'ABCDEFGHIJKLMNOPQRSTUVWXTZ0123456789'.split('');
|
|
609
|
-
|
|
610
|
-
var MarkerModel = /** @class */ (function () {
|
|
611
|
-
function MarkerModel(lat, lng, id, info) {
|
|
612
|
-
this.lat = lat;
|
|
613
|
-
this.lng = lng;
|
|
614
|
-
this.id = id;
|
|
615
|
-
this.info = info;
|
|
616
|
-
if (id == null)
|
|
617
|
-
this.id = IdGenerator.get();
|
|
618
|
-
this._feature = this.getFeature();
|
|
619
|
-
}
|
|
620
|
-
Object.defineProperty(MarkerModel.prototype, "feature", {
|
|
621
|
-
get: function () {
|
|
622
|
-
return this._feature;
|
|
623
|
-
},
|
|
624
|
-
enumerable: false,
|
|
625
|
-
configurable: true
|
|
626
|
-
});
|
|
627
|
-
MarkerModel.prototype.getFeature = function () {
|
|
628
|
-
var _this = this;
|
|
629
|
-
var feature = new ol.Feature(new geom.Point([this.lng, this.lat]));
|
|
630
|
-
feature.setId(this.id);
|
|
631
|
-
if (this.info) {
|
|
632
|
-
Object.keys(this.info).forEach(function (k) { return feature.set(k, _this.info[k]); });
|
|
633
|
-
}
|
|
634
|
-
return feature;
|
|
635
|
-
};
|
|
636
|
-
return MarkerModel;
|
|
637
|
-
}());
|
|
638
|
-
|
|
639
|
-
var GenericMessage = /** @class */ (function () {
|
|
640
|
-
function GenericMessage() {
|
|
641
|
-
}
|
|
642
|
-
return GenericMessage;
|
|
643
|
-
}());
|
|
644
|
-
var CallbackMessage = /** @class */ (function (_super) {
|
|
645
|
-
__extends(CallbackMessage, _super);
|
|
646
|
-
function CallbackMessage() {
|
|
647
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
648
|
-
_this.result$ = new rxjs.Subject();
|
|
649
|
-
_this.result = _this.result$.asObservable();
|
|
650
|
-
return _this;
|
|
651
|
-
}
|
|
652
|
-
CallbackMessage.prototype.finish = function (value) {
|
|
653
|
-
this.result$.next(value);
|
|
654
|
-
this.result$.complete();
|
|
655
|
-
};
|
|
656
|
-
return CallbackMessage;
|
|
657
|
-
}(GenericMessage));
|
|
658
|
-
|
|
659
|
-
var MapRenderedEvent = /** @class */ (function (_super) {
|
|
660
|
-
__extends(MapRenderedEvent, _super);
|
|
661
|
-
function MapRenderedEvent(map) {
|
|
662
|
-
var _this = _super.call(this) || this;
|
|
663
|
-
_this.map = map;
|
|
664
|
-
return _this;
|
|
665
|
-
}
|
|
666
|
-
Object.defineProperty(MapRenderedEvent.prototype, "id", {
|
|
667
|
-
get: function () {
|
|
668
|
-
return MapRenderedEvent.ID;
|
|
669
|
-
},
|
|
670
|
-
enumerable: false,
|
|
671
|
-
configurable: true
|
|
672
|
-
});
|
|
673
|
-
return MapRenderedEvent;
|
|
674
|
-
}(GenericMessage));
|
|
675
|
-
MapRenderedEvent.ID = 'b6121807-3b89-4cd3-82cf-089d2cefdc4f';
|
|
676
|
-
|
|
677
|
-
var AddLayerCommand = /** @class */ (function (_super) {
|
|
678
|
-
__extends(AddLayerCommand, _super);
|
|
679
|
-
function AddLayerCommand(layer) {
|
|
680
|
-
var _this = _super.call(this) || this;
|
|
681
|
-
_this.layer = layer;
|
|
682
|
-
return _this;
|
|
683
|
-
}
|
|
684
|
-
Object.defineProperty(AddLayerCommand.prototype, "id", {
|
|
685
|
-
get: function () {
|
|
686
|
-
return AddLayerCommand.ID;
|
|
687
|
-
},
|
|
688
|
-
enumerable: false,
|
|
689
|
-
configurable: true
|
|
690
|
-
});
|
|
691
|
-
return AddLayerCommand;
|
|
692
|
-
}(GenericMessage));
|
|
693
|
-
AddLayerCommand.ID = 'd93e250f-92bc-43ac-9c6a-46c521a1aaa5';
|
|
694
|
-
|
|
695
|
-
var PlaceLayerFeaturesCommand = /** @class */ (function (_super) {
|
|
696
|
-
__extends(PlaceLayerFeaturesCommand, _super);
|
|
697
|
-
function PlaceLayerFeaturesCommand(layer, features) {
|
|
698
|
-
var _this = _super.call(this) || this;
|
|
699
|
-
_this.layer = layer;
|
|
700
|
-
_this.features = features;
|
|
701
|
-
return _this;
|
|
702
|
-
}
|
|
703
|
-
Object.defineProperty(PlaceLayerFeaturesCommand.prototype, "id", {
|
|
704
|
-
get: function () {
|
|
705
|
-
return PlaceLayerFeaturesCommand.ID;
|
|
706
|
-
},
|
|
707
|
-
enumerable: false,
|
|
708
|
-
configurable: true
|
|
709
|
-
});
|
|
710
|
-
return PlaceLayerFeaturesCommand;
|
|
711
|
-
}(GenericMessage));
|
|
712
|
-
PlaceLayerFeaturesCommand.ID = '8caf86bc-869b-426f-b36d-4642f6b8aab0';
|
|
713
|
-
|
|
714
|
-
var RemoveLayerCommand = /** @class */ (function (_super) {
|
|
715
|
-
__extends(RemoveLayerCommand, _super);
|
|
716
|
-
function RemoveLayerCommand(layer) {
|
|
717
|
-
var _this = _super.call(this) || this;
|
|
718
|
-
_this.layer = layer;
|
|
719
|
-
return _this;
|
|
720
|
-
}
|
|
721
|
-
Object.defineProperty(RemoveLayerCommand.prototype, "id", {
|
|
722
|
-
get: function () {
|
|
723
|
-
return RemoveLayerCommand.ID;
|
|
724
|
-
},
|
|
725
|
-
enumerable: false,
|
|
726
|
-
configurable: true
|
|
727
|
-
});
|
|
728
|
-
return RemoveLayerCommand;
|
|
729
|
-
}(GenericMessage));
|
|
730
|
-
RemoveLayerCommand.ID = 'ab484e0e-e185-45cd-8434-12101f3c7eb1';
|
|
731
|
-
|
|
732
|
-
var ClearLayerCommand = /** @class */ (function (_super) {
|
|
733
|
-
__extends(ClearLayerCommand, _super);
|
|
734
|
-
function ClearLayerCommand(layer) {
|
|
735
|
-
var _this = _super.call(this) || this;
|
|
736
|
-
_this.layer = layer;
|
|
737
|
-
return _this;
|
|
738
|
-
}
|
|
739
|
-
Object.defineProperty(ClearLayerCommand.prototype, "id", {
|
|
740
|
-
get: function () {
|
|
741
|
-
return ClearLayerCommand.ID;
|
|
742
|
-
},
|
|
743
|
-
enumerable: false,
|
|
744
|
-
configurable: true
|
|
745
|
-
});
|
|
746
|
-
return ClearLayerCommand;
|
|
747
|
-
}(GenericMessage));
|
|
748
|
-
ClearLayerCommand.ID = 'd02842b7-fa62-458d-b1e4-12dd814610c5';
|
|
749
|
-
|
|
750
|
-
var MapPostboyService = /** @class */ (function () {
|
|
751
|
-
function MapPostboyService() {
|
|
752
|
-
this.applications = {};
|
|
753
|
-
}
|
|
754
|
-
MapPostboyService.prototype.register = function (id, sub) {
|
|
755
|
-
this.applications[id] = sub;
|
|
756
|
-
};
|
|
757
|
-
MapPostboyService.prototype.subscribe = function (id) {
|
|
758
|
-
if (!this.applications[id])
|
|
759
|
-
throw new Error("There is no event with id " + id);
|
|
760
|
-
return this.applications[id].asObservable();
|
|
761
|
-
};
|
|
762
|
-
MapPostboyService.prototype.fire = function (message) {
|
|
763
|
-
if (!this.applications[message.id])
|
|
764
|
-
throw new Error("There is no event with id " + message.id);
|
|
765
|
-
this.applications[message.id].next(message);
|
|
766
|
-
};
|
|
767
|
-
return MapPostboyService;
|
|
768
|
-
}());
|
|
769
|
-
MapPostboyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPostboyService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
770
|
-
MapPostboyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPostboyService });
|
|
771
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPostboyService, decorators: [{
|
|
772
|
-
type: i0.Injectable
|
|
773
|
-
}] });
|
|
774
|
-
|
|
775
|
-
var MessageRegistratorService = /** @class */ (function () {
|
|
776
|
-
function MessageRegistratorService(service) {
|
|
777
|
-
service.register(MapRenderedEvent.ID, new rxjs.ReplaySubject(1));
|
|
778
|
-
service.register(AddLayerCommand.ID, new rxjs.Subject());
|
|
779
|
-
service.register(PlaceLayerFeaturesCommand.ID, new rxjs.ReplaySubject(1));
|
|
780
|
-
service.register(RemoveLayerCommand.ID, new rxjs.Subject());
|
|
781
|
-
service.register(ClearLayerCommand.ID, new rxjs.Subject());
|
|
782
|
-
}
|
|
783
|
-
return MessageRegistratorService;
|
|
784
|
-
}());
|
|
785
|
-
MessageRegistratorService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
786
|
-
MessageRegistratorService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService });
|
|
787
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService, decorators: [{
|
|
788
|
-
type: i0.Injectable
|
|
789
|
-
}], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
|
|
790
|
-
|
|
791
|
-
var MapStateService = /** @class */ (function () {
|
|
792
|
-
function MapStateService(postboy) {
|
|
793
|
-
var _this = this;
|
|
794
|
-
this.postboy = postboy;
|
|
795
|
-
postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) { return (_this.map = m); });
|
|
796
|
-
}
|
|
797
|
-
return MapStateService;
|
|
798
|
-
}());
|
|
799
|
-
MapStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
800
|
-
MapStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService });
|
|
801
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService, decorators: [{
|
|
802
|
-
type: i0.Injectable
|
|
803
|
-
}], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
|
|
804
|
-
|
|
805
|
-
var MapManagementService = /** @class */ (function () {
|
|
806
|
-
function MapManagementService(postboy) {
|
|
807
|
-
this.postboy = postboy;
|
|
808
|
-
this.layers = {};
|
|
809
|
-
this.observeMapRender();
|
|
810
|
-
this.observeAddLayer();
|
|
811
|
-
this.observeRemoveLayer();
|
|
812
|
-
this.observePlaceFeatures();
|
|
813
|
-
this.observeClearLayer();
|
|
814
|
-
}
|
|
815
|
-
MapManagementService.prototype.observeMapRender = function () {
|
|
816
|
-
var _this = this;
|
|
817
|
-
this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
|
|
818
|
-
_this.map = m.map;
|
|
819
|
-
});
|
|
820
|
-
};
|
|
821
|
-
MapManagementService.prototype.observeClearLayer = function () {
|
|
822
|
-
var _this = this;
|
|
823
|
-
this.postboy.subscribe(ClearLayerCommand.ID).subscribe(function (c) {
|
|
824
|
-
var _a, _b;
|
|
825
|
-
(_b = (_a = _this.layers[c.layer]) === null || _a === void 0 ? void 0 : _a.getSource()) === null || _b === void 0 ? void 0 : _b.clear();
|
|
826
|
-
});
|
|
827
|
-
};
|
|
828
|
-
MapManagementService.prototype.observeAddLayer = function () {
|
|
829
|
-
var _this = this;
|
|
830
|
-
this.postboy.subscribe(AddLayerCommand.ID).subscribe(function (c) {
|
|
831
|
-
if (!_this.map)
|
|
832
|
-
return;
|
|
833
|
-
_this.layers[c.layer.get('name')] = c.layer;
|
|
834
|
-
_this.map.addLayer(c.layer);
|
|
835
|
-
});
|
|
836
|
-
};
|
|
837
|
-
MapManagementService.prototype.observePlaceFeatures = function () {
|
|
838
|
-
var _this = this;
|
|
839
|
-
this.postboy.subscribe(PlaceLayerFeaturesCommand.ID).subscribe(function (c) {
|
|
840
|
-
var _a, _b, _c;
|
|
841
|
-
if (!_this.layers[c.layer])
|
|
842
|
-
return;
|
|
843
|
-
(_b = (_a = _this.layers[c.layer]) === null || _a === void 0 ? void 0 : _a.getSource()) === null || _b === void 0 ? void 0 : _b.clear();
|
|
844
|
-
(_c = _this.layers[c.layer].getSource()) === null || _c === void 0 ? void 0 : _c.addFeatures(c.features);
|
|
845
|
-
});
|
|
846
|
-
};
|
|
847
|
-
MapManagementService.prototype.observeRemoveLayer = function () {
|
|
848
|
-
var _this = this;
|
|
849
|
-
this.postboy.subscribe(RemoveLayerCommand.ID).subscribe(function (c) {
|
|
850
|
-
if (!_this.map)
|
|
851
|
-
return;
|
|
852
|
-
delete _this.layers[c.layer.get('name')];
|
|
853
|
-
_this.map.removeLayer(c.layer);
|
|
854
|
-
});
|
|
855
|
-
};
|
|
856
|
-
return MapManagementService;
|
|
857
|
-
}());
|
|
858
|
-
MapManagementService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapManagementService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
859
|
-
MapManagementService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapManagementService });
|
|
860
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapManagementService, decorators: [{
|
|
861
|
-
type: i0.Injectable
|
|
862
|
-
}], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
|
|
863
|
-
|
|
864
|
-
var ServiceCollector = /** @class */ (function () {
|
|
865
|
-
function ServiceCollector(registrator, management, state) {
|
|
866
|
-
}
|
|
867
|
-
return ServiceCollector;
|
|
868
|
-
}());
|
|
869
|
-
ServiceCollector.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ServiceCollector, deps: [{ token: MessageRegistratorService }, { token: MapManagementService }, { token: MapStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
870
|
-
ServiceCollector.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ServiceCollector });
|
|
871
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ServiceCollector, decorators: [{
|
|
872
|
-
type: i0.Injectable
|
|
873
|
-
}], ctorParameters: function () { return [{ type: MessageRegistratorService }, { type: MapManagementService }, { type: MapStateService }]; } });
|
|
874
|
-
|
|
875
|
-
var MapPlateFactory = /** @class */ (function () {
|
|
876
|
-
function MapPlateFactory() {
|
|
877
|
-
}
|
|
878
|
-
MapPlateFactory.prototype.build = function (settings) {
|
|
879
|
-
return new Map__default["default"]({
|
|
880
|
-
controls: [],
|
|
881
|
-
view: new View__default["default"]({
|
|
882
|
-
center: (settings === null || settings === void 0 ? void 0 : settings.center) || [0, 0],
|
|
883
|
-
zoom: (settings === null || settings === void 0 ? void 0 : settings.zoom) || 4,
|
|
884
|
-
minZoom: (settings === null || settings === void 0 ? void 0 : settings.minZoom) || 0,
|
|
885
|
-
maxZoom: (settings === null || settings === void 0 ? void 0 : settings.maxZoom) || 19,
|
|
886
|
-
}),
|
|
887
|
-
layers: [],
|
|
888
|
-
});
|
|
889
|
-
};
|
|
890
|
-
return MapPlateFactory;
|
|
891
|
-
}());
|
|
892
|
-
MapPlateFactory.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateFactory, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
893
|
-
MapPlateFactory.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateFactory, providedIn: 'root' });
|
|
894
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateFactory, decorators: [{
|
|
895
|
-
type: i0.Injectable,
|
|
896
|
-
args: [{
|
|
897
|
-
providedIn: 'root',
|
|
898
|
-
}]
|
|
899
|
-
}] });
|
|
900
|
-
|
|
901
|
-
var OsmTileLayerComponent = /** @class */ (function (_super) {
|
|
902
|
-
__extends(OsmTileLayerComponent, _super);
|
|
903
|
-
function OsmTileLayerComponent() {
|
|
904
|
-
var _this = _super.call(this) || this;
|
|
905
|
-
_this._url = '';
|
|
906
|
-
return _this;
|
|
907
|
-
}
|
|
908
|
-
Object.defineProperty(OsmTileLayerComponent.prototype, "url", {
|
|
909
|
-
set: function (value) {
|
|
910
|
-
if (!value || this._url === value)
|
|
911
|
-
return;
|
|
912
|
-
this._url = value;
|
|
913
|
-
this.initLayer();
|
|
914
|
-
},
|
|
915
|
-
enumerable: false,
|
|
916
|
-
configurable: true
|
|
917
|
-
});
|
|
918
|
-
Object.defineProperty(OsmTileLayerComponent.prototype, "map", {
|
|
919
|
-
set: function (value) {
|
|
920
|
-
if (!value || this._map === value)
|
|
921
|
-
return;
|
|
922
|
-
this._map = value;
|
|
923
|
-
this.initLayer();
|
|
924
|
-
},
|
|
925
|
-
enumerable: false,
|
|
926
|
-
configurable: true
|
|
927
|
-
});
|
|
928
|
-
OsmTileLayerComponent.prototype.ngOnInit = function () { };
|
|
929
|
-
OsmTileLayerComponent.prototype.ngOnDestroy = function () {
|
|
930
|
-
var _a, _b;
|
|
931
|
-
if (this.layer) {
|
|
932
|
-
(_a = this._map) === null || _a === void 0 ? void 0 : _a.removeLayer(this.layer);
|
|
933
|
-
}
|
|
934
|
-
// @ts-ignore
|
|
935
|
-
(_b = this.layer) === null || _b === void 0 ? void 0 : _b.setMap(null);
|
|
936
|
-
};
|
|
937
|
-
OsmTileLayerComponent.prototype.initLayer = function () {
|
|
938
|
-
if (!this._url || !this._map)
|
|
939
|
-
return;
|
|
940
|
-
if (this.layer)
|
|
941
|
-
this._map.removeLayer(this.layer);
|
|
942
|
-
this.layer = new TileLayer__default["default"]({
|
|
943
|
-
source: new OSM__default["default"]({
|
|
944
|
-
url: this._url,
|
|
945
|
-
}),
|
|
946
|
-
});
|
|
947
|
-
this.layer.set('name', 'osm-tile-layer');
|
|
948
|
-
this._map.addLayer(this.layer);
|
|
949
|
-
};
|
|
950
|
-
return OsmTileLayerComponent;
|
|
951
|
-
}(DestructibleComponent));
|
|
952
|
-
OsmTileLayerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OsmTileLayerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
953
|
-
OsmTileLayerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: OsmTileLayerComponent, selector: "lib-osm-tile-layer", inputs: { url: "url", map: "map" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
954
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OsmTileLayerComponent, decorators: [{
|
|
955
|
-
type: i0.Component,
|
|
956
|
-
args: [{
|
|
957
|
-
selector: 'lib-osm-tile-layer',
|
|
958
|
-
template: '',
|
|
959
|
-
styleUrls: [],
|
|
960
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
961
|
-
}]
|
|
962
|
-
}], ctorParameters: function () { return []; }, propDecorators: { url: [{
|
|
963
|
-
type: i0.Input
|
|
964
|
-
}], map: [{
|
|
965
|
-
type: i0.Input
|
|
966
|
-
}] } });
|
|
967
|
-
|
|
968
|
-
var MapPlateComponent = /** @class */ (function (_super) {
|
|
969
|
-
__extends(MapPlateComponent, _super);
|
|
970
|
-
function MapPlateComponent(elementRef, postboy, mapFactory, registrator, detector) {
|
|
971
|
-
var _this = _super.call(this) || this;
|
|
972
|
-
_this.elementRef = elementRef;
|
|
973
|
-
_this.postboy = postboy;
|
|
974
|
-
_this.mapFactory = mapFactory;
|
|
975
|
-
_this.detector = detector;
|
|
976
|
-
_this.osmUrl = '';
|
|
977
|
-
_this._settings = new MapSettings();
|
|
978
|
-
return _this;
|
|
979
|
-
}
|
|
980
|
-
Object.defineProperty(MapPlateComponent.prototype, "settings", {
|
|
981
|
-
set: function (value) {
|
|
982
|
-
if (!value || this._settings.isSame(value))
|
|
983
|
-
return;
|
|
984
|
-
this._settings = value;
|
|
985
|
-
this.setOsm();
|
|
986
|
-
},
|
|
987
|
-
enumerable: false,
|
|
988
|
-
configurable: true
|
|
989
|
-
});
|
|
990
|
-
MapPlateComponent.prototype.ngOnInit = function () {
|
|
991
|
-
var _this = this;
|
|
992
|
-
proj.useGeographic();
|
|
993
|
-
this.map = this.mapFactory.build(this._settings);
|
|
994
|
-
this.map.setTarget(this.elementRef.nativeElement);
|
|
995
|
-
this.detector.detectChanges();
|
|
996
|
-
this.map.once('postrender', function () {
|
|
997
|
-
_this.map.updateSize();
|
|
998
|
-
_this.postboy.fire(new MapRenderedEvent(_this.map));
|
|
999
|
-
});
|
|
1000
|
-
this.setOsm();
|
|
1001
|
-
};
|
|
1002
|
-
MapPlateComponent.prototype.setOsm = function () {
|
|
1003
|
-
if (!this.map)
|
|
1004
|
-
return;
|
|
1005
|
-
this.osmUrl = "https://mt{0-3}.google.com/vt/lyrs=" + MapLyrsLabel.get(this._settings.lyrs) + "&hl=" + this._settings.language + "&x={x}&y={y}&z={z}";
|
|
1006
|
-
this.detector.detectChanges();
|
|
1007
|
-
this.map.updateSize();
|
|
1008
|
-
};
|
|
1009
|
-
return MapPlateComponent;
|
|
1010
|
-
}(DestructibleComponent));
|
|
1011
|
-
MapPlateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateComponent, deps: [{ token: i0__namespace.ElementRef }, { token: MapPostboyService }, { token: MapPlateFactory }, { token: ServiceCollector }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1012
|
-
MapPlateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapPlateComponent, selector: "lib-map-plate", inputs: { settings: "settings" }, providers: [MessageRegistratorService, MapStateService, MapManagementService, ServiceCollector], usesInheritance: true, ngImport: i0__namespace, template: "<ng-content></ng-content>\n<lib-osm-tile-layer *ngIf=\"osmUrl && map\" [map]=\"map\" [url]=\"osmUrl\"></lib-osm-tile-layer>\n", styles: ["lib-map-plate{position:relative;display:flex;flex-direction:column;height:100%}\n"], components: [{ type: OsmTileLayerComponent, selector: "lib-osm-tile-layer", inputs: ["url", "map"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1013
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateComponent, decorators: [{
|
|
1014
|
-
type: i0.Component,
|
|
1015
|
-
args: [{
|
|
1016
|
-
selector: 'lib-map-plate',
|
|
1017
|
-
templateUrl: './map-plate.component.html',
|
|
1018
|
-
styleUrls: ['./map-plate.component.scss'],
|
|
1019
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1020
|
-
providers: [MessageRegistratorService, MapStateService, MapManagementService, ServiceCollector],
|
|
1021
|
-
}]
|
|
1022
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: MapPostboyService }, { type: MapPlateFactory }, { type: ServiceCollector }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { settings: [{
|
|
1023
|
-
type: i0.Input
|
|
1024
|
-
}] } });
|
|
1025
|
-
|
|
1026
|
-
var TileLayerComponent = /** @class */ (function (_super) {
|
|
1027
|
-
__extends(TileLayerComponent, _super);
|
|
1028
|
-
function TileLayerComponent() {
|
|
1029
|
-
return _super.call(this) || this;
|
|
1030
|
-
}
|
|
1031
|
-
return TileLayerComponent;
|
|
1032
|
-
}(DestructibleComponent));
|
|
1033
|
-
TileLayerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TileLayerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1034
|
-
TileLayerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TileLayerComponent, selector: "lib-tile-layer", usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1035
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TileLayerComponent, decorators: [{
|
|
1036
|
-
type: i0.Component,
|
|
1037
|
-
args: [{
|
|
1038
|
-
selector: 'lib-tile-layer',
|
|
1039
|
-
template: '',
|
|
1040
|
-
styleUrls: [],
|
|
1041
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1042
|
-
}]
|
|
1043
|
-
}], ctorParameters: function () { return []; } });
|
|
1044
|
-
|
|
1045
|
-
var FeatureLayerSettings = /** @class */ (function () {
|
|
1046
|
-
function FeatureLayerSettings() {
|
|
1047
|
-
this.name = IdGenerator.get();
|
|
1048
|
-
this.zIndex = 1;
|
|
1049
|
-
this.maxZoom = 19;
|
|
1050
|
-
this.minZoom = 0;
|
|
1051
|
-
}
|
|
1052
|
-
FeatureLayerSettings.copy = function (model) {
|
|
1053
|
-
var result = new FeatureLayerSettings();
|
|
1054
|
-
result.name = model.name;
|
|
1055
|
-
result.maxZoom = model.maxZoom;
|
|
1056
|
-
result.minZoom = model.minZoom;
|
|
1057
|
-
result.zIndex = model.zIndex;
|
|
1058
|
-
result.style = model.style;
|
|
1059
|
-
return result;
|
|
1060
|
-
};
|
|
1061
|
-
FeatureLayerSettings.prototype.setZIndex = function (zIndex) {
|
|
1062
|
-
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { zIndex: zIndex }));
|
|
1063
|
-
};
|
|
1064
|
-
FeatureLayerSettings.prototype.setName = function (name) {
|
|
1065
|
-
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { name: name }));
|
|
1066
|
-
};
|
|
1067
|
-
FeatureLayerSettings.prototype.setMaxZoom = function (maxZoom) {
|
|
1068
|
-
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { maxZoom: maxZoom }));
|
|
1069
|
-
};
|
|
1070
|
-
FeatureLayerSettings.prototype.setMinZoom = function (minZoom) {
|
|
1071
|
-
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { minZoom: minZoom }));
|
|
1072
|
-
};
|
|
1073
|
-
FeatureLayerSettings.prototype.setStyle = function (style) {
|
|
1074
|
-
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { style: style }));
|
|
1075
|
-
};
|
|
1076
|
-
FeatureLayerSettings.prototype.isSame = function (model) {
|
|
1077
|
-
if (this.maxZoom !== model.maxZoom)
|
|
1078
|
-
return false;
|
|
1079
|
-
if (this.minZoom !== model.minZoom)
|
|
1080
|
-
return false;
|
|
1081
|
-
if (this.zIndex !== model.zIndex)
|
|
1082
|
-
return false;
|
|
1083
|
-
if (this.name !== model.name)
|
|
1084
|
-
return false;
|
|
1085
|
-
if (this.style !== model.style)
|
|
1086
|
-
return false;
|
|
1087
|
-
return true;
|
|
1088
|
-
};
|
|
1089
|
-
return FeatureLayerSettings;
|
|
1090
|
-
}());
|
|
1091
|
-
|
|
1092
|
-
var FeatureLayerFactory = /** @class */ (function () {
|
|
1093
|
-
function FeatureLayerFactory() {
|
|
1094
|
-
}
|
|
1095
|
-
FeatureLayerFactory.prototype.build = function (settings) {
|
|
1096
|
-
var source$1 = new source.Vector({});
|
|
1097
|
-
var layer$1 = new layer.Vector({
|
|
1098
|
-
source: source$1,
|
|
1099
|
-
maxZoom: settings.maxZoom,
|
|
1100
|
-
minZoom: settings.minZoom,
|
|
1101
|
-
zIndex: settings.zIndex,
|
|
1102
|
-
});
|
|
1103
|
-
if (settings.style)
|
|
1104
|
-
layer$1.setStyle(settings.style);
|
|
1105
|
-
layer$1.set('name', settings.name);
|
|
1106
|
-
return layer$1;
|
|
1107
|
-
};
|
|
1108
|
-
return FeatureLayerFactory;
|
|
1109
|
-
}());
|
|
1110
|
-
FeatureLayerFactory.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FeatureLayerFactory, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1111
|
-
FeatureLayerFactory.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FeatureLayerFactory, providedIn: 'root' });
|
|
1112
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FeatureLayerFactory, decorators: [{
|
|
1113
|
-
type: i0.Injectable,
|
|
1114
|
-
args: [{
|
|
1115
|
-
providedIn: 'root',
|
|
1116
|
-
}]
|
|
1117
|
-
}] });
|
|
1118
|
-
|
|
1119
|
-
var FeatureLayerComponent = /** @class */ (function (_super) {
|
|
1120
|
-
__extends(FeatureLayerComponent, _super);
|
|
1121
|
-
function FeatureLayerComponent(postboy, factory) {
|
|
1122
|
-
var _this = _super.call(this) || this;
|
|
1123
|
-
_this.postboy = postboy;
|
|
1124
|
-
_this.factory = factory;
|
|
1125
|
-
_this.layer = null;
|
|
1126
|
-
_this._settings = new FeatureLayerSettings();
|
|
1127
|
-
_this.onDestroy = function () { return _this.removeLayer(); };
|
|
1128
|
-
return _this;
|
|
1129
|
-
}
|
|
1130
|
-
FeatureLayerComponent.prototype.ngOnInit = function () {
|
|
1131
|
-
var _this = this;
|
|
1132
|
-
this.postboy
|
|
1133
|
-
.subscribe(MapRenderedEvent.ID)
|
|
1134
|
-
.pipe(operators.filter(function (m) { return !!m; }), operators.first())
|
|
1135
|
-
.subscribe(function (m) { return _this.initLayer(); });
|
|
1136
|
-
};
|
|
1137
|
-
Object.defineProperty(FeatureLayerComponent.prototype, "settings", {
|
|
1138
|
-
set: function (value) {
|
|
1139
|
-
if (!value || this._settings.isSame(value))
|
|
1140
|
-
return;
|
|
1141
|
-
this._settings = value;
|
|
1142
|
-
this.initLayer();
|
|
1143
|
-
},
|
|
1144
|
-
enumerable: false,
|
|
1145
|
-
configurable: true
|
|
1146
|
-
});
|
|
1147
|
-
FeatureLayerComponent.prototype.initLayer = function () {
|
|
1148
|
-
this.removeLayer();
|
|
1149
|
-
this.layer = this.factory.build(this._settings);
|
|
1150
|
-
this.postboy.fire(new AddLayerCommand(this.layer));
|
|
1151
|
-
};
|
|
1152
|
-
FeatureLayerComponent.prototype.removeLayer = function () {
|
|
1153
|
-
if (this.layer)
|
|
1154
|
-
this.postboy.fire(new RemoveLayerCommand(this.layer));
|
|
1155
|
-
};
|
|
1156
|
-
return FeatureLayerComponent;
|
|
1157
|
-
}(DestructibleComponent));
|
|
1158
|
-
FeatureLayerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FeatureLayerComponent, deps: [{ token: MapPostboyService }, { token: FeatureLayerFactory }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1159
|
-
FeatureLayerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FeatureLayerComponent, selector: "lib-feature-layer", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1160
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FeatureLayerComponent, decorators: [{
|
|
1161
|
-
type: i0.Component,
|
|
1162
|
-
args: [{
|
|
1163
|
-
selector: 'lib-feature-layer',
|
|
1164
|
-
template: '',
|
|
1165
|
-
styleUrls: [],
|
|
1166
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1167
|
-
}]
|
|
1168
|
-
}], ctorParameters: function () { return [{ type: MapPostboyService }, { type: FeatureLayerFactory }]; }, propDecorators: { settings: [{
|
|
1169
|
-
type: i0.Input
|
|
1170
|
-
}] } });
|
|
1171
|
-
|
|
1172
|
-
var MarkersComponent = /** @class */ (function (_super) {
|
|
1173
|
-
__extends(MarkersComponent, _super);
|
|
1174
|
-
function MarkersComponent(postboy) {
|
|
1175
|
-
var _this = _super.call(this) || this;
|
|
1176
|
-
_this.postboy = postboy;
|
|
1177
|
-
_this.layerName = '';
|
|
1178
|
-
_this._markers = [];
|
|
1179
|
-
return _this;
|
|
1180
|
-
}
|
|
1181
|
-
Object.defineProperty(MarkersComponent.prototype, "markers", {
|
|
1182
|
-
set: function (value) {
|
|
1183
|
-
this._markers = value;
|
|
1184
|
-
this.putMarkers();
|
|
1185
|
-
},
|
|
1186
|
-
enumerable: false,
|
|
1187
|
-
configurable: true
|
|
1188
|
-
});
|
|
1189
|
-
MarkersComponent.prototype.ngOnInit = function () {
|
|
1190
|
-
var _this = this;
|
|
1191
|
-
this.postboy
|
|
1192
|
-
.subscribe(MapRenderedEvent.ID)
|
|
1193
|
-
.pipe(operators.filter(function (m) { return !!m; }), operators.first())
|
|
1194
|
-
.subscribe(function () { return _this.putMarkers(); });
|
|
1195
|
-
};
|
|
1196
|
-
MarkersComponent.prototype.putMarkers = function () {
|
|
1197
|
-
var _a;
|
|
1198
|
-
if (!((_a = this._markers) === null || _a === void 0 ? void 0 : _a.length))
|
|
1199
|
-
return;
|
|
1200
|
-
this.postboy.fire(new PlaceLayerFeaturesCommand(this.layerName, this._markers.map(function (m) { return m.feature; })));
|
|
1201
|
-
};
|
|
1202
|
-
return MarkersComponent;
|
|
1203
|
-
}(DestructibleComponent));
|
|
1204
|
-
MarkersComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MarkersComponent, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1205
|
-
MarkersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MarkersComponent, selector: "lib-markers", inputs: { layerName: "layerName", markers: "markers" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1206
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MarkersComponent, decorators: [{
|
|
1207
|
-
type: i0.Component,
|
|
1208
|
-
args: [{
|
|
1209
|
-
selector: 'lib-markers',
|
|
1210
|
-
template: '',
|
|
1211
|
-
styleUrls: [],
|
|
1212
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1213
|
-
}]
|
|
1214
|
-
}], ctorParameters: function () { return [{ type: MapPostboyService }]; }, propDecorators: { layerName: [{
|
|
1215
|
-
type: i0.Input
|
|
1216
|
-
}], markers: [{
|
|
1217
|
-
type: i0.Input
|
|
1218
|
-
}] } });
|
|
1219
|
-
|
|
1220
|
-
var MapModule = /** @class */ (function () {
|
|
1221
|
-
function MapModule() {
|
|
1222
|
-
}
|
|
1223
|
-
return MapModule;
|
|
1224
|
-
}());
|
|
1225
|
-
MapModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1226
|
-
MapModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapModule, declarations: [DestructibleComponent,
|
|
1227
|
-
MapPlateComponent,
|
|
1228
|
-
TileLayerComponent,
|
|
1229
|
-
OsmTileLayerComponent,
|
|
1230
|
-
FeatureLayerComponent,
|
|
1231
|
-
MarkersComponent], imports: [i5.CommonModule], exports: [MapPlateComponent, FeatureLayerComponent, MarkersComponent] });
|
|
1232
|
-
MapModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapModule, imports: [[i5.CommonModule]] });
|
|
1233
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapModule, decorators: [{
|
|
1234
|
-
type: i0.NgModule,
|
|
1235
|
-
args: [{
|
|
1236
|
-
imports: [i5.CommonModule],
|
|
1237
|
-
declarations: [
|
|
1238
|
-
DestructibleComponent,
|
|
1239
|
-
MapPlateComponent,
|
|
1240
|
-
TileLayerComponent,
|
|
1241
|
-
OsmTileLayerComponent,
|
|
1242
|
-
FeatureLayerComponent,
|
|
1243
|
-
MarkersComponent,
|
|
1244
|
-
],
|
|
1245
|
-
exports: [MapPlateComponent, FeatureLayerComponent, MarkersComponent],
|
|
1246
|
-
}]
|
|
1247
|
-
}] });
|
|
1248
|
-
|
|
1249
|
-
var TileLayerSettings = /** @class */ (function () {
|
|
1250
|
-
function TileLayerSettings() {
|
|
1251
|
-
this.name = 'tiles';
|
|
1252
|
-
this.maxZoom = 19;
|
|
1253
|
-
this.minZoom = 0;
|
|
1254
|
-
this.opacity = 1;
|
|
1255
|
-
this.url = '';
|
|
1256
|
-
}
|
|
1257
|
-
TileLayerSettings.copy = function (model) {
|
|
1258
|
-
var result = new TileLayerSettings();
|
|
1259
|
-
result.name = model.name;
|
|
1260
|
-
result.maxZoom = model.maxZoom;
|
|
1261
|
-
result.minZoom = model.minZoom;
|
|
1262
|
-
result.url = model.url;
|
|
1263
|
-
return result;
|
|
1264
|
-
};
|
|
1265
|
-
TileLayerSettings.prototype.setUrl = function (url) {
|
|
1266
|
-
return TileLayerSettings.copy(Object.assign(Object.assign({}, this), { url: url }));
|
|
1267
|
-
};
|
|
1268
|
-
TileLayerSettings.prototype.setName = function (name) {
|
|
1269
|
-
return TileLayerSettings.copy(Object.assign(Object.assign({}, this), { name: name }));
|
|
1270
|
-
};
|
|
1271
|
-
TileLayerSettings.prototype.setMaxZoom = function (maxZoom) {
|
|
1272
|
-
return TileLayerSettings.copy(Object.assign(Object.assign({}, this), { maxZoom: maxZoom }));
|
|
1273
|
-
};
|
|
1274
|
-
TileLayerSettings.prototype.setMinZoom = function (minZoom) {
|
|
1275
|
-
return TileLayerSettings.copy(Object.assign(Object.assign({}, this), { minZoom: minZoom }));
|
|
1276
|
-
};
|
|
1277
|
-
TileLayerSettings.prototype.isSame = function (model) {
|
|
1278
|
-
if (this.maxZoom !== model.maxZoom)
|
|
1279
|
-
return false;
|
|
1280
|
-
if (this.minZoom !== model.minZoom)
|
|
1281
|
-
return false;
|
|
1282
|
-
if (this.url !== model.url)
|
|
1283
|
-
return false;
|
|
1284
|
-
if (this.name !== model.name)
|
|
1285
|
-
return false;
|
|
1286
|
-
return true;
|
|
1287
|
-
};
|
|
1288
|
-
return TileLayerSettings;
|
|
1289
|
-
}());
|
|
1290
|
-
|
|
1291
|
-
var MarkerStyleHelper = /** @class */ (function () {
|
|
1292
|
-
function MarkerStyleHelper() {
|
|
1293
|
-
}
|
|
1294
|
-
MarkerStyleHelper.fromSvg = function (svg, size, zIndex) {
|
|
1295
|
-
if (size === void 0) { size = [30, 30]; }
|
|
1296
|
-
if (zIndex === void 0) { zIndex = 400; }
|
|
1297
|
-
var image = new Image();
|
|
1298
|
-
image.src = 'data:image/svg+xml,' + escape(svg);
|
|
1299
|
-
return new Style__default["default"]({
|
|
1300
|
-
image: new style.Icon({
|
|
1301
|
-
img: image,
|
|
1302
|
-
imgSize: size,
|
|
1303
|
-
}),
|
|
1304
|
-
zIndex: zIndex,
|
|
1305
|
-
});
|
|
1306
|
-
};
|
|
1307
|
-
MarkerStyleHelper.circle = function (radius, fill, strokeColor, strokeWidth) {
|
|
1308
|
-
if (strokeWidth === void 0) { strokeWidth = 1; }
|
|
1309
|
-
return new Style__default["default"]({
|
|
1310
|
-
image: new style.Circle({
|
|
1311
|
-
radius: radius,
|
|
1312
|
-
fill: new style.Fill({ color: fill }),
|
|
1313
|
-
stroke: new style.Stroke({ color: strokeColor, width: strokeWidth }),
|
|
1314
|
-
}),
|
|
1315
|
-
});
|
|
1316
|
-
};
|
|
1317
|
-
return MarkerStyleHelper;
|
|
1318
|
-
}());
|
|
1319
|
-
|
|
1320
|
-
/*
|
|
1321
|
-
* Public API Surface of maps
|
|
1322
|
-
*/
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* Generated bundle index. Do not edit.
|
|
1326
|
-
*/
|
|
1327
|
-
|
|
1328
|
-
exports.CallbackMessage = CallbackMessage;
|
|
1329
|
-
exports.FeatureLayerComponent = FeatureLayerComponent;
|
|
1330
|
-
exports.FeatureLayerSettings = FeatureLayerSettings;
|
|
1331
|
-
exports.GenericMessage = GenericMessage;
|
|
1332
|
-
exports.MapLyrsLabel = MapLyrsLabel;
|
|
1333
|
-
exports.MapModule = MapModule;
|
|
1334
|
-
exports.MapPlateComponent = MapPlateComponent;
|
|
1335
|
-
exports.MapPostboyService = MapPostboyService;
|
|
1336
|
-
exports.MapRenderedEvent = MapRenderedEvent;
|
|
1337
|
-
exports.MapSettings = MapSettings;
|
|
1338
|
-
exports.MarkerModel = MarkerModel;
|
|
1339
|
-
exports.MarkerStyleHelper = MarkerStyleHelper;
|
|
1340
|
-
exports.MarkersComponent = MarkersComponent;
|
|
1341
|
-
exports.MessageRegistratorService = MessageRegistratorService;
|
|
1342
|
-
exports.OsmTileLayerComponent = OsmTileLayerComponent;
|
|
1343
|
-
exports.TileLayerComponent = TileLayerComponent;
|
|
1344
|
-
exports.TileLayerSettings = TileLayerSettings;
|
|
1345
|
-
|
|
1346
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1347
|
-
|
|
1348
|
-
}));
|
|
1349
|
-
//# sourceMappingURL=maps-components-src-map.umd.js.map
|