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

vtm - added points disappear when changing map position at the zoom 19 #144

Closed Bezzu closed 9 years ago

Bezzu commented 9 years ago

Hi, my app extends a MapActivity, the map has two VectorTileLayer:

When I change the map position at the zoom 19 only the points appear and disappear continuously (as in fugures below). screenshot_2015-02-27-11-42-19 screenshot_2015-02-27-11-42-24

I think that this issue is caused by the high density of points to show. Has someone already encountered this problem? Can someone help me?

Thanks in advance.

Bezzu commented 9 years ago

Hi everyone, I have resolved this issue changing the "indices" variable in the "TextureItem" class from short to int. The problem was caused by an overflow of this variable when the items associated with a texture are numerous.

hjanetzek commented 9 years ago

Thank you!