MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getTileFormat

Function getTileFormat

src/common/iServer/InitMapServiceBase.js:124–133  ·  view source on GitHub ↗
(tileset)

Source from the content-addressed store, hash-verified

122 */
123
124export function getTileFormat(tileset) {
125 if (tileset.tileFormat) {
126 const format = tileset.tileFormat.toLowerCase();
127 if (['jpg_png', 'default', 'png8'].includes(format)) {
128 return 'png';
129 }
130 return format;
131 }
132 return 'png';
133}
134
135/**
136 * @private

Callers 4

createMapOptionsFunction · 0.90
initMapFunction · 0.90
createMapOptionsFunction · 0.90
initMapFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected