From f111a8091e6015901497bf089fe5d056abad10bc Mon Sep 17 00:00:00 2001 From: Jean-Marc Viglino Date: Tue, 30 Jul 2024 08:58:59 +0200 Subject: [PATCH] Update README.md --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0d58c719..1db1f2d2 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ ol-ext exists as ES6 modules ([ol-ext](https://www.npmjs.com/package/ol-ext)) an npm install ol-ext ```` +OpenLayers is a peer dependencies, so you need to install it as well. +```` +npm install ol +```` + + Then in your js file you can import the classes as follow: ```javascript import "ol/ol.css" @@ -81,10 +87,9 @@ The library will be available in the `node_modules/openlayers-ext/dist` director +<-- if you need polyfill -- -<-- - -or +-- or -- -->