Skip to content

Commit

Permalink
url updated
Browse files Browse the repository at this point in the history
  • Loading branch information
JLSchaap committed Aug 29, 2024
1 parent c1d99e9 commit 86e5255
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions projects/vectortile-demo/src/app/demobox/demobox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,24 @@ export class DemoboxComponent {
ngOnInit(): void {
this.locationService.currentLocation.subscribe((currentLocation) => {
// this.currentlocation = currentLocation;
console.log ( this.getAllAvailableFonts());

})
}

getAllAvailableFonts(): FontFace[] {
const fontSet = document.fonts;
console.log(fontSet);
// some fonts may still be unloaded if they aren't used on the site

const fonts: FontFace[] = [];
fontSet.forEach(font => {
fonts.push(font);

});
return fonts;
}

DemoPreviewFeaturesToggle() {
this.isPreviewFeature = !this.isPreviewFeature
}
Expand Down
4 changes: 2 additions & 2 deletions projects/vectortile-demo/src/app/olmap/tileurl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export const tileurlBestuur: VectorTileUrl = {
}

export const tileurlTop10: VectorTileUrl = {
vectorTileUrl: 'https://api.pdok.nl/brt/top10nl/ogc/v1-preprod/tiles/NetherlandsRDNewQuad',
vectorTileUrl: 'https://api.pdok.nl/brt/top10nl/ogc/v1-demo/tiles/NetherlandsRDNewQuad',
extension: '.pbf',
ogcApiRootUrl: {
url: "https://api.pdok.nl/brt/top10nl/ogc/v1-preprod",
url: "https://api.pdok.nl/brt/top10nl/ogc/v1-demo",
lokaalIdRegex: /^\d{1,16}$/
}
}
Expand Down

0 comments on commit 86e5255

Please sign in to comment.