Transform all defines

This commit is contained in:
Tim Schaub
2016-12-26 10:47:26 -07:00
parent b73ab8914a
commit b2a4b69d13
6 changed files with 54 additions and 19 deletions

View File

@@ -10,13 +10,13 @@ Add the `ol` package as a dependency to your project.
npm install ol@beta --save
Require just what you need for your application:
Import just what you need for your application:
```js
var OLMap = require('ol/Map');
var View = require('ol/View');
var TileLayer = require('ol/layer/Tile');
var OSM = require('ol/source/OSM');
import Map from 'ol/Map';
import View from 'ol/View';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
var map = new OLMap({
target: 'map',