Disable device rotation on the map

Vanbom3 years ago

Hello,
I created custom SVGs, but it breaks when the device changes the orientation.
I want to disable device rotation. Is it possible ? and in which JS or CSS file?

Anton Tananaev3 years ago

Check DeviceImages.js.

Vanbom3 years ago

Yes . i juste put :

rotateTransform = 'rotate(0deg)';
Vanbom3 years ago

I changed the order of the SVG: The path icon is the first.
So I changed the:

                 fillId: key === 'arrow'? 'arrow' : 'background',
                 rotateId: key === 'arrow'? 'arrow' : 'background',

With :

                 fillId: key === 'arrow'? 'arrow' : 'icon',
                 rotateId: key === 'arrow'? 'arrow' : 'icon',

But it does not work