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

TileGridLayer not working anymore #111

Closed stleusc closed 9 years ago

stleusc commented 9 years ago

after upgrading to latest Master the TileGridLayer that I had in the background does not render anymore. Even removing all other layers leaves me with just the background color and no Grid....

I use new TileGridLayer(mMap.getMap(), 0xBEBEBE00, 1f, 16) and nothing shows. Worked before.

stleusc commented 9 years ago

when the textStyle in the constructor is null then mLineBucket.addLine(mLines); is never called, thus there is nothing to draw! mLineBucket.addLine(mLines); is only called in void update() and only if mText != null

The old code had mLineBucket.addLine(mLines); called in the constructor at the end. I moved it back for testing and it fixed the issue.

Not sure if that's the right way to do it though.

hjanetzek commented 9 years ago

Thanks! yea that one was missing..