【发布时间】:2021-09-11 23:08:31
【问题描述】:
我正在尝试设置地图样式。除“fontFamily”外,所有属性均正常工作 我暂时使用这种 google 字体,但我也尝试过 'serif'、'Times' 和 'Times New Roman',它们都没有显示出任何区别。
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rye&display=swap" rel="stylesheet">
var sampleStyle = {
"elements": {
"mapElement": {
"labelVisible": true,
"fontFamily": 'Rye',
//"fontFamily": 'serif',
//"fontFamily": 'Times',
//"fontFamily": 'Times New Roman',
"labelColor": "#007bff",
},
},
"settings": {
"landColor": "#F6F4E3"
},
"version": "1.0"
};
【问题讨论】:
标签: css fonts properties bing-maps bing