Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
56c7ece
angular version upgrade to 18->19
JLSchaap Dec 16, 2024
3e5aa01
minor cypress version upgrade
JLSchaap Dec 16, 2024
4a7be7e
get collections as options
JLSchaap Dec 16, 2024
359f445
add package.lock
JLSchaap Dec 16, 2024
1f24dd0
update package.lock
JLSchaap Dec 16, 2024
ca77434
apigen in test-ts.yml
JLSchaap Dec 16, 2024
4c33965
add get results from search endpoint
JLSchaap Dec 17, 2024
e023ebe
add search option button
JLSchaap Dec 17, 2024
d0d577f
lint errors
JLSchaap Dec 17, 2024
c6b4be3
generated api added to source because of manual not working applicati…
JLSchaap Jan 2, 2025
4af5798
no apigen during build
JLSchaap Jan 2, 2025
6464db7
formatting api
JLSchaap Jan 2, 2025
2ae176e
let relevance work
JLSchaap Jan 2, 2025
5457cef
update layout and text
JLSchaap Jan 3, 2025
d158b3b
update results faster and cancel type when new request
JLSchaap Jan 3, 2025
c8cf3a4
emit current search selection
JLSchaap Jan 3, 2025
e841460
code format
JLSchaap Jan 3, 2025
c566c08
cleanup
JLSchaap Jan 3, 2025
dbe971a
lookup on map disabled
JLSchaap Jan 3, 2025
2668366
emit selected feature
JLSchaap Jan 3, 2025
0432399
Merge branch 'master' into add-location-search-component
rkettelerij Jan 6, 2025
bae16ed
Merge branch 'master' into add-location-search-component
rkettelerij Jan 6, 2025
e43a848
emit used search url
JLSchaap Jan 14, 2025
caf0c7a
Code cleanup
JLSchaap Jan 16, 2025
0ecd47a
Merge branch 'add-location-search-component' of https://github.com/PD…
JLSchaap Jan 16, 2025
b017be9
ogc-api spec (generator) does not give 'application/json' but applica…
JLSchaap Feb 14, 2025
75e6048
styling of location api component
JLSchaap Feb 18, 2025
6bd9b1a
test page updated
JLSchaap Feb 18, 2025
12de6f1
css update
JLSchaap Feb 18, 2025
cdde32a
styling
JLSchaap Feb 18, 2025
88cd19c
styling
JLSchaap Feb 18, 2025
d6956b3
styling
JLSchaap Feb 21, 2025
bec85f1
update gitignore
JLSchaap Feb 21, 2025
99875e4
upgrade angular cli
JLSchaap Feb 21, 2025
f761447
upgrade angular
JLSchaap Feb 21, 2025
dd0758c
update cypress
JLSchaap Feb 21, 2025
8ba07da
add hover and click events to search component
JLSchaap Feb 24, 2025
4cf6944
code cleanup
JLSchaap Feb 24, 2025
2233de0
styling
JLSchaap Feb 24, 2025
ed1b2dd
code cleanup
JLSchaap Feb 24, 2025
896da07
draw location search box
JLSchaap Feb 25, 2025
9e09b83
test and package.json in sync
JLSchaap Mar 28, 2025
1f2cad3
fix on legend and and no-id to improve legenda layout
JLSchaap Mar 28, 2025
4e77e0d
no apigen for cypress tests
JLSchaap Mar 28, 2025
f7261be
update environment
JLSchaap Mar 28, 2025
76e3ac2
update code formatting, refactoring and add process legend with match…
JLSchaap Apr 11, 2025
ef0f2d1
add statusbox to sample page
JLSchaap Apr 11, 2025
2ee8eb0
format html comment
JLSchaap Apr 11, 2025
388d4bc
lint fix
JLSchaap Apr 11, 2025
73c1ad5
update cypress type error
JLSchaap Apr 11, 2025
36735f7
Merge remote-tracking branch 'origin/master' into add-location-search…
JLSchaap Apr 11, 2025
0504ff9
code cleanup
JLSchaap Apr 11, 2025
fc06533
code cleanup
JLSchaap Apr 11, 2025
b155ed4
angular upgrade
JLSchaap Apr 11, 2025
096eacd
Merge remote-tracking branch 'origin/master' into add-location-search…
JLSchaap Apr 25, 2025
41bef71
update for BRT a and angular upgrade
JLSchaap May 22, 2025
558c01d
cypress tests added
JLSchaap May 22, 2025
eee09c4
angular upgrade
JLSchaap May 22, 2025
e1bc8f5
update for font problem kadastrale kaart
JLSchaap May 23, 2025
769597b
sync with api add perceel and gemeente collections
JLSchaap Aug 29, 2025
a980af1
update when relevance is changed
JLSchaap Aug 29, 2025
54ea28e
formatting
JLSchaap Aug 29, 2025
aa53873
minor improvement no lookup for q is 1 char in locationapi
JLSchaap Sep 1, 2025
281054a
code formatting
JLSchaap Sep 1, 2025
94b5dc1
BRT instead of Openstreetmap in demo
JLSchaap Sep 2, 2025
e2a9e05
upgrade cypress
JLSchaap Oct 10, 2025
3b22511
first version with legend styling information in metadata
JLSchaap Oct 14, 2025
80fdcae
inital view brt achtergrond
JLSchaap Dec 12, 2025
e10b019
update proj4
JLSchaap Dec 12, 2025
948ad22
Merge remote-tracking branch 'origin/master' into add-location-search…
JLSchaap Dec 12, 2025
168548c
update lockfile
JLSchaap Dec 12, 2025
33da396
update package
JLSchaap Dec 12, 2025
92214d1
update angular 20
JLSchaap Dec 12, 2025
dfbe5f7
update to angular 21
JLSchaap Dec 12, 2025
2fa291a
ol upgrade en angular 21 test
JLSchaap Dec 16, 2025
5d594b8
es lint upgrade
JLSchaap Dec 16, 2025
4d2bab6
upgrade to 21 syntax
JLSchaap Dec 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cache-dependency-path: "./viewer/package-lock.json"

