mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-09 07:14:36 +00:00
slippy trials
This commit is contained in:
1
map/test2/apikey
Normal file
1
map/test2/apikey
Normal file
@@ -0,0 +1 @@
|
||||
yBwA37PS2BsXxx7WM9Rr
|
||||
12
map/test2/index.html
Normal file
12
map/test2/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Quick Start</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="map"></div>
|
||||
<script type="module" src="./main.js"></script>
|
||||
</body>
|
||||
|
||||
18
map/test2/main.js
Normal file
18
map/test2/main.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import './style.css';
|
||||
import Map from '/javascript/ol/Map.js';
|
||||
import OSM from '/javascript/ol/source/OSM.js';
|
||||
import TileLayer from '/javascript/ol/layer/Tile.js';
|
||||
import View from '/javascript/ol/View.js';
|
||||
|
||||
const map = new Map({
|
||||
target: 'map',
|
||||
layers: [
|
||||
new TileLayer({
|
||||
source: new OSM(),
|
||||
}),
|
||||
],
|
||||
view: new View({
|
||||
center: [0, 0],
|
||||
zoom: 2,
|
||||
}),
|
||||
});
|
||||
14
map/test2/style.css
Normal file
14
map/test2/style.css
Normal file
@@ -0,0 +1,14 @@
|
||||
@import "/javascript/ol/ol.css";
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#map {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user