Skip to content

Commit

Permalink
Styles 4.0.0 (#301)
Browse files Browse the repository at this point in the history
* Styles 4.0.0-alpha.1 [#282]

* remove pmap prefixes from style and refactor layers (breaking change)
* unfreeze map viewer version
* upgrade viewer to pmtiles 3.1.0
  • Loading branch information
bdon authored Sep 20, 2024
1 parent 55d0df2 commit 301b836
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 282 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Styles v4.0.0-alpha.1
------
- remove all `pmap:` prefixes from style (breaking change) (#282)
- refactor layers as described in tiles v4.0.0-alpha.3

Tiles v4.0.0-alpha.3
------
- remove all `pmap:` prefixes (breaking change) [#282]
Expand Down
9 changes: 5 additions & 4 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"maplibre-gl": "^4.7.0",
"pixelmatch": "^5.3.0",
"pmtiles": "3.0.5",
"pmtiles": "3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
Expand Down
9 changes: 1 addition & 8 deletions app/src/MapViewComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { language_script_pairs } from "../../styles/src/language.ts";
import { LayerSpecification } from "@maplibre/maplibre-gl-style-spec";

import { FileSource, PMTiles, Protocol } from "pmtiles";
import { Build } from "./BuildsComponent";
import { createHash, parseHash } from "./hash";

const GIT_SHA = (import.meta.env.VITE_GIT_SHA || "main").substr(0, 8);
Expand Down Expand Up @@ -338,13 +337,7 @@ export default function MapViewComponent() {
return r.json();
})
.then((j) => {
// freeze at 0917 while we transition to v4
const builds = j.filter(
(build: Build) => build.key <= "20240917.pmtiles",
);
setTiles(
`https://build.protomaps.com/${builds[builds.length - 1].key}`,
);
setTiles(`https://build.protomaps.com/${j[j.length - 1].key}`);
});
}
}, [tiles]);
Expand Down
Loading

0 comments on commit 301b836

Please sign in to comment.