Center on my home

main
Chandler Swift 2023-07-03 01:00:10 -05:00
parent 6e602b9d30
commit 8cd758a780
Signed by: chandlerswift
GPG Key ID: A851D929D52FB93F
1 changed files with 3 additions and 2 deletions

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,
})
});