10.2.1 • Published 2 months ago

ol v10.2.1

Weekly downloads
110,943
License
BSD-2-Clause
Repository
github
Last release
2 months ago

OpenLayers

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.

Getting Started

Install the ol package:

npm install ol

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 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
  })
});

See the following examples for more detail on bundling OpenLayers with your application:

Sponsors

OpenLayers appreciates contributions of all kinds. We especially want to thank our fiscal sponsors who contribute to ongoing project maintenance.

Pozi logo

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/

See our Open Collective page if you too are interested in becoming a regular sponsor.

IntelliSense support and type checking for VS Code

The ol package contains a src/ folder with JSDoc annotated sources. TypeScript can get type definitions from these sources with a jsconfig.json (when authoring in JavaScript) or tsconfig.json (when authoring in TypeScript) config file in the project root:

{
  "compilerOptions": {
    "checkJs": true,
    "baseUrl": "./",
    "paths": {
      "ol": ["node_modules/ol/src"],
      "ol/*": ["node_modules/ol/src/*"]
    }
  },
  "include": [
    "**/*.js",
    "node_modules/ol/**/*.js"
  ],
  "typeAcquisition": {
    "exclude": ["ol"]
  }
}
{
  "compilerOptions": {
    "allowJs": true,
    "baseUrl": "./",
    "paths": {
      "ol": ["node_modules/ol/src"],
      "ol/*": ["node_modules/ol/src/*"]
    }
  },
  "include": [
    "**/*.ts",
    "node_modules/ol/**/*"
  ],
  "typeAcquisition": {
    "exclude": ["ol"]
  }
}

TypeScript users may want to use a third-party types package instead.

Supported Browsers

OpenLayers runs on all modern browsers that support HTML5 and ECMAScript 5. This includes Chrome, Firefox, Safari and Edge.

For older browsers and platforms (Internet Explorer, Android 4.x, iOS v12 and older, Safari v12 and older), polyfills may be needed for the following browser features:

Documentation

Check out the hosted examples, the workshop or the API documentation.

Bugs

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.

Contributing

Please see our guide on contributing if you're interested in getting involved.

Community

Test Status

10.2.0

3 months ago

10.2.1

3 months ago

9.0.0

10 months ago

10.0.0

5 months ago

10.1.0

4 months ago

8.2.0

1 year ago

9.2.5-sh.2

7 months ago

9.2.5-sh.1

7 months ago

9.2.4

7 months ago

9.2.3

7 months ago

9.2.2

7 months ago

9.2.1

7 months ago

9.2.0

7 months ago

9.1.0

9 months ago

8.1.0

1 year ago

7.4.0

2 years ago

7.3.1-dev

2 years ago

8.0.0

1 year ago

7.5.2

1 year ago

7.5.1

1 year ago

7.5.0

1 year ago

7.3.0

2 years ago

7.2.2

2 years ago

7.2.1

2 years ago

7.2.0

2 years ago

7.1.1-pr.14101.1

2 years ago

7.1.1-pr.14101.2

2 years ago

7.0.1-pr.14067

2 years ago

7.0.1-pr.14046

2 years ago

7.0.1-pr.14067.6

2 years ago

7.0.1-pr.14067.5

2 years ago

7.0.1-pr.14067.4

2 years ago

7.0.1-pr.14067.3

2 years ago

7.0.1-pr.14067.7

2 years ago

7.0.1-pr.14067.2

2 years ago

7.0.1-pr.14067.1

2 years ago

7.1.0

2 years ago

7.0.0

2 years ago

7.0.0-pr.13891.1

2 years ago

6.15.1

2 years ago

6.15.0

2 years ago

6.14.1

3 years ago

6.14.0

3 years ago

6.13.0

3 years ago

6.12.0

3 years ago

6.10.0

3 years ago

6.11.0

3 years ago

6.9.0

3 years ago

6.8.1

3 years ago

6.8.0

3 years ago

6.7.0

3 years ago

6.6.1

3 years ago

6.6.0

3 years ago

6.5.1-module.2

4 years ago

6.5.1-module.1

4 years ago

6.5.0

4 years ago

6.4.3

4 years ago

6.4.2

4 years ago

6.4.1

4 years ago

6.4.0

4 years ago

6.3.1

5 years ago

6.3.0

5 years ago

6.2.1

5 years ago

6.2.0

5 years ago

6.1.1

5 years ago

6.1.0

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

6.0.0-dev.25

5 years ago

6.0.0-dev.24

5 years ago

6.0.0-dev.23

5 years ago

6.0.0-dev.22

5 years ago

