Brandon Liu
Brandon Liu
To confirm: you are using https://github.com/protomaps/PMTiles/blob/master/js/examples/openlayers.html exactly for OLPMTilesSource? I'm skeptical that the Style itself has anything to do with this, since it should be simpler than most other styles...
I'm not confident in way OLPMTilesSource is implemented as-is. We should make the integration look like this in the OL repo: https://github.com/openlayers/openlayers/blob/d7c9c954d62832d9f5b9f8ec3383ab99fba685c9/examples/pmtiles-elevation.js See the discussion on https://github.com/openlayers/openlayers/pull/14256 for context. I'm...
Hi @patrykkalinowski - can you try the change by @weskamm in https://github.com/protomaps/PMTiles/pull/142 to see if that resolves your tile loading issue?
@patrykkalinowski based on my experiments I'm almost certain that you need to specify a `maxZoom` in the constructor of `ol.source.VectorTile` here: ```js $map.layers.basemap = new VectorTileLayer({ source: new VectorTileSource({ format:...
Thanks to @tschaub I've updated the OpenLayers snippet integrations: https://github.com/protomaps/PMTiles/blob/main/js/examples/openlayers.html https://github.com/protomaps/PMTiles/blob/main/js/examples/openlayers_raster.html These now asynchronously load the PMTiles metadata to automatically determine `minZoom` and `maxZoom`. the raster tile example also uses...
Hi all, I've published a very basic [`ol-pmtiles` package](https://www.npmjs.com/package/ol-pmtiles) with example usage here: https://github.com/protomaps/PMTiles/tree/main/openlayers Current TODOs: * Explicitly pass more source creation options through the constructor. * The current packaging...
@zakjan do you have an example npm package for OL bundled with rollup? The rest of the tools in this repo use esbuild but the OL package is intentionally separate...
@zakjan thanks! I think that illustrates the issue however - Leaflet happens to work with this because references to the `L` are the same in both bundled and standalone code....
@zakjan I accomplished this by making a copy of the [source code](https://github.com/protomaps/PMTiles/blob/main/openlayers/src/index.js) into a new [script_includes.js](https://github.com/protomaps/PMTiles/blob/main/openlayers/src/script_includes.js) with manually edited imports - a hacky solution, but this is < 100 LOC...
`aws-cli` should be available in GitHub actions, as well as wrangler