Skip to content
New issue

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

GeoJSON.toGeometry(collection, geometry =>fun)不能取到属性值 #1074

Closed
chaogis opened this issue Mar 5, 2020 · 0 comments
Closed

GeoJSON.toGeometry(collection, geometry =>fun)不能取到属性值 #1074

chaogis opened this issue Mar 5, 2020 · 0 comments

Comments

@chaogis
Copy link

chaogis commented Mar 5, 2020

maptalks's version and what browser you use?

maptalks's version: v0.47.0
browser : google chrome
Issue description

关于将geojson转为geometry的过程中, 对geometry进行处理的时候,
通过console.log(geometry)可以打印输出geometry中包含的properties属性;
但是调试的过程中,或者通过 geometry.properties 或 geometry['properties']的方式,
却提示geometry中没有properties 属性,很奇怪,前后不一致!
希望能解决这个问题.

Please provide a reproduction URL (on any jsfiddle like site)

https://codepen.io/chaogis/pen/WNvZpbQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants