tangrams / heightmapper

interactive heightmaps from terrain data
http://tangrams.github.io/heightmapper
MIT License
410 stars 120 forks source link

It is not possible to hide the map labels #14

Closed MichaelVortex closed 7 years ago

MichaelVortex commented 7 years ago

I've tried to hide the map labels but it's not possible. Any ideas?

///EDIT/// I think this function is not working:

function toggleLabels(active) { // scene.config.layers.water.visible = active; scene.styles.toggletext.shaders.uniforms.u_alpha = active ? 1. : 0.; scene.requestRedraw(); }

heightmapper

meetar commented 7 years ago

@MichaelVortex You're right, a related piece of functionality changed in the underlying code, so the label-toggling method will have to be updated. Thanks for the report!

meetar commented 7 years ago

Patched temporarily with https://github.com/tangrams/heightmapper/commit/af431edc7c5bdb141ca0f91390eac37b928c055c

MichaelVortex commented 7 years ago

Thank you!!!