6.0.0-dev.21

5 years ago

6.0.0-dev.20

5 years ago

6.0.0-dev.19

5 years ago

6.0.0-dev.18

5 years ago

6.0.0-dev.17

5 years ago

6.0.0-dev.16

5 years ago

6.0.0-dev.15

5 years ago

6.0.0-dev.14

5 years ago

6.0.0-dev.13

5 years ago

6.0.0-dev.12

5 years ago

6.0.0-dev.11

5 years ago

6.0.0-dev.10

5 years ago

6.0.0-dev.9

5 years ago

6.0.0-dev.8

5 years ago

6.0.0-dev.7

5 years ago

6.0.0-dev.6

5 years ago

6.0.0-dev.5

5 years ago

6.0.0-dev.4

5 years ago

6.0.0-dev.3

5 years ago

6.0.0-dev.2

5 years ago

6.0.0-dev.1

5 years ago

1.0.1-dev.8

5 years ago

1.0.1-dev.7

5 years ago

6.0.0-dev.0

5 years ago

6.0.0-beta.15

5 years ago

6.0.0-beta.14

5 years ago

6.0.0-beta.13

5 years ago

6.0.0-beta.12

5 years ago

6.0.0-beta.11

6 years ago

6.0.0-beta.10

6 years ago

6.0.0-beta.9

6 years ago

5.3.3

6 years ago

6.0.0-beta.8

6 years ago

6.0.0-beta.7

6 years ago

6.0.0-beta.6

6 years ago

5.3.2

6 years ago

6.0.0-beta.5

6 years ago

6.0.0-beta.4

6 years ago

6.0.0-beta.3

6 years ago

6.0.0-beta.2

6 years ago

5.3.1

6 years ago

6.0.0-beta.1

6 years ago

5.3.0

6 years ago

5.2.0

6 years ago

5.1.3

6 years ago

5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.1.0-beta.2

6 years ago

5.1.0-beta.1

6 years ago

5.0.3

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

5.0.0-beta.14

7 years ago

5.0.0-beta.13

7 years ago

5.0.0-beta.12

7 years ago

5.0.0-beta.11

7 years ago

5.0.0-beta.10

7 years ago

4.6.5

7 years ago

5.0.0-beta.9

7 years ago

5.0.0-nowebgl.1

7 years ago

5.0.0-beta.8

7 years ago

5.0.0-beta.7

7 years ago

5.0.0-beta.6

7 years ago

5.0.0-beta.5

7 years ago

5.0.0-beta.4

7 years ago

5.0.0-beta.3

7 years ago

5.0.0-beta.2

7 years ago

5.0.0-beta.1

7 years ago

4.6.4

7 years ago

4.6.3

7 years ago

4.6.2

7 years ago

4.6.1

7 years ago

4.6.0

7 years ago

4.5.0

7 years ago

4.5.0-beta.1

7 years ago

4.4.2

7 years ago

4.4.2-beta.1

7 years ago

4.4.1

7 years ago

4.4.1-beta.2

7 years ago

4.4.1-beta.1

7 years ago

4.4.0

7 years ago

4.3.4

7 years ago

4.3.3

7 years ago

4.3.2

7 years ago

4.3.1

7 years ago

4.3.0

7 years ago

4.3.0-beta.5

7 years ago

4.3.0-beta.4

7 years ago

4.3.0-beta.3

7 years ago

4.3.0-beta.2

7 years ago

4.3.0-beta.1

7 years ago

4.2.0

8 years ago

4.1.1

8 years ago

4.1.1-beta.1

8 years ago

4.1.0

8 years ago

4.1.0-beta.1

8 years ago

4.0.1-beta.2

8 years ago

4.0.1-beta.1

8 years ago

4.0.0-beta.1

8 years ago

3.21.0-beta.17

8 years ago

3.21.0-beta.16

8 years ago

3.21.0-beta.15

8 years ago

3.21.0-beta.14

8 years ago

3.21.0-beta.13

8 years ago

3.21.0-beta.12

8 years ago

3.21.0-beta.11

8 years ago

3.21.0-beta.10

8 years ago

3.21.0-beta.9

8 years ago

3.21.0-beta.8

8 years ago

3.21.0-beta.7

8 years ago

3.21.0-beta.6

8 years ago

3.21.0-beta.5

8 years ago

3.21.0-beta.4

8 years ago

3.21.0-beta.3

8 years ago

3.21.0-beta.2

8 years ago

3.21.0-beta.1

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago

1.0.0

8 years ago

0.0.0-reserved

9 years ago

3.1.0-pre.1

10 years ago