[Vuejs]-How to access methods of openlayers map in vue3

5👍

You can call the methods of the referenced map using this.$refs.map.map.<method>.
(this cannot be accessed inside the composition api!! Use it in e. g. mounted()).

For example you can get the size of the map:
this.$refs.map.map.getSize()

Leave a comment