cvalenzuela / Mappa

A canvas wrapper for Maps 🗺 🌍
https://mappa.js.org
360 stars 104 forks source link

3d object static zoom #12

Closed AlexandreRangel closed 6 years ago

AlexandreRangel commented 6 years ago

Dear friends from Mappa,

is this the right place for code questions?

I'm building a project based on the three.js + mapbox example (https://mappa.js.org/docs/examples-three-js.html) but I'd like to have a different 3d object zoom behaviour. I'd like the 3d objects on top of the map to change the zoom level according to the map zoom, so they could keep their relative sizes to the map features. Is it possible?

Thank you!

Alexandre Rangel www.quasecinema.org

cvalenzuela commented 6 years ago

yes, it is totally possible. You can use the zoom() function: https://mappa.js.org/docs/api-zoom.html

cvalenzuela commented 6 years ago

closing this for now as it seems resolved. feel free to reopen if necessary