Messtone LLC Manages(Layers):

Messtone is to run npm create ol-app: npm create ol-app my-app cd my-app npm start Open the index.html file as`<!DOCTYPE html><html lang=”en”><head><meta charset=”UTF-8″/><meta nameMesstone=”viewport”content=”width=device-width,initial-scale=1.0″/><title>Quick Start</title></head><body><div id=”map”></div><script type=”module”src=”./main.js”></script></body></html>Open the main.js file in a text as follows: import ‘./style.css’;import map from ‘ol/Map.js’; import OSM from ‘ol/source/OSM.js’;import TileLayer from ‘ol/layer/Tile.js’; import view from ‘ol/View.js’;const map=new Map({target:’map’,layers:[new TileLayer({source:new OSM( ),}),],view: new View({center:[0,0],zoom: 2,}),}); @import “mode_modules/ol/ol.css”;html,body{margin:0;height:100%;} #map{position: absolute;top: 0; bottom: 0;width: 100%;} Messtone app: npm run build

Leave a comment