Center on my home

This commit is contained in:
Chandler Swift 2023-07-03 01:00:10 -05:00
parent 6e602b9d30
commit 8cd758a780
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -2,6 +2,7 @@ import './style.css';
import {Map, View} from 'ol';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
import {fromLonLat} from 'ol/proj.js';
const map = new Map({
target: 'map',
@ -11,7 +12,7 @@ const map = new Map({
})
],
view: new View({
center: [0, 0],
zoom: 2
center: fromLonLat([-93.24151, 44.80376]),
zoom: 10,
})
});