update READMEs to point to openlayers examples [#3]

This commit is contained in:
Brandon Liu
2023-05-10 20:28:04 +08:00
parent 089a732c54
commit 1b277a951f
2 changed files with 9 additions and 1 deletions

View File

@@ -34,6 +34,8 @@ Download the `pmtiles` binary for your system at [go-pmtiles/Releases](https://g
See [js/README.md](js/README.md) and [js/examples](js/examples) for usage in Leaflet or MapLibre GL JS.
See [openlayers/README.md](openlayers/README.md) for usage in OpenLayers.
### Go
See the [go-pmtiles](https://github.com/protomaps/go-pmtiles) repository.

View File

@@ -1,6 +1,12 @@
# PMTiles for OpenLayers
## Example Usage
## Live Examples
[Vector example](https://protomaps.github.io/PMTiles/examples/openlayers/vector.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/openlayers/examples/vector.html)
[Raster example](https://protomaps.github.io/PMTiles/examples/openlayers/raster.html) | [Code](https://github.com/protomaps/PMTiles/blob/main/openlayers/examples/raster.html)
## Usage
Based on the [OpenLayers Quick Start](https://openlayers.org/doc/quickstart.html)