Skip to content

Commit

Permalink
Merge pull request #12 from conterra/dev_ogc
Browse files Browse the repository at this point in the history
Add ogc feature layer support
  • Loading branch information
matthiasstein authored Jan 23, 2025
2 parents 710be9c + 08c26f2 commit eb6d46f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/main/js/apps/sample/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@
],
"map": {
"layers": [
{
"id": "fluren",
"url": "https://ogc-api.nrw.de/lika/v1/",
"type": "OGC_FEATURE",
"title": "Flurstücke in NRW",
"collectionId": "flurstueck",
"maxRecordCount": 5000
},
{
"type": "GROUP",
"title": "Bäume",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class DatatableActionDefinitionFactory {
const parent = ref && ref.parent;
const capabilities = parent && parent.capabilities;
if (ref && ref.sourceJSON?.type !== "Group Layer" && ref.type !== "group") {
if (ref.sourceJSON?.type === "Feature Layer" || ref.type === "feature") {
if (ref.sourceJSON?.type === "Feature Layer" || ref.type === "feature" || ref.type === "ogc-feature") {
return true;
} else if (capabilities?.operations?.supportsQuery) {
return true;
Expand Down

0 comments on commit eb6d46f

Please sign in to comment.