mirror of
https://github.com/Findus23/RainbowRoad.git
synced 2024-09-19 16:03:52 +02:00
try out tracestack map
This commit is contained in:
parent
107cbae49d
commit
b8871a8533
1 changed files with 11 additions and 2 deletions
13
src/map.ts
13
src/map.ts
|
@ -33,8 +33,17 @@ const basemap_url = retina ? basemap_hq_url : basemap_lq_url
|
||||||
const map = new Map({
|
const map = new Map({
|
||||||
target: 'map',
|
target: 'map',
|
||||||
layers: [
|
layers: [
|
||||||
|
// new TileLayer({
|
||||||
|
// source: new OSM({url: "https://maps.lw1.at/tiles/1.0.0/osm/GLOBAL_MERCATOR/{z}/{x}/{y}.png"}),
|
||||||
|
// }),
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new OSM({url: "https://maps.lw1.at/tiles/1.0.0/osm/GLOBAL_MERCATOR/{z}/{x}/{y}.png"}),
|
source: new XYZ({
|
||||||
|
url: "https://maps.lw1.at/tiles/1.0.0/tracestack/webmercator_hq/{z}/{x}/{y}.png",
|
||||||
|
tilePixelRatio: 5,
|
||||||
|
attributions: ['Data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>, <a href="http://viewfinderpanoramas.org/">SRTM</a>, <a href="https://portal.opentopography.org/datasetMetadata?otCollectionID=OT.032021.4326.2">NASADEM</a>, <a href="https://worldcover2021.esa.int">ESA WorldCover</a>; Maps © <a href="https://www.tracestrack.com/">Tracestrack</a>'],
|
||||||
|
opaque: true,
|
||||||
|
crossOrigin: null
|
||||||
|
}),
|
||||||
}),
|
}),
|
||||||
new TileLayer({
|
new TileLayer({
|
||||||
source: new XYZ({
|
source: new XYZ({
|
||||||
|
@ -103,7 +112,7 @@ const transFlagStyle = new Style({
|
||||||
const nonbinaryFlagStyle = new Style({
|
const nonbinaryFlagStyle = new Style({
|
||||||
image: new Icon({
|
image: new Icon({
|
||||||
src: nonbinaryFlag,
|
src: nonbinaryFlag,
|
||||||
scale: 0.05*800/300
|
scale: 0.05 * 800 / 300
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue