diff --git a/CHANGELOG.md b/CHANGELOG.md index e1f5974d3..49624172f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - Fix a bug which prevented the facility claims dashboard page header from loading [#778](https://github.com/open-apparel-registry/open-apparel-registry/pull/778) +- Fix a bug which prevented the vector tile marker layer from rendering [#782](https://github.com/open-apparel-registry/open-apparel-registry/pull/782) ## [2.10.0] - 2019-08-22 ### Added diff --git a/src/app/src/components/VectorTileFacilitiesLayer.jsx b/src/app/src/components/VectorTileFacilitiesLayer.jsx index 2ee47c2e0..e28507055 100644 --- a/src/app/src/components/VectorTileFacilitiesLayer.jsx +++ b/src/app/src/components/VectorTileFacilitiesLayer.jsx @@ -348,8 +348,8 @@ function mapStateToProps({ vectorTileLayer: { key }, }) { const querystring = createQueryStringFromSearchFilters(filters); - const tileCacheKey = createTileCacheKeyWithEncodedFilters(querystring, key); - const tileURL = createTileURLWithQueryString(filters, tileCacheKey); + const tileCacheKey = createTileCacheKeyWithEncodedFilters(filters, key); + const tileURL = createTileURLWithQueryString(querystring, tileCacheKey, false); return { tileURL, diff --git a/src/app/src/util/util.js b/src/app/src/util/util.js index f727d693c..4c98bc04c 100644 --- a/src/app/src/util/util.js +++ b/src/app/src/util/util.js @@ -277,8 +277,10 @@ export const getContributorFromQueryString = (qs) => { return parseInt(contributor, 10); }; -export const createTileURLWithQueryString = (qs, key) => - `/tile/facilitygrid/${key}/{z}/{x}/{y}.pbf`.concat(isEmpty(qs) ? '' : `?${qs}`); +export const createTileURLWithQueryString = (qs, key, grid = true) => + `/tile/${grid ? 'facilitygrid' : 'facilities'}/${key}/{z}/{x}/{y}.pbf`.concat( + isEmpty(qs) ? '' : `?${qs}`, + ); export const createTileCacheKeyWithEncodedFilters = (filters, key) => `${key}-${hash(filters).slice(0, 8)}`;