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

Method createRankStyleSource

src/openlayers/mapping/WebMap.js:4262–4267  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.createRankSymbolLayer * @description 创建等级符号图层的source * @param {Object} parameters - 图层信息 * @param {Array} features - 添加到图层上的features * @param {string} featureType - feature的类型 * @returns {Object} styleGroups

(parameters, features, featureType)

Source from the content-addressed store, hash-verified

4260 * @returns {Object} styleGroups
4261 */
4262 async createRankStyleSource(parameters, features, featureType) {
4263 let themeSetting = parameters.themeSetting,
4264 themeField = themeSetting.themeField;
4265 let styleGroups = await this.getRankStyleGroup(themeField, features, parameters, featureType);
4266 return styleGroups ? { parameters, styleGroups } : false;
4267 }
4268 /**
4269 * @private
4270 * @function WebMap.prototype.getRankStyleGroup

Callers 2

createRankSymbolLayerMethod · 0.95

Calls 1

getRankStyleGroupMethod · 0.95

Tested by

no test coverage detected