- name: Install
run: npm ci
run: npm ci

- name: Cypress run
uses: cypress-io/github-action@v6
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ viewer/dist
viewer/node_modules
viewer/cypress.env.json
hack/tmp
viewer/src/assets/*.json
viewer/view-component-*.tgz
1 change: 1 addition & 0 deletions viewer/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"root": true,
"ignorePatterns": ["src/app/api1/**", "src/app/api2/**"],
"overrides": [
{
"files": ["*.ts"],
Expand Down
41 changes: 35 additions & 6 deletions viewer/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@angular/build:application",
"options": {
"statsJson": true,
"outputPath": "dist/view-component",
"index": "src/index.html",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": ["src/assets"],
"styles": ["node_modules/ol/ol.css", "src/styles.css"],
"styles": ["src/styles.css", "node_modules/ol/ol.css"],
"scripts": [],
"browser": "src/main.ts"
},
Expand Down Expand Up @@ -55,7 +55,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "view-component:build:production"
Expand All @@ -67,13 +67,13 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "view-component:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@angular/build:karma",
"options": {
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
Expand All @@ -96,6 +96,35 @@
},
"cli": {
"schematicCollections": ["@angular-eslint/schematics"],
"analytics": false
"analytics": false,
"cache": {
"enabled": true
}
},
"schematics": {
"@schematics/angular:component": {
"type": "component"
},
"@schematics/angular:directive": {
"type": "directive"
},
"@schematics/angular:service": {
"type": "service"
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:pipe": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
}
}
6 changes: 6 additions & 0 deletions viewer/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ export default defineConfig({
},
specPattern: '**/*.cy.ts',
},

e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
})
23 changes: 23 additions & 0 deletions viewer/cypress/feature-view-test.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Feature } from 'ol'
import { idle, injectAxe, intercept, logAccessibility, mountFeatureComponent, screenshot } from './shared'
import { Polygon } from 'ol/geom'

type ProjectionTest = { code: string; testName: string; projection: string; geofix: string }

Expand Down Expand Up @@ -57,3 +59,24 @@ tests.forEach(i => {
})
})
})

