admin管理员组文章数量:1287915
I have a Mapbox map showing up to date items, which I can disable or enable on the map. Then an array id cleared, or cleared and re added.
When disabled, the items still show, when enabled, they still do not show - it just loads whatever the setting and array was at the start.
I have added this on a data update method:
self.repeaterMap.mapboxMap.updateGeoJSONSourceFeatures(forSourceId: "namedsourceGeo", features: self.featurelist)
self.repeaterMap.mapboxMap.updateGeoJSONSourceFeatures(forSourceId: "anothernamedsourceGeo", features: self.anotherfeaturelist)
and it is indeed calling, repeatedly, and the array feature list is indeed changing, the count is changing, still it does not update the map. Is there some method to re load the data source / SymbolLayer that I'm missing?
Edit - also tried setting a layer ".visibility = .constant(.visible)", as in this example, it's not working - /
本文标签: swiftI can39t seem to update Geojson Mapbox callStack Overflow
版权声明:本文标题:swift - I can't seem to update Geojson Mapbox call - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741319066a2372096.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论