From fac80024e0956d543b762296e0ee49cd72035b93 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 28 Oct 2022 13:28:28 -0700 Subject: Persist user preferences --- modern/src/map/core/MapView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/map/core') diff --git a/modern/src/map/core/MapView.js b/modern/src/map/core/MapView.js index e91d0cc5..7ed5eae6 100644 --- a/modern/src/map/core/MapView.js +++ b/modern/src/map/core/MapView.js @@ -75,7 +75,7 @@ const MapView = ({ children }) => { const [mapReady, setMapReady] = useState(false); const mapStyles = useMapStyles(); - const [activeMapStyles] = usePersistedState('activeMapStyles', ['locationIqStreets', 'osm', 'carto']); + const activeMapStyles = useAttributePreference('activeMapStyles', 'locationIqStreets,osm,carto'); const [defaultMapStyle] = usePersistedState('selectedMapStyle', 'locationIqStreets'); const mapboxAccessToken = useAttributePreference('mapboxAccessToken'); const maxZoom = useAttributePreference('web.maxZoom'); -- cgit v1.2.3