High-performance JavaScript library for interactive web maps
open sourceBSD-2-Clausefree
OpenLayers is a free, open source JavaScript library for putting dynamic, interactive maps in any web page. It displays map tiles, vector data and markers from any source: tiled layers from OpenStreetMap, Bing, Mapbox, Stadia Maps or any XYZ source, OGC services such as WMS and WMTS and untiled layers, and vector data from GeoJSON, TopoJSON, KML, GML and Mapbox vector tiles. It renders with Canvas 2D and WebGL, works on mobile out of the box, and is published on npm as the ol package with TypeScript types, so applications import only the components they need. Controls are styled with CSS and every level of the API can be hooked into or extended. It's released under the 2-clause BSD licence.
Problems it solves
- add an interactive map to a web page
- display GeoJSON or KML data on a web map
- show WMS or WMTS layers from a GIS server in the browser
- render vector tiles in a JavaScript map
- open source alternative to the Google Maps JavaScript API
- build a GIS web application in JavaScript
Features
- Tiled layers from OSM, Bing, Mapbox, Stadia Maps and any XYZ source
- OGC mapping services (WMS, WMTS) and untiled layers
- Vector data from GeoJSON, TopoJSON, KML, GML and Mapbox vector tiles
- Canvas 2D and WebGL rendering
- Mobile support out of the box
- Import only the modules you need (npm package ol with TypeScript types)
- Controls styled with CSS and an extensible API
Alternatives
The same job
These do what OpenLayers does.
- Leaflet The leading open-source JavaScript library for interactive maps
- MapLibre GL JS Open-source TypeScript library for interactive vector tile maps in the browser
- Mapbox GL JS JavaScript library for interactive vector maps with Mapbox
