mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Flat view for 3D is disabled for added building and model layer

Open WataruTsuchida opened this issue 1 year ago • 5 comments

When using the standard style, it works automatically by changing pitch, but it is not affecting dynamically added building and model layers.

WataruTsuchida avatar Feb 14 '24 09:02 WataruTsuchida

Could you provide video/code example of what you mean?

underoot avatar Feb 15 '24 09:02 underoot

dynamically added building and model layers

@WataruTsuchida Do you mean that custom layer using Three.js is not correctly rendered, or model layer added using this approach?

If you have a custom layer and issues with orthographic camera projection, would this work around the issue?

map.setCamera({"camera-projection": "perspective"})

astojilj avatar Feb 16 '24 08:02 astojilj

Appears that react-map-gl has odd behaviour with v3, setCamera({"camera-projection": "orthographc"}) before we talk about this issue.

Let me check....

WataruTsuchida avatar Feb 22 '24 10:02 WataruTsuchida

In my codes, pitch 0 does not enable flat view. https://github.com/mapbox/mapbox-gl-js/assets/81536433/e2418d88-b17a-4e4f-bf14-21c08c180f2d

I want this effect. https://github.com/mapbox/mapbox-gl-js/assets/81536433/cf93c51a-60be-4275-bd15-eb2059e65a97

WataruTsuchida avatar Feb 22 '24 10:02 WataruTsuchida

@WataruTsuchida did you manage to find a fix for this? I'm running in to the same issue where I'm unable to get the map to lay flat like it is in the studio editor.

jamesedmonston avatar May 23 '24 19:05 jamesedmonston