refactor(map): change map style from minimal-light to standard across components
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
} from '@angular/core';
|
||||
import type { LayerGroup, Map as LeafletMap, LatLngBounds, LatLngTuple, TileLayer } from 'leaflet';
|
||||
|
||||
export type MapStyle = 'minimal-light' | 'standard';
|
||||
export type MapStyle = 'standard';
|
||||
|
||||
const MAP_LAYERS: Record<
|
||||
MapStyle,
|
||||
@@ -23,12 +23,6 @@ const MAP_LAYERS: Record<
|
||||
maxZoom: number;
|
||||
}
|
||||
> = {
|
||||
'minimal-light': {
|
||||
url: 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png',
|
||||
attribution:
|
||||
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
|
||||
maxZoom: 20,
|
||||
},
|
||||
standard: {
|
||||
url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||
attribution:
|
||||
@@ -56,7 +50,7 @@ export class LocationMapComponent implements AfterViewInit, OnChanges, OnDestroy
|
||||
@Input() fallbackCenter: LatLngTuple = [-32.94682, -60.63932];
|
||||
@Input() fallbackZoom = 13;
|
||||
@Input() maxFitZoom = 15;
|
||||
@Input() mapStyle: MapStyle = 'minimal-light';
|
||||
@Input() mapStyle: MapStyle = 'standard';
|
||||
@Input() markerColor = '#24a9e0';
|
||||
|
||||
@ViewChild('mapContainer', { static: true })
|
||||
|
||||
Reference in New Issue
Block a user