[英]Is MultiLineString geoJSON feature type supported by mapbox-gl?
When i try to add source with MultiLineString to 'line' layer nothing is rendered. 当我尝试将带有MultiLineString的源添加到“行”层时,不会呈现任何内容。 No errors, no lines.
没有错误,没有行。
After i transformed MultiLineString features into LineString features lines rendered successfully. 在将MultiLineString功能转换为LineString功能后,线成功渲染。
Yes, MultiLineString
s are supported by mapbox-gl-js. 是的,mapbox-gl-js支持
MultiLineString
。 Here's a working JSBIN: https://jsbin.com/cozudodelo/edit?html,output 这是一个有效的JSBIN: https ://jsbin.com/cozudodelo/edit ? html,输出
I would recommend validating your GeoJSON with a tool like geojsonhint to make sure you're not running into missing brackets or something. 我建议您使用geojsonhint之类的工具来验证您的GeoJSON,以确保您不会遇到缺少括号或其他东西的情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.