@artstesh/maps 1.1.18 → 1.1.20
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/bundles/maps-components-src-map.umd.js +22 -20
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +22 -20
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/messages/index.js +2 -1
- package/dist/esm2015/map/models/polygon.model.js +4 -4
- package/dist/esm2015/src/map/messages/index.js +2 -1
- package/dist/esm2015/src/map/models/polygon.model.js +4 -4
- package/dist/fesm2015/maps-components-src-map.js +17 -17
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +17 -17
- package/dist/fesm2015/maps-components.js.map +1 -1
- package/dist/map/messages/index.d.ts +1 -0
- package/dist/map/models/polygon.model.d.ts +1 -1
- package/dist/src/map/messages/index.d.ts +1 -0
- package/dist/src/map/models/polygon.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
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/format'), require('ol/extent'), require('ol/control'), require('ol/proj'), require('@artstesh/postboy'), require('ol/interaction'), require('ol/interaction/Draw'), require('ol/sphere'), require('@artstesh/collections'), require('rxjs/operators'), require('ol/source'), require('ol/layer/Tile'), require('ol/source/OSM'), require('ol/layer'), require('ol/loadingstrategy'), require('ol/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('maps-components', ['exports', '@angular/core', '@angular/common', 'ol', 'ol/geom', 'ol/format', 'ol/extent', 'ol/control', 'ol/proj', '@artstesh/postboy', 'ol/interaction', 'ol/interaction/Draw', 'ol/sphere', '@artstesh/collections', 'rxjs/operators', 'ol/source', 'ol/layer/Tile', 'ol/source/OSM', 'ol/layer', 'ol/loadingstrategy', 'ol/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["maps-components"] = {}, global.ng.core, global.ng.common, global.ol, global.geom, global.format, global.extent, global.control, global.proj, global.postboy, global.interaction, global.Draw, global.Sphere, global.collections, global.rxjs.operators, global.source, global.TileLayer, global.OSM, global.layer, global.loadingstrategy, global.
|
|
5
|
-
})(this, (function (exports, i0, i6, ol, geom, format, extent, control, proj, postboy, interaction, Draw, Sphere, collections, operators, source, TileLayer, OSM, layer, loadingstrategy,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ol'), require('ol/geom'), require('ol/format'), require('ol/extent'), require('ol/geom/Polygon'), require('ol/control'), require('ol/proj'), require('@artstesh/postboy'), require('ol/interaction'), require('ol/interaction/Draw'), require('ol/sphere'), require('@artstesh/collections'), require('rxjs/operators'), require('ol/source'), require('ol/layer/Tile'), require('ol/source/OSM'), require('ol/layer'), require('ol/loadingstrategy'), require('ol/source/Cluster'), require('rxjs'), require('ol/Map'), require('ol/View'), require('ol/Overlay'), require('ol/style/Style'), require('ol/style'), require('ol/proj/epsg4326')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('maps-components', ['exports', '@angular/core', '@angular/common', 'ol', 'ol/geom', 'ol/format', 'ol/extent', 'ol/geom/Polygon', 'ol/control', 'ol/proj', '@artstesh/postboy', 'ol/interaction', 'ol/interaction/Draw', 'ol/sphere', '@artstesh/collections', 'rxjs/operators', 'ol/source', 'ol/layer/Tile', 'ol/source/OSM', 'ol/layer', 'ol/loadingstrategy', 'ol/source/Cluster', 'rxjs', 'ol/Map', 'ol/View', 'ol/Overlay', 'ol/style/Style', 'ol/style', 'ol/proj/epsg4326'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["maps-components"] = {}, global.ng.core, global.ng.common, global.ol, global.geom, global.format, global.extent, global.Polygon, global.control, global.proj, global.postboy, global.interaction, global.Draw, global.Sphere, global.collections, global.rxjs.operators, global.source, global.TileLayer, global.OSM, global.layer, global.loadingstrategy, global.Cluster, global.rxjs, global.Map, global.View, global.Overlay, global.Style, global.style, global.epsg4326));
|
|
5
|
+
})(this, (function (exports, i0, i6, ol, geom, format, extent, Polygon, control, proj, postboy, interaction, Draw, Sphere, collections, operators, source, TileLayer, OSM, layer, loadingstrategy, Cluster, rxjs, Map, View, Overlay, Style, style, epsg4326) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
28
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
29
|
+
var Polygon__default = /*#__PURE__*/_interopDefaultLegacy(Polygon);
|
|
29
30
|
var Sphere__namespace = /*#__PURE__*/_interopNamespace(Sphere);
|
|
30
31
|
var TileLayer__default = /*#__PURE__*/_interopDefaultLegacy(TileLayer);
|
|
31
32
|
var OSM__default = /*#__PURE__*/_interopDefaultLegacy(OSM);
|
|
32
|
-
var Polygon__default = /*#__PURE__*/_interopDefaultLegacy(Polygon);
|
|
33
33
|
var Cluster__default = /*#__PURE__*/_interopDefaultLegacy(Cluster);
|
|
34
34
|
var Map__default = /*#__PURE__*/_interopDefaultLegacy(Map);
|
|
35
35
|
var View__default = /*#__PURE__*/_interopDefaultLegacy(View);
|
|
@@ -732,8 +732,9 @@
|
|
|
732
732
|
feature.setId(id);
|
|
733
733
|
return new PolygonModel(feature, id, info);
|
|
734
734
|
};
|
|
735
|
-
PolygonModel.circle = function (id, lat, lng, radius, info) {
|
|
736
|
-
|
|
735
|
+
PolygonModel.circle = function (id, lat, lng, radius, vertices, info) {
|
|
736
|
+
if (vertices === void 0) { vertices = 32; }
|
|
737
|
+
var feature = new ol.Feature(Polygon.circular([lng, lat], radius, vertices));
|
|
737
738
|
feature.setId(id);
|
|
738
739
|
return new PolygonModel(feature, id, info);
|
|
739
740
|
};
|
|
@@ -1188,6 +1189,19 @@
|
|
|
1188
1189
|
}(postboy.PostboyCallbackMessage));
|
|
1189
1190
|
GetFeaturesInPointQuery.ID = '99bbc56f-34a2-4064-8300-13bb3d0662c1';
|
|
1190
1191
|
|
|
1192
|
+
var FitToFeaturesCommand = /** @class */ (function (_super) {
|
|
1193
|
+
__extends(FitToFeaturesCommand, _super);
|
|
1194
|
+
function FitToFeaturesCommand(features, zoomAfter) {
|
|
1195
|
+
if (zoomAfter === void 0) { zoomAfter = 0; }
|
|
1196
|
+
var _this = _super.call(this) || this;
|
|
1197
|
+
_this.features = features;
|
|
1198
|
+
_this.zoomAfter = zoomAfter;
|
|
1199
|
+
return _this;
|
|
1200
|
+
}
|
|
1201
|
+
return FitToFeaturesCommand;
|
|
1202
|
+
}(postboy.PostboyGenericMessage));
|
|
1203
|
+
FitToFeaturesCommand.ID = '04d67609-0b4c-4f52-aa53-ad0a3db967dc';
|
|
1204
|
+
|
|
1191
1205
|
var AddLayerCommand = /** @class */ (function (_super) {
|
|
1192
1206
|
__extends(AddLayerCommand, _super);
|
|
1193
1207
|
function AddLayerCommand(layer) {
|
|
@@ -1244,19 +1258,6 @@
|
|
|
1244
1258
|
}(postboy.PostboyGenericMessage));
|
|
1245
1259
|
RemoveTileCommand.ID = 'dab0f861-bb25-46da-9388-717bfaae798f';
|
|
1246
1260
|
|
|
1247
|
-
var FitToFeaturesCommand = /** @class */ (function (_super) {
|
|
1248
|
-
__extends(FitToFeaturesCommand, _super);
|
|
1249
|
-
function FitToFeaturesCommand(features, zoomAfter) {
|
|
1250
|
-
if (zoomAfter === void 0) { zoomAfter = 0; }
|
|
1251
|
-
var _this = _super.call(this) || this;
|
|
1252
|
-
_this.features = features;
|
|
1253
|
-
_this.zoomAfter = zoomAfter;
|
|
1254
|
-
return _this;
|
|
1255
|
-
}
|
|
1256
|
-
return FitToFeaturesCommand;
|
|
1257
|
-
}(postboy.PostboyGenericMessage));
|
|
1258
|
-
FitToFeaturesCommand.ID = '04d67609-0b4c-4f52-aa53-ad0a3db967dc';
|
|
1259
|
-
|
|
1260
1261
|
var GetLayerQuery = /** @class */ (function (_super) {
|
|
1261
1262
|
__extends(GetLayerQuery, _super);
|
|
1262
1263
|
function GetLayerQuery(name) {
|
|
@@ -3541,6 +3542,7 @@
|
|
|
3541
3542
|
exports.FeatureLayerSettings = FeatureLayerSettings;
|
|
3542
3543
|
exports.FilterFeaturesInAreaExecutor = FilterFeaturesInAreaExecutor;
|
|
3543
3544
|
exports.FilterFeaturesInPointExecutor = FilterFeaturesInPointExecutor;
|
|
3545
|
+
exports.FitToFeaturesCommand = FitToFeaturesCommand;
|
|
3544
3546
|
exports.FitToPolygonsCommand = FitToPolygonsCommand;
|
|
3545
3547
|
exports.GetFeaturesInAreaQuery = GetFeaturesInAreaQuery;
|
|
3546
3548
|
exports.GetFeaturesInPointQuery = GetFeaturesInPointQuery;
|