Skip to content

Commit

Permalink
Some 404 errors, unable to access content #236
Browse files Browse the repository at this point in the history
Warning when using ol-geocoder from the CDN #250
The mapfile load doesn't work with the script shortcut https://unpkg.com/ol-geocoder
Now, the dist/ is delivered on Github & Github pages.
Use https://unpkg.com/ol-geocoder@latest/dist/ol-geocoder.js
This will enable the load of the map file https://unpkg.com/ol-geocoder@latest/dist/ol-geocoder.js.map
  • Loading branch information
Dominique92 committed Sep 13, 2023
1 parent b8c6493 commit 7043b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ Custom providers must implement the following methods:
Load CSS and Javascript:
```HTML
<link href="https://cdn.jsdelivr.net/npm/ol-geocoder@latest/dist/ol-geocoder.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/ol-geocoder"></script>
<script src="https://cdn.jsdelivr.net/npm/ol-geocoder/dist/ol-geocoder.js"></script>
```

##### CDN hosted - unpkg
Load CSS and Javascript:
```HTML
<link href="https://unpkg.com/ol-geocoder/dist/ol-geocoder.min.css" rel="stylesheet">
<script src="https://unpkg.com/ol-geocoder"></script>
<script src="https://unpkg.com/ol-geocoder/dist/ol-geocoder.js"></script>
```

##### Github pages hosted
Expand Down

0 comments on commit 7043b2e

Please sign in to comment.