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/overlaypositioning
- 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/tilestate
- 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 as ES2015 modules.
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 --saveImport just what you need for your application:
import Map from 'ol/map';
import View from 'ol/view';
import TileLayer from 'ol/layer/tile';
import XYZ from 'ol/source/xyz';
new Map({
target: 'map',
layers: [
new TileLayer({
source: new XYZ({
url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png'
})
})
],
view: new View({
center: [0, 0],
zoom: 2
})
});Note that the module identifiers above (e.g. ol/map) are like the ol.Map names in the API documentation with / instead of . and all lowercase.
See the following examples for more detail on bundling OpenLayers with your application:
- Using Rollup & Uglify
- Using Rollup & Closure Compiler
- Using Webpack & Uglify
- Using Browserify & Uglify
This is still a work in progress. See openlayers/openlayers#6302 for ongoing discussion.