Open stleusc opened 9 years ago
Sure, I wouldnt mind to change level to protected if that helps. Though RenderBuckets are pretty(or not so pretty yet) internal stuff and not inteded for extension outside the library. 'level' is only used inside RenderBuckets to insert known Buckets in the correct place.
As for drawing circles you could use a MeshBuckets addConvexMesh() and for antialiasing the edges add the same geometry to a LineLayer. https://gist.github.com/hjanetzek/62794836821182c80dcb
This example still needs to be updated for currently visible items relative to a MapPosition - Our drawing api to handle that automatically will verly likely be ready for testing within the next weeks :)
If you need special shaders for a RenderBucket patches would be welcome, it's one item on my want todo list.
I know it's been a while... is there any update? You mentioned the drawing api would be ready within weeks. Did that code ever make it?
Finally pushed the drawing_api work to a branch in my repo, if you want to check it out. The PathLayer uses it internally and there is a VectorLayer android example. I'm not that pleased with the dependency on jts though..
In order to create other Buckets outside the vtm package
int level;
should be made protected to be accessible from classes inheriting from RenderBucket. Should be an easy fix....
Thanks!