@foodmarketmaker/mapag 0.0.8 → 0.0.9
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.
|
@@ -14106,7 +14106,8 @@ class MapComponent {
|
|
|
14106
14106
|
mapper = input(new MapboxMapperGroup(), ...(ngDevMode ? [{ debugName: "mapper" }] : []));
|
|
14107
14107
|
mapContainer = viewChild('map', ...(ngDevMode ? [{ debugName: "mapContainer" }] : []));
|
|
14108
14108
|
id = input('mapid', ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
14109
|
-
|
|
14109
|
+
onMapReady = output();
|
|
14110
|
+
mapReady = signal(undefined, ...(ngDevMode ? [{ debugName: "mapReady" }] : []));
|
|
14110
14111
|
// accessToken = input.required<string>();
|
|
14111
14112
|
// FontAwesome icons
|
|
14112
14113
|
faPrint = faPrint;
|
|
@@ -14174,7 +14175,8 @@ class MapComponent {
|
|
|
14174
14175
|
std.onReady(map, this.svc);
|
|
14175
14176
|
// Notify that the map is ready
|
|
14176
14177
|
this.zone.runOutsideAngular(() => {
|
|
14177
|
-
this.
|
|
14178
|
+
this.onMapReady.emit(map);
|
|
14179
|
+
this.mapReady.set(map);
|
|
14178
14180
|
});
|
|
14179
14181
|
// Initialize the mapper(s)
|
|
14180
14182
|
this.zone.runOutsideAngular(() => {
|
|
@@ -14200,7 +14202,7 @@ class MapComponent {
|
|
|
14200
14202
|
this.map.triggerRepaint();
|
|
14201
14203
|
}
|
|
14202
14204
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: MapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14203
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: MapComponent, isStandalone: true, selector: "mapag-map", inputs: { mapper: { classPropertyName: "mapper", publicName: "mapper", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: {
|
|
14205
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: MapComponent, isStandalone: true, selector: "mapag-map", inputs: { mapper: { classPropertyName: "mapper", publicName: "mapper", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onMapReady: "onMapReady" }, viewQueries: [{ propertyName: "mapContainer", first: true, predicate: ["map"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
14204
14206
|
<div class="mapcontainer" #map>
|
|
14205
14207
|
@if (mapper().legends.length) { @for (legend of mapper().legends; track
|
|
14206
14208
|
legend) {
|
|
@@ -14251,7 +14253,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
|
|
|
14251
14253
|
</div>
|
|
14252
14254
|
<ng-content></ng-content>
|
|
14253
14255
|
`, styles: [":host{height:100%;position:relative;overflow:hidden}.mapcontainer{margin:0;padding:0;height:100%;width:100%}.legend{position:absolute;top:10px;right:10px;background:#fff;padding:10px;border-radius:5px;box-shadow:0 2px 4px #0003;z-index:1000}.buttons{position:absolute;top:10px;left:10px;z-index:1000}.buttons>button{border-radius:5px;border:1px solid #ccc;background:#fff;color:#333;padding:8px 12px;cursor:pointer;box-shadow:0 2px 4px #0003}.buttons>button:hover{background-color:#f0f0f0}.legend-row{display:grid;grid-template-columns:auto 1fr;gap:8px;padding:4px 0;align-items:center}.legend-title{font-weight:700;text-align:center;margin-bottom:8px}.legend-item{height:15px;width:15px;border:1px solid #ccc}\n"] }]
|
|
14254
|
-
}], ctorParameters: () => [], propDecorators: { mapper: [{ type: i0.Input, args: [{ isSignal: true, alias: "mapper", required: false }] }], mapContainer: [{ type: i0.ViewChild, args: ['map', { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }],
|
|
14256
|
+
}], ctorParameters: () => [], propDecorators: { mapper: [{ type: i0.Input, args: [{ isSignal: true, alias: "mapper", required: false }] }], mapContainer: [{ type: i0.ViewChild, args: ['map', { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], onMapReady: [{ type: i0.Output, args: ["onMapReady"] }] } });
|
|
14255
14257
|
// Define map styles
|
|
14256
14258
|
const mapStyles = {
|
|
14257
14259
|
'carto-positron': {
|