mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added ejs support
This commit is contained in:
17
client/src/map/map.ts
Normal file
17
client/src/map/map.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as L from 'leaflet'
|
||||
|
||||
export namespace Olympus
|
||||
{
|
||||
export class Map extends L.Map
|
||||
{
|
||||
constructor(containerId: string)
|
||||
{
|
||||
super(containerId, {doubleClickZoom: false});
|
||||
this.setView([37.23, -115.8], 12);
|
||||
|
||||
L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
|
||||
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
||||
}).addTo(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user