如何在 mapbox 中填充自定义区域?

How to fill custom area in mapbox?

我在 mapbox 编辑器中有以下地图:

是否可以填充地图的自定义区域? (在这个例子中,区域被选中,我可以看到它的属性) 我该怎么做?

您需要 filter the data and then polygon styles 设置图层样式。

比如你可以依赖的ID是ID_0,那么

#GEO_adm2[ID_0 = 81] {
  polygon-fill:#f00;
}