2

I am trying to draw rectangles in Mapbox that stay upright, while the map gets rotated (and are drawn upright, when the map is already rotated).

I've used the following code to draw rectangles: https://github.com/dqunbp/mapbox-gl-draw-rectangle-restrict-area

However, when I rotate the map, the rectangle rotates too (likewise, when the map is already rotated, the rectangles will be tilted too). Is there any option to keep the rectangle in the upright orientation while the map rotates?

Example of a rectangle rotating with the orientation of the map

ioeidos
  • 21
  • 2

0 Answers0