我正在尝试构建一种 MapFish 样式,我可以将其应用于混合众所周知的文本类型
示例功能
{
"geometry": {
"type": "LineString",
"coordinates": [...],
"properties": {
"Name": "KN",
"id": "5a002a8e9ee4e84a3c125067",
"geoType": "LineString",
...
},
"profile":{...}
"type": "Feature"
},
我正在应用这种风格
{
"version": "2",
"[geoType IN ('LineString', 'MultiLineString', 'Curve', 'MultiCurve', 'CompoundCurve')]": {
"symbolizers": [{
"type": "Line",
"strokeColor": "#000080",
"strokeOpacity": "0.65",
"strokeWidth": "5.0"
}]
},
"[geoType IN ('Polygon', 'MultiPolygon', 'Triangle', 'CircularString', 'CurvePolygon')]": {
"symbolizers": [{
"type": "Line",
"strokeColor": "#000080",
"strokeOpacity": "0.65",
"strokeWidth": "5.0"
}, {
"type": "polygon",
"strokeColor": "#000080",
"strokeOpacity": "0.65",
"strokeWidth": "5.0",
"fillColor": "#000080",
"fillOpacity": "0.65"
}]
},
"[geoType IN ('Point', 'MultiPoint')]": {
"symbolizers": [{
"type": "point",
"pointRadius": "20",
"graphicName": "circle",
"graphicWidth": "20",
"strokeColor": "#000080",
"strokeOpacity": "0.65",
"strokeWidth": "5.0",
"fillColor": "#000080",
"fillOpacity": "0.65"
}]
}
}
它没有抛出任何错误并且打印完成但是当我从 GeoJSON 中什么也没得到时
关于我做错了什么的任何指示?