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

Method getDefaultStyle

src/openlayers/core/StyleUtils.js:582–590  ·  view source on GitHub ↗

* @function StyleUtils.getDefaultStyle * @description 获取默认风格 * @param {string} type - 类型参数。 * @returns {string}

(type)

Source from the content-addressed store, hash-verified

580 * @returns {string}
581 */
582 static getDefaultStyle(type) {
583 var style = {};
584 var canvasStyle = DeafultCanvasStyle[type];
585 for (var prop in canvasStyle) {
586 var val = canvasStyle[prop];
587 style[prop] = val;
588 }
589 return style;
590 }
591
592 /**
593 * @function StyleUtils.getDefaultStyle

Callers 5

getStyleFromCartoMethod · 0.95
toOpenLayersStyleMethod · 0.95
tFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected