Skip to content

Commit

Permalink
Prefere 'osm-vector' as default map background
Browse files Browse the repository at this point in the history
  • Loading branch information
nkokla committed Dec 4, 2024
1 parent 5d58288 commit d4b0fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface MapItem {
}

const initBanMapConfig = {
mapStyle: 'ign-vector',
mapStyle: 'osm-vector',
displayLandRegister: false,
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/carte-base-adresse-nationale/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ function Carto({ children }: { children: JSX.Element }) {
<MapParamsWrapper>
<RingButton tooltip="Légende" className={isLegendVisible ? 'ri-close-large-line' : 'ri-apps-2-line'} onClick={toggleLegend} $isActive={isLegendVisible} />
<RingButton tooltip="Afficher les parcelles cadastrales" className={displayLandRegister ? 'ri-collage-fill' : 'ri-collage-line'} onClick={toggleCadasterLayer} $isActive={displayLandRegister} />
<RingButton tooltip="Utiliser les fonds IGN" $img="/img/map/bg-button-map-style-ign-vector.png" onClick={() => handleMapStyleChange('ign-vector')} $isActive={banMapConfig.mapStyle === 'ign-vector'} $isTypeRadio />
<RingButton tooltip="Utiliser le fond OSM" $img="/img/map/bg-button-map-style-osm-vector.png" onClick={() => handleMapStyleChange('osm-vector')} $isActive={banMapConfig.mapStyle === 'osm-vector'} $isTypeRadio />
<RingButton tooltip="Utiliser la vue satellite" $img="/img/map/bg-button-map-style-ign-ortho.png" onClick={() => handleMapStyleChange('ign-ortho')} $isActive={banMapConfig.mapStyle === 'ign-ortho'} $isTypeRadio />
<RingButton tooltip="Utiliser les fonds IGN" $img="/img/map/bg-button-map-style-ign-vector.png" onClick={() => handleMapStyleChange('ign-vector')} $isActive={banMapConfig.mapStyle === 'ign-vector'} $isTypeRadio />
<RingButton tooltip="Utiliser la vue satellite IGN" $img="/img/map/bg-button-map-style-ign-ortho.png" onClick={() => handleMapStyleChange('ign-ortho')} $isActive={banMapConfig.mapStyle === 'ign-ortho'} $isTypeRadio />
</MapParamsWrapper>

<Legend className="layer" isVisible={isLegendVisible}>
Expand Down

0 comments on commit d4b0fcc

Please sign in to comment.