opensciencemap / vtm

a vector-tile map library written in java - running on android, desktop and within the browser
GNU Lesser General Public License v3.0
238 stars 176 forks source link

RenderBucket level not visible #110

Open stleusc opened 9 years ago

stleusc commented 9 years ago

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!

hjanetzek commented 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.

stleusc commented 9 years ago

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?

hjanetzek commented 9 years ago

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..