
Description
ol-ext is a set of extensions for OpenLayers, the JavaScript library for interactive maps. It adds controls, interactions and popups that OpenLayers does not provide out of the box, including a storymap and timeline control, a CSS popup, Font Awesome symbols, pie and bar charts for statistical maps, a layer switcher, a Wikipedia layer, a legend control, a search control, animations, and undo and redo. You install it from npm as ES6 modules and link it into a bundler such as webpack, Rollup or Browserify. OpenLayers is a peer dependency, so you install it alongside. A deprecated package, openlayers-ext, is still listed for use in a plain web page. TypeScript declarations are maintained in a separate repository, types-ol-ext. The project has live examples and API documentation. It is aimed at developers building map applications who want ready-made map widgets rather than writing them from scratch. The source is public on GitHub under the Viglino account, and the README links example setups for webpack, Parcel and Angular.…
Highlights
- Extensions and controls for OpenLayers
- Pie and bar charts for statistical maps
- Storymap, timeline and layer switcher
- Install from npm as ES6 modules
- TypeScript declarations available
Ratings & Reviews
No ratings yet
Be the first to rate ol-ext.
People also visit

@amcharts/amcharts5
JavaScript and TypeScript charts and maps: XY, pie, map, stock, Gantt
ol-ext FAQ
What is ol-ext?
A set of extensions, controls, interactions and popups for the OpenLayers mapping library.
How do I install it?
Install the ol-ext npm package and link it into your bundler. OpenLayers is a peer dependency, so install it too.
Does it work in a plain web page?
The README mentions the deprecated openlayers-ext npm package for use in a web page, with files in its dist folder.
Are there TypeScript types?
Yes. The README says the declarations are in the types-ol-ext repository.
Is it open source?
Yes. The source is public on GitHub at Viglino/ol-ext.
What are the best ol-ext alternatives?
Popular alternatives to ol-ext include vue3-openlayers, react-map-gl and ngx-leaflet. See all ol-ext alternatives













