Skip to content

Commit

Permalink
Add 3DTILES support to gn_relatedresources_service module
Browse files Browse the repository at this point in the history
seems it's required for OGC:3DTILES links to be properly recognized as layer links
  • Loading branch information
landryb committed Mar 28, 2023
1 parent 0d5524a commit 278e189
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@

var addWMSToMap =
gnViewerSettings.resultviewFns && gnViewerSettings.resultviewFns.addMdLayerToMap;
var add3dTilesToMap =
gnViewerSettings.resultviewFns && gnViewerSettings.resultviewFns.addMdLayerToMap;
var addEsriRestToMap =
gnViewerSettings.resultviewFns && gnViewerSettings.resultviewFns.addMdLayerToMap;

Expand Down Expand Up @@ -279,6 +281,11 @@
label: "addToMap",
action: addWMTSToMap
},
3DTILES: {
iconClass: "fa-globe",
label: "addToMap",
action: add3dTilesToMap
},
TMS: {
iconClass: "fa-globe",
label: "addToMap",
Expand Down Expand Up @@ -508,6 +515,8 @@
return "ESRI:REST";
} else if (protocolOrType.match(/wmts/i)) {
return "WMTS";
} else if (protocolOrType.match(/3dtiles/i)) {
return "3DTILES";
} else if (protocolOrType.match(/tms/i)) {
return "TMS";
} else if (protocolOrType.match(/wfs/i)) {
Expand Down

0 comments on commit 278e189

Please sign in to comment.