New How To Add Together 3D Buildings To A Map


Mapbox has similar a shot added an event of 3d buildings to the Mapbox GL JS documentation. The Display Buildings inwards 3D event map provides you lot alongside all the code you lot involve to utilisation extrusions to display 3d buildings inwards a Mapbox GL map.

One affair missing from the event map is the lite properties that command the lighting of the 3D buildings: lite color, intensity, position, together with anchor. These lite properties are slow to add together to the 'Display Buildings inwards 3D' event map past times only adding -

map.setLight({color: "#6ef", intensity: 0.5, position: [1.15, 135, 45]});

to the map.on function.

If you lot desire to larn to a greater extent than nigh these lite properties thence you lot powerfulness too desire to bring a expect at the Mapbox Blog ship service Shading together with lighting 3D features inwards Mapbox GL JS.

I've too created an example map of 3d buildings inwards Mapbox GL. In my map I've added the selection to navigate the map alongside game-like controls. This enables you lot to wing around the map together with 3d buildings using your forrard together with left & correct keyboard keys. I've too used the lite properties of the 3d buildings to imitate the dropping of bombs on the map. If you lot press your keyboard downwards push clitoris the edifice lite holding flashes to imitate a bomb going off on the map.
Buat lebih berguna, kongsi:
close