@artstesh/maps 9.1.0-alpha.0 → 9.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ import Static from 'ol/source/ImageStatic';
|
|
|
27
27
|
import ImageLayer from 'ol/layer/Image';
|
|
28
28
|
import RasterSource from 'ol/source/Raster';
|
|
29
29
|
import TileLayer$1 from 'ol/layer/WebGLTile';
|
|
30
|
-
import {
|
|
30
|
+
import { NgTemplateOutlet, NgIf } from '@angular/common';
|
|
31
31
|
import Map from 'ol/Map';
|
|
32
32
|
import View from 'ol/View';
|
|
33
33
|
import Style from 'ol/style/Style';
|
|
@@ -3133,14 +3133,14 @@ class MapPlateComponent extends DestructibleComponent {
|
|
|
3133
3133
|
this.registrator.down();
|
|
3134
3134
|
};
|
|
3135
3135
|
setOsm() {
|
|
3136
|
-
if (!this.map)
|
|
3136
|
+
if (!this.map())
|
|
3137
3137
|
return;
|
|
3138
3138
|
this.osmUrl.set(`https://mt{0-3}.google.com/vt/lyrs=${MapLyrsLabel.get(this._settings.lyrs)}&hl=${this._settings.language}&x={x}&y={y}&z={z}`);
|
|
3139
3139
|
this.detector.detectChanges();
|
|
3140
3140
|
this.map()?.updateSize();
|
|
3141
3141
|
}
|
|
3142
3142
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: MapPlateComponent, deps: [{ token: i0.ElementRef }, { token: MapPostboyService }, { token: MapPlateFactory }, { token: MessageRegistratorService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3143
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
3143
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.18", type: MapPlateComponent, isStandalone: true, selector: "art-map-plate", inputs: { contentRef: { classPropertyName: "contentRef", publicName: "contentRef", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: false, isRequired: false, transformFunction: null } }, providers: [
|
|
3144
3144
|
MessageRegistratorService,
|
|
3145
3145
|
MapStateService,
|
|
3146
3146
|
MapManagementService,
|
|
@@ -3151,7 +3151,7 @@ class MapPlateComponent extends DestructibleComponent {
|
|
|
3151
3151
|
FeatureService,
|
|
3152
3152
|
FeatureModificationService,
|
|
3153
3153
|
ControlsService,
|
|
3154
|
-
], usesInheritance: true, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"contentRef()\"> </ng-container>\r\n
|
|
3154
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"contentRef()\"> </ng-container>\r\n@if (osmUrl() && map()) {\r\n <art-osm-tile-layer [map]=\"map()!\" [url]=\"osmUrl()\" [opacity]=\"_settings.osmOpacity\"></art-osm-tile-layer>\r\n}\r\n@if (map()) {\r\n <art-feature-layer [settings]=\"drawingLayerSettings\"></art-feature-layer>\r\n}\r\n", styles: ["art-map-plate{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "component", type: OsmTileLayerComponent, selector: "art-osm-tile-layer", inputs: ["url", "opacity", "map"] }, { kind: "component", type: FeatureLayerComponent, selector: "art-feature-layer", inputs: ["settings"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3155
3155
|
}
|
|
3156
3156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: MapPlateComponent, decorators: [{
|
|
3157
3157
|
type: Component,
|
|
@@ -3166,7 +3166,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
3166
3166
|
FeatureService,
|
|
3167
3167
|
FeatureModificationService,
|
|
3168
3168
|
ControlsService,
|
|
3169
|
-
], encapsulation: ViewEncapsulation.None, imports: [OsmTileLayerComponent, FeatureLayerComponent, NgIf, NgTemplateOutlet], template: "<ng-container *ngTemplateOutlet=\"contentRef()\"> </ng-container>\r\n
|
|
3169
|
+
], encapsulation: ViewEncapsulation.None, imports: [OsmTileLayerComponent, FeatureLayerComponent, NgIf, NgTemplateOutlet], template: "<ng-container *ngTemplateOutlet=\"contentRef()\"> </ng-container>\r\n@if (osmUrl() && map()) {\r\n <art-osm-tile-layer [map]=\"map()!\" [url]=\"osmUrl()\" [opacity]=\"_settings.osmOpacity\"></art-osm-tile-layer>\r\n}\r\n@if (map()) {\r\n <art-feature-layer [settings]=\"drawingLayerSettings\"></art-feature-layer>\r\n}\r\n", styles: ["art-map-plate{display:block;width:100%;height:100%}\n"] }]
|
|
3170
3170
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: MapPostboyService }, { type: MapPlateFactory }, { type: MessageRegistratorService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { contentRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentRef", required: true }] }], settings: [{
|
|
3171
3171
|
type: Input
|
|
3172
3172
|
}] } });
|