describe('searchbox for location API', () => {
it('It can draw feature on it', () => {
intercept('amsterdam-epgs28992.json')

const coordinates = [
[115000, 500000], // Top-left corner (northwest)
[125000, 500000], // Top-right corner (northeast)
[125000, 480000], // Bottom-right corner (southeast)
[115000, 480000], // Bottom-left corner (southwest)
[115000, 500000], // Closing the polygon by returning to the first point
]

const drawFeature = new Feature({
geometry: new Polygon([coordinates]),
})

mountFeatureComponent('http://www.opengis.net/def/crs/EPSG/0/28992', 'BRT', 'default', { itemsUrl: 'https://test/items' }, drawFeature)
screenshot('drawFeature')
})
})
133 changes: 133 additions & 0 deletions viewer/cypress/fixtures/collectionfix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"links": [
{
"rel": "self",
"type": "application/json",
"title": "This document as JSON",
"href": "https://api.pdok.nl/bzk/location-api/autocomplete/v1-preprod/collections?f=json"
},
{
"rel": "alternate",
"type": "text/html",
"title": "This document as HTML",
"href": "https://api.pdok.nl/bzk/location-api/autocomplete/v1-preprod/collections?f=html"
},
{
"rel": "license",
"type": "text/html",
"title": "CC0 1.0",
"href": "http://creativecommons.org/publicdomain/zero/1.0/deed.nl"
}
],
"collections": [
{
"id": "functioneel_gebied",
"title": "functioneel_gebied",
"version": 1,
"displayNameTemplate": "{{.typefunctioneelgebied | firstupper}} {{.naamnl}}",
"links": [
{
"rel": "source",
"type": "text/html",
"title": "functioneel_gebied_multivlak",
"href": "https://api.pdok.nl/brt/top10nl/ogc/v1/collections/functioneel_gebied_multivlak"
},
{
"rel": "source",
"type": "text/html",
"title": "functioneel_gebied_punt",
"href": "https://api.pdok.nl/brt/top10nl/ogc/v1/collections/functioneel_gebied_punt"
},
{
"rel": "source",
"type": "text/html",
"title": "functioneel_gebied_vlak",
"href": "https://api.pdok.nl/brt/top10nl/ogc/v1/collections/functioneel_gebied_vlak"
}
]
},
{
"id": "geografisch_gebied",
"title": "geografisch_gebied",
"version": 1,
"displayNameTemplate": "{{.typegeografischgebied | firstupper}} {{.naamnl}}",
"links": [
{
"rel": "source",
"type": "text/html",
"title": "geografisch_gebied_multivlak",
"href": "https://api.pdok.nl/brt/top10nl/ogc/v1/collections/geografisch_gebied_multivlak"
},
{
"rel": "source",
"type": "text/html",
"title": "geografisch_gebied_punt",
"href": "https://api.pdok.nl/brt/top10nl/ogc/v1/collections/geografisch_gebied_punt"
},
{
"rel": "source",
"type": "text/html",
"title": "geografisch_gebied_vlak",
"href": "https://api.pdok.nl/brt/top10nl/ogc/v1/collections/geografisch_gebied_vlak"
}
]
},
{
"id": "ligplaats",
"title": "ligplaats",
"version": 1,
"displayNameTemplate": "{{.openbare_ruimte_naam}} {{.huisnummer}}{{.huisletter}}, {{.postcode}} {{.woonplaats_naam}} ({{.bronhouder_naam}})",
"links": [
{
"rel": "source",
"type": "text/html",
"title": "ligplaats",
"href": "https://api.pdok.nl/lv/bag/ogc/v1-demo/collections/ligplaats"
}
]
},
{
"id": "standplaats",
"title": "standplaats",
"version": 1,
"displayNameTemplate": "{{.openbare_ruimte_naam}} {{.huisnummer}}{{.huisletter}}, {{.postcode}} {{.woonplaats_naam}} ({{.bronhouder_naam}})",
"links": [
{
"rel": "source",
"type": "text/html",
"title": "standplaats",
"href": "https://api.pdok.nl/lv/bag/ogc/v1-demo/collections/standplaats"
}
]
},
{
"id": "verblijfsobject",
"title": "verblijfsobject",
"version": 1,
"displayNameTemplate": "{{.openbare_ruimte_naam}} {{.huisnummer}}{{.huisletter}}, {{.postcode}} {{.woonplaats_naam}} ({{.bronhouder_naam}})",
"links": [
{
"rel": "source",
"type": "text/html",
"title": "verblijfsobject",
"href": "https://api.pdok.nl/lv/bag/ogc/v1-demo/collections/verblijfsobject"
}
]
},
{
"id": "woonplaats",
"title": "woonplaats",
"version": 1,
"displayNameTemplate": "{{.woonplaats}} ({{.bronhouder_naam}})",
"links": [
{
"rel": "source",
"type": "text/html",
"title": "woonplaats",
"href": "https://api.pdok.nl/lv/bag/ogc/v1-demo/collections/woonplaats"
}
]
}
],
"numberReturned": 6
}
Loading
Loading