Created
January 3, 2021 09:08
-
-
Save MaxDragonheart/e82b490c8a3ffadd60f691d7bd35c3b4 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, | |
MapFullScreen, MapScaleLine | |
} from './directopenlayers'; | |
const mapCanvas = new MapInizialized('map'); | |
const mapCanvasView = new MapSetView(0.0, 0.0, 0); | |
const fullScreen = new MapFullScreen(); | |
const scaleLine = new MapScaleLine(); | |
const basemap = new BaseMapLayer('OSM'); | |
const osm = basemap.createOSMStandard(); | |
mapCanvas.addLayer(osm); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment