JSPM

ol

3.21.0-beta.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 187524
  • Score
    100M100P100Q155687F
  • License BSD-2-Clause

OpenLayers

Package Exports

  • ol
  • ol/array
  • ol/array.js
  • ol/asserts
  • ol/asserts.js
  • ol/attribution
  • ol/centerconstraint
  • ol/collection
  • ol/color
  • ol/color.js
  • ol/colorlike
  • ol/control
  • ol/control.js
  • ol/control/attribution
  • ol/control/control
  • ol/control/fullscreen
  • ol/control/mouseposition
  • ol/control/overviewmap
  • ol/control/rotate
  • ol/control/scaleline
  • ol/control/zoom
  • ol/control/zoomslider
  • ol/control/zoomtoextent
  • ol/coordinate
  • ol/coordinate.js
  • ol/css
  • ol/deviceorientation
  • ol/dom
  • ol/dom.js
  • ol/easing
  • ol/easing.js
  • ol/events
  • ol/events.js
  • ol/events/condition
  • ol/events/condition.js
  • ol/events/eventtype
  • ol/extent
  • ol/extent.js
  • ol/feature
  • ol/featureloader
  • ol/format/esrijson
  • ol/format/feature
  • ol/format/filter
  • ol/format/filter.js
  • ol/format/filter/and
  • ol/format/filter/comparisonbinary
  • ol/format/filter/equalto
  • ol/format/filter/islike
  • ol/format/filter/or
  • ol/format/formattype
  • ol/format/geojson
  • ol/format/gml
  • ol/format/gml3
  • ol/format/gpx
  • ol/format/igc
  • ol/format/kml
  • ol/format/mvt
  • ol/format/topojson
  • ol/format/wfs
  • ol/format/wkt
  • ol/format/wmscapabilities
  • ol/format/wmsgetfeatureinfo
  • ol/format/wmtscapabilities
  • ol/functions.js
  • ol/geolocation
  • ol/geom/circle
  • ol/geom/geometry
  • ol/geom/geometrycollection
  • ol/geom/geometrytype
  • ol/geom/linearring
  • ol/geom/linestring
  • ol/geom/multilinestring
  • ol/geom/multipoint
  • ol/geom/multipolygon
  • ol/geom/point
  • ol/geom/polygon
  • ol/geom/simplegeometry
  • ol/graticule
  • ol/has
  • ol/image
  • ol/imagetile
  • ol/index
  • ol/index.js
  • ol/interaction
  • ol/interaction.js
  • ol/interaction/doubleclickzoom
  • ol/interaction/draganddrop
  • ol/interaction/dragbox
  • ol/interaction/dragpan
  • ol/interaction/dragrotate
  • ol/interaction/dragrotateandzoom
  • ol/interaction/dragzoom
  • ol/interaction/draw
  • ol/interaction/extent
  • ol/interaction/interaction
  • ol/interaction/keyboardpan
  • ol/interaction/keyboardzoom
  • ol/interaction/modify
  • ol/interaction/mousewheelzoom
  • ol/interaction/pinchrotate
  • ol/interaction/pinchzoom
  • ol/interaction/pointer
  • ol/interaction/select
  • ol/interaction/snap
  • ol/interaction/translate
  • ol/layer/base
  • ol/layer/group
  • ol/layer/heatmap
  • ol/layer/image
  • ol/layer/layer
  • ol/layer/tile
  • ol/layer/vector
  • ol/layer/vectortile
  • ol/loadingstrategy
  • ol/loadingstrategy.js
  • ol/map
  • ol/mapbrowserpointerevent
  • ol/math
  • ol/math.js
  • ol/obj
  • ol/obj.js
  • ol/object
  • ol/observable
  • ol/overlay
  • ol/pointer/pointerevent
  • ol/proj
  • ol/proj.js
  • ol/proj/common
  • ol/proj/epsg3857.js
  • ol/proj/proj4
  • ol/proj/proj4.js
  • ol/proj/projection
  • ol/proj/transforms
  • ol/render
  • ol/render.js
  • ol/render/canvas
  • ol/render/feature
  • ol/renderer/canvas/imagelayer
  • ol/renderer/canvas/map
  • ol/renderer/canvas/tilelayer
  • ol/renderer/canvas/vectorlayer
  • ol/renderer/vector
  • ol/size
  • ol/size.js
  • ol/source/bingmaps
  • ol/source/cartodb
  • ol/source/cluster
  • ol/source/image
  • ol/source/imagearcgisrest
  • ol/source/imagecanvas
  • ol/source/imagemapguide
  • ol/source/imagestatic
  • ol/source/imagevector
  • ol/source/imagewms
  • ol/source/osm
  • ol/source/raster
  • ol/source/source
  • ol/source/stamen
  • ol/source/tile
  • ol/source/tilearcgisrest
  • ol/source/tiledebug
  • ol/source/tileimage
  • ol/source/tilejson
  • ol/source/tileutfgrid
  • ol/source/tilewms
  • ol/source/vector
  • ol/source/vectortile
  • ol/source/wmts
  • ol/source/xyz
  • ol/source/zoomify
  • ol/sphere
  • ol/sphere.js
  • ol/structs/lrucache
  • ol/style
  • ol/style.js
  • ol/style/circle
  • ol/style/fill
  • ol/style/icon
  • ol/style/image
  • ol/style/regularshape
  • ol/style/stroke
  • ol/style/style
  • ol/style/text
  • ol/tile
  • ol/tilegrid
  • ol/tilegrid.js
  • ol/tilegrid/tilegrid
  • ol/tilegrid/wmts
  • ol/tileurlfunction
  • ol/transform
  • ol/transform.js
  • ol/uri
  • ol/vectortile
  • ol/view
  • ol/xml

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

ol

OpenLayers for CommonJS module loaders.

Note: This is still a work in progress. Not yet ready for production.

Usage

Add the ol package as a dependency to your project.

npm install ol@beta --save

Import just what you need for your application:

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',
  layers: [
    new TileLayer({
      source: new OSM()
    })
  ],
  view: new View({
    center: [0, 0],
    zoom: 2
  })
});