We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比如加载以下json只有线,怎样显示“北京市”文字?properties.name 字段
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "adcode": 110000, "name": "北京市", "center": [ 116.405285, 39.904989 ], "centroid": [ 116.41995, 40.18994 ], "childrenNum": 16, "level": "province", "parent": { "adcode": 100000 }, "subFeatureIndex": 0, "acroutes": [ 100000 ] }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [
The text was updated successfully, but these errors were encountered:
设置了对应属性 showCenterLabel: true, centerLabelPropertyName,没有效果 defaultStyle: { outlineColor: 'rgb(255,0,0)', lineWidth: 1, fill: false, tileCacheSize: 200, showMaker: true, showCenterLabel: true, pointSize: 15, ringRadius: 10, fontColor: 'rgba(255,0,0,1)', fontSize: 18, labelOffsetX: -10, labelOffsetY: -5, showLabel: true, showMarker: true, labelPropertyName: 'name', centerLabelPropertyName: 'name' },
Sorry, something went wrong.
showCenterLabel只对多边形有效。建议单独使用点数据集显示标注
No branches or pull requests
比如加载以下json只有线,怎样显示“北京市”文字?properties.name 字段
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"adcode": 110000,
"name": "北京市",
"center": [
116.405285,
39.904989
],
"centroid": [
116.41995,
40.18994
],
"childrenNum": 16,
"level": "province",
"parent": {
"adcode": 100000
},
"subFeatureIndex": 0,
"acroutes": [
100000
]
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
The text was updated successfully, but these errors were encountered: