Created
January 8, 2021 13:32
-
-
Save MaxDragonheart/5557bc9f98f893461a0cda39da706977 to your computer and use it in GitHub Desktop.
Code for DirectOpenLayers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './style.css'; | |
import { | |
MapInizialized, MapSetView, BaseMapLayer, | |
wmsLayer | |
} from './directopenlayers'; | |
const mapCanvas = new MapInizialized('map'); | |
const mapCanvasView = new MapSetView(14.425, 40.825, 13); | |
const basemap = new BaseMapLayer('OSM'); | |
const osm = basemap.createOSMStandard(); | |
mapCanvas.addLayer(osm); | |
const wmsTestSource = new wmsLayer( | |
'Sentinel 2, B12', | |
'https://gis.massimilianomoraca.it/geoserver/MassimilianoMoraca/wms' | |
); | |
const wmsTest = wmsTestSource.createWMSLayer( | |
'wildfires_20170712', | |
null, | |
16, | |
10, | |
0 | |
); | |
mapCanvas.addLayer(wmsTest); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment