qgis / qwc2-demo-app

QWC2 demo application
Other
243 stars 155 forks source link

Rotate map view on wide (desktop/laptop) screens / default rotation angle #264

Closed raynerhoward closed 1 year ago

raynerhoward commented 3 years ago

Is it possible to set a default rotation angle on desktop and mobile screens? The rotation is set to -6.8 degrees in my QGIS project but this is not being reflected in the QWC2 web map.

BTW, I discovered that you can use Alt-Shift drag to rotate the map view.

Thanks.

manisandro commented 3 years ago

This option is not currently exposed to the client through the WMS GetProjectSettings. One could implement it as a client side config option in themesConfig.json.

raynerhoward commented 3 years ago

Where would I stick it in themes.json? Tried adding the line

"rotation": -6.8,

between "printResolutions" and "sublayers", didn't work

manisandro commented 3 years ago

You need to actually implement the support for the setting in the program code

danceb commented 1 year ago

Seems like thit is implemented now: https://qwc-services.github.io/references/qwc2_plugins/#mapplugin

So feel free to close the ticket.