JSPM

ol

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 187524
  • Score
    100M100P100Q155686F
  • License BSD-2-Clause

CommonJS-friendly set of OpenLayers modules

Package Exports

  • ol
  • ol/index
  • ol/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ol) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CommonJS-friendly set of OpenLayers modules

Work in progress, not yet available.

This package will contain OpenLayers modules, as outlined in https://github.com/openlayers/ol3/issues/5679. To get the OpenLayers modules set, simply

$ npm install --save ol

Once installed, it will allow to write OpenLayers applications using code similar to this:

var OLMap = require('ol/Map');
var View = require('ol/View');
var TileLayer = require('ol/layer/Tile');
var osm = new require('ol/source/OSM')();

var map = new OLMap({
  target: 'map',
  layers: [new TileLayer({
    source: osm
  })],
  view: new View({
    center: [0, 0],
    zoom: 2
  })
});