Lchiffon / leafletCN

An R gallery for China and other geojson choropleth map in leaflet
197 stars 36 forks source link

regionNames("吉林“)always goes wrong #11

Open helloicyvodka opened 5 years ago

helloicyvodka commented 5 years ago

regionNames("吉林“)always goes wrong

helloicyvodka commented 5 years ago

so as regionNames("吉林省“)

helloicyvodka commented 5 years ago

so as regionNames("海南省“)

ashimog commented 4 years ago

GitHub版本的 .triList[5:7] 错误地使用了GBK编码,因此无法识别。CRAN版本的.triList中不含吉林及海南,因此[mapNames$label == query]会有两个结果,导致报错。

green-ear-rabbit commented 4 years ago

如何解决呢