Vue2Leaflet
Vue2Leaflet copied to clipboard
Converting mapObject to leafletObject, as it is not working
Description
The FAQ page provides some guidance on accessing a property called 'mapObject'. Despite extensive research and numerous attempts, this 'mapObject' remains undefined. However, according to this query, it appears that 'mapObject' has been renamed to 'leafletObject'. Utilizing 'leafletObject' proved successful. This renaming isn't documented anywhere, prompting me to raise this issue for an update in the FAQ and documentation.
Expected Results
Utilizing this.$refs.map.leafletObject offers functionalities like the setView method.
Actual Results
Using this.$refs.map.mapObject consistently results in undefined.
Browsers Affected
not browser specific.
- [x] Chrome
- [x] Firefox
- [x] Edge
- [x] Safari 9
- [x] Safari 8
- [x] IE 11
Versions
- Leaflet: v1.9.3
- Vue: v3.2.26
- Vue2Leaflet: v2.7.1