Skip to content

Instantly share code, notes, and snippets.

@MaxDragonheart
Last active January 3, 2021 08:49
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/264fae507c2b420c8b8a30b9580cf254 to your computer and use it in GitHub Desktop.
Save MaxDragonheart/264fae507c2b420c8b8a30b9580cf254 to your computer and use it in GitHub Desktop.
Code for DirectOpenLayers
import './style.css';
import {MapInizialized, MapSetView, BaseMapLayer} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(0.0, 0.0, 0);
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