Commit ffc0beef authored by Andres Käver's avatar Andres Käver
Browse files

initial map

parent dbd6ed90
Pipeline #800 passed with stages
in 1 minute and 14 seconds
......@@ -67,8 +67,8 @@ export class HomeIndex {
}
//this.map = L.map('map').setView([59.3953607, 24.6643414], 15);
this.map = L.map('map').setView([59.3245441,25.6506961], 14);
this.map = L.map('map').setView([59.3953607, 24.6643414], 18);
//this.map = L.map('map').setView([59.3245441,25.6506961], 14);
L.tileLayer(
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
......@@ -91,13 +91,16 @@ export class HomeIndex {
//longitude: 25.6569272
/*
// use this? https://github.com/IvanSanchez/Leaflet.ImageOverlay.Rotated/blob/gh-pages/Leaflet.ImageOverlay.Rotated.js
const topLat= 59.337;
const topLng = 25.645;
const width = 0.035;
const height = 0.025;
const imageBounds: L.LatLngBoundsExpression = [
[topLat, topLng],
[topLat - height, topLng + width]];
[topLat - height, topLng + width]
];
L.imageOverlay(imageUrl, imageBounds).addTo(this.map);
L.imageOverlay(imageUrl, imageBounds).bringToFront();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment