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

Method _getLabelFontFamily

src/common/mapping/WebMapV2.js:2885–2898  ·  view source on GitHub ↗
(mapInfo)

Source from the content-addressed store, hash-verified

2883 }
2884
2885 _getLabelFontFamily(mapInfo) {
2886 const fonts = ['sans-serif'];
2887 const layers = mapInfo.layers;
2888 // 获取 label 图层字体类型
2889 if (layers && layers.length > 0) {
2890 layers.forEach((layer) => {
2891 layer.labelStyle && fonts.push(layer.labelStyle.fontFamily);
2892 }, this);
2893 }
2894 fonts.push('supermapol-icons');
2895 const fontFamilys = fonts.join(',');
2896
2897 return fontFamilys;
2898 }
2899
2900 _getTiandituUrl(mapInfo) {
2901 const re = /t0/gi;

Callers 1

_createMapMethod · 0.95

Calls 2

forEachMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected