@artstesh/maps 4.1.18 → 4.1.19
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/esm2020/map/models/index.mjs +2 -1
- package/dist/esm2020/map/models/polygon.model.mjs +8 -1
- package/dist/esm2020/src/map/models/index.mjs +2 -1
- package/dist/esm2020/src/map/models/polygon.model.mjs +8 -1
- package/dist/fesm2015/maps-components-src-map.mjs +10 -5
- package/dist/fesm2015/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2015/maps-components.mjs +10 -5
- package/dist/fesm2015/maps-components.mjs.map +1 -1
- package/dist/fesm2020/maps-components-src-map.mjs +10 -5
- package/dist/fesm2020/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2020/maps-components.mjs +10 -5
- package/dist/fesm2020/maps-components.mjs.map +1 -1
- package/dist/map/models/index.d.ts +1 -0
- package/dist/map/models/polygon.model.d.ts +3 -0
- package/dist/src/map/models/index.d.ts +1 -0
- package/dist/src/map/models/polygon.model.d.ts +3 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Component, Injectable, ChangeDetectionStrategy, Input, ViewChild, NgMod
|
|
|
3
3
|
import * as i4 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { Feature, Collection } from 'ol';
|
|
6
|
-
import { Point } from 'ol/geom';
|
|
6
|
+
import { Point, Circle } from 'ol/geom';
|
|
7
7
|
import { GeoJSON, WKT } from 'ol/format';
|
|
8
8
|
import { getCenter, createEmpty, extend } from 'ol/extent';
|
|
9
9
|
import { Control, Zoom } from 'ol/control';
|
|
@@ -26,7 +26,7 @@ import Map from 'ol/Map';
|
|
|
26
26
|
import View from 'ol/View';
|
|
27
27
|
import Overlay from 'ol/Overlay';
|
|
28
28
|
import Style from 'ol/style/Style';
|
|
29
|
-
import { Icon, Circle, Fill, Stroke, Text } from 'ol/style';
|
|
29
|
+
import { Icon, Circle as Circle$1, Fill, Stroke, Text } from 'ol/style';
|
|
30
30
|
import { METERS_PER_UNIT } from 'ol/proj/epsg4326';
|
|
31
31
|
|
|
32
32
|
class DestructibleComponent {
|
|
@@ -238,6 +238,11 @@ class PolygonModel {
|
|
|
238
238
|
feature.setId(id);
|
|
239
239
|
return new PolygonModel(feature, id, info);
|
|
240
240
|
}
|
|
241
|
+
static circle(id, lat, lng, radius, info) {
|
|
242
|
+
let feature = new Feature(new Circle([lng, lat], radius));
|
|
243
|
+
feature.setId(id);
|
|
244
|
+
return new PolygonModel(feature, id, info);
|
|
245
|
+
}
|
|
241
246
|
}
|
|
242
247
|
|
|
243
248
|
/**
|
|
@@ -2525,7 +2530,7 @@ class MarkerStyleHelper {
|
|
|
2525
2530
|
*/
|
|
2526
2531
|
static circle(radius, fill, strokeColor, strokeWidth = 1) {
|
|
2527
2532
|
return new Style({
|
|
2528
|
-
image: new Circle({
|
|
2533
|
+
image: new Circle$1({
|
|
2529
2534
|
radius,
|
|
2530
2535
|
fill: new Fill({ color: fill }),
|
|
2531
2536
|
stroke: new Stroke({ color: strokeColor, width: strokeWidth }),
|
|
@@ -2580,7 +2585,7 @@ class PolygonStyleHelper {
|
|
|
2580
2585
|
*/
|
|
2581
2586
|
static edit(fill, stroke, strokeWidth = 1, pinRadius = 5) {
|
|
2582
2587
|
return new Style({
|
|
2583
|
-
image: new Circle({
|
|
2588
|
+
image: new Circle$1({
|
|
2584
2589
|
fill: new Fill({
|
|
2585
2590
|
color: stroke,
|
|
2586
2591
|
}),
|
|
@@ -2688,5 +2693,5 @@ class StringifyFeatureHelper {
|
|
|
2688
2693
|
* Generated bundle index. Do not edit.
|
|
2689
2694
|
*/
|
|
2690
2695
|
|
|
2691
|
-
export { AddControlCommand, CalculateAreaExecutor, CancelDrawingCommand, CancelFeatureModificationCommand, CloseTooltipCommand, ClusterLayerComponent, ClusterLayerSettings, DrawSelectionAreaCommand, DrawingType, FeatureLayerComponent, FeatureLayerSettings, FeatureOutputFormat, FilterFeaturesInAreaExecutor, FilterFeaturesInPointExecutor, FitToPolygonsCommand, GetFeaturesInAreaQuery, GetFeaturesInPointQuery, GetMapPositionExecutor, MapClickEvent, MapControl, MapControlZoomComponent, MapLyrs, MapLyrsLabel, MapModule, MapMoveEndEvent, MapPlateComponent, MapPostboyService, MapRenderedEvent, MapSettings, MarkerModel, MarkerStyleHelper, MarkersComponent, MessageRegistratorService, ModifyFeatureCommand, OsmTileLayerComponent, PolygonModel, PolygonStyleHelper, PolygonsComponent, RemoveControlCommand, SetMapCenterCommand, StartDrawingCommand, StringifyFeatureHelper, TextStyleHelper, TileLayerComponent, TileLayerSettings, TooltipComponent, TooltipSettings, ZoomControlSettings };
|
|
2696
|
+
export { AddControlCommand, CalculateAreaExecutor, CancelDrawingCommand, CancelFeatureModificationCommand, CloseTooltipCommand, ClusterLayerComponent, ClusterLayerSettings, DrawSelectionAreaCommand, DrawingType, FeatureLayerComponent, FeatureLayerSettings, FeatureOutputFormat, FilterFeaturesInAreaExecutor, FilterFeaturesInPointExecutor, FitToPolygonsCommand, GetFeaturesInAreaQuery, GetFeaturesInPointQuery, GetMapPositionExecutor, MapClickEvent, MapConstants, MapControl, MapControlZoomComponent, MapLyrs, MapLyrsLabel, MapModule, MapMoveEndEvent, MapPlateComponent, MapPostboyService, MapRenderedEvent, MapSettings, MarkerModel, MarkerStyleHelper, MarkersComponent, MessageRegistratorService, ModifyFeatureCommand, OsmTileLayerComponent, PolygonModel, PolygonStyleHelper, PolygonsComponent, RemoveControlCommand, SetMapCenterCommand, StartDrawingCommand, StringifyFeatureHelper, TextStyleHelper, TileLayerComponent, TileLayerSettings, TooltipComponent, TooltipSettings, ZoomControlSettings };
|
|
2692
2697
|
//# sourceMappingURL=maps-components.mjs.map
|