提交 1360a8e3 编写于 作者: P pissang

fix(geo): fix default name property when parsing GeoJSON

上级 d7edf07d
......@@ -137,7 +137,7 @@ export default function (geoJson, nameProperty) {
}
var region = new Region(
properties[nameProperty],
properties[nameProperty || 'name'],
geometries,
properties.cp
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册