Gathering detailed insights and metrics for ol
Gathering detailed insights and metrics for ol
Gathering detailed insights and metrics for ol
Gathering detailed insights and metrics for ol
npm install ol
Typescript
Module System
Node Version
NPM Version
87
Supply Chain
99.7
Quality
97.5
Maintenance
100
Vulnerability
98.6
License
JavaScript (99.06%)
CSS (0.47%)
Handlebars (0.26%)
Shell (0.09%)
TypeScript (0.09%)
HTML (0.04%)
Total Downloads
43,667,737
Last Day
65,637
Last Week
364,702
Last Month
1,483,956
Last Year
12,688,786
BSD-2-Clause License
11,740 Stars
35,058 Commits
3,079 Forks
386 Watchers
8 Branches
381 Contributors
Updated on Mar 21, 2025
Minified
Minified + Gzipped
Latest Version
10.4.0
Package Id
ol@10.4.0
Unpacked Size
10.58 MB
Size
2.31 MB
File Count
1,086
NPM Version
10.8.2
Node Version
20.18.2
Published on
Jan 29, 2025
Cumulative downloads
Total Downloads
Last Day
-4.5%
65,637
Compared to previous day
Last Week
1.5%
364,702
Compared to previous week
Last Month
12.5%
1,483,956
Compared to previous month
Last Year
27.5%
12,688,786
Compared to previous year
OpenLayers is a high-performance, feature-packed library for creating interactive maps on the web. It can display map tiles, vector data and markers loaded from any source on any web page. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the BSD 2-Clause License.
Install the ol
package:
npm install ol
Import just what you need for your application:
1import Map from 'ol/Map'; 2import View from 'ol/View'; 3import TileLayer from 'ol/layer/Tile'; 4import XYZ from 'ol/source/XYZ'; 5 6new Map({ 7 target: 'map', 8 layers: [ 9 new TileLayer({ 10 source: new XYZ({ 11 url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' 12 }) 13 }) 14 ], 15 view: new View({ 16 center: [0, 0], 17 zoom: 2 18 }) 19});
See the following examples for more detail on bundling OpenLayers with your application:
For more detail on quick prototyping without the use of a Node.js based setup, see the Skypack example.
OpenLayers appreciates contributions of all kinds. We especially want to thank our fiscal sponsors who contribute to ongoing project maintenance.
Pozi helps connect communities through spatial thinking. We love Openlayers and it forms a core part of our platform. https://pozi.com/ https://app.pozi.com/
yey'maps is a scalable cloud GIS suite that is developed with the powerful Openlayers API and the GDAL library. https://www.yeymaps.io/
We develop leading Physical Security Information Management (PSIM) software. OpenLayers is the core of our map engine and we love it! https://ela.pl/
We advance holistic utilization and availability of spatial information, for a better planned, built and managed society. https://www.ubigu.fi/
Build custom maps and identify insights across real estate, engineering, research, business, exploration, construction, manufacturing - and so much more. https://www.scribblemaps.com/
See our GitHub sponsors page or Open Collective if you too are interested in becoming a regular sponsor.
The ol package includes auto-generated TypeScript declarations as *.d.ts
files.
OpenLayers runs on all modern browsers (with greater than 1% global usage). This includes Chrome, Firefox, Safari and Edge. For older browsers, polyfills (Fastly or Cloudflare) will likely need to be added.
Check out the hosted examples, the workshop or the API documentation.
Please use the GitHub issue tracker for all bugs and feature requests. Before creating a new issue, do a quick search to see if the problem has been reported already.
Please see our guide on contributing if you're interested in getting involved.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
2 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-03-17
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More