Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davidh167 committed Apr 11, 2024
1 parent 0631cfb commit e3bb69b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import './style.css';
import {Map, View} from 'ol';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
// import {Map, View} from 'ol';
// import TileLayer from 'ol/layer/Tile';
// import OSM from 'ol/source/OSM';


import Map from 'https://cdn.jsdelivr.net/npm/ol/Map.js';
import View from 'https://cdn.jsdelivr.net/npm/ol/View.js';
import TileLayer from 'https://cdn.jsdelivr.net/npm/ol/layer/Tile.js';
import OSM from 'https://cdn.jsdelivr.net/npm/ol/source/OSM.js';


const map = new Map({
target: 'map',
Expand Down

0 comments on commit e3bb69b

Please sign in to comment.