Skip to content

Commit

Permalink
Merge pull request #393 from open-pv/388-increase-zoom-level-of-start…
Browse files Browse the repository at this point in the history
…-map

Increase initial zoom value #388
  • Loading branch information
FlorianK13 authored Jan 10, 2025
2 parents e15f5de + a335e2d commit d51d426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Main from "../Main"
import { useToast } from "@chakra-ui/react"
import "maplibre-gl/dist/maplibre-gl.css"
import { useTranslation } from "react-i18next"
import { Layer, Map, NavigationControl, Source } from "react-map-gl/maplibre"
import { Map, NavigationControl } from "react-map-gl/maplibre"
import Footer from "../components/Footer"
import MapPopup from "../components/MapPopup"
import SearchField from "../components/PVSimulation/SearchField"
Expand Down Expand Up @@ -43,6 +43,7 @@ function Index() {

const [viewState, setViewState] = useState({
bounds: boundingBox,
zoom: 6,
})

const [mapMarkers, setMapMarkers] = useState([])
Expand Down

0 comments on commit d51d426

Please sign in to comment.