Skip to content

Instantly share code, notes, and snippets.

@MaxDragonheart
Created January 3, 2021 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaxDragonheart/e82b490c8a3ffadd60f691d7bd35c3b4 to your computer and use it in GitHub Desktop.
Save MaxDragonheart/e82b490c8a3ffadd60f691d7bd35c3b4 to your computer and use it in GitHub Desktop.
Code for DirectOpenLayers
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