MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / handleJSONSuffix

Method handleJSONSuffix

src/openlayers/mapping/WebMap.js:5672–5683  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

5670 }
5671
5672 handleJSONSuffix(url) {
5673 if (!url.includes('.json')) {
5674 if (url.includes('?')) {
5675 let urlArr = url.split('?');
5676 urlArr[0] = urlArr[0] + '.json';
5677 url = urlArr.join('?');
5678 } else {
5679 url = url + '.json';
5680 }
5681 }
5682 return url;
5683 }
5684}

Callers 5

getMapInfoMethod · 0.95
createSpecLayerMethod · 0.95
getTileInfoMethod · 0.95
getDataflowInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected