Closed scil closed 1 year ago
Hello @scil , I think it is not possible because you rotate a whole layer canvas, styles are applied inside canvas context.
Maybe you can replace text styles with vl-overlay components. It is html container bound to some map coordinate and it is overlays a layer/map canvas. But probably you also need to adjust coordinates in a some way according to rotation/perspective.
There is also exists an implementation of perspective map in the ol-ext lib https://viglino.github.io/ol-ext/examples/map/map.perspective.html. However in the current state it can't be used as is due to the fact that their ol.PerspectiveMap need a target HTML element at the construction time, in the VueLayers ol.Map constructing without HTML element and then bound to this.$el
in the Vue mounted
hook. But their implementation may be useful if make it as a decorator to the ol.Map instance.
I rotate the map by
the map is expected` to be warped.
Also the style.Text, which I do not expect.![image](https://user-images.githubusercontent.com/2786775/168193581-a247f12b-2a80-4eae-8ce2-7472cc24c1c5.png)
how can I make the text normal?