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

Method formatScale

src/openlayers/mapping/WebMap.js:530–532  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.formatScale * @description 将有千位符的数字转为普通数字。例如:1,234 => 1234 * @param {number} scale - 比例尺分母

(scale)

Source from the content-addressed store, hash-verified

528 * @param {number} scale - 比例尺分母
529 */
530 formatScale(scale) {
531 return scale.replace(/,/g, '');
532 }
533 /**
534 * @private
535 * @function WebMap.prototype.createSpecLayer

Callers 1

getScalesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected