vue-leaflet/Vue2Leaflet

Converting mapObject to leafletObject, as it is not working

Opened this issue · 0 comments

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.

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

  • Leaflet: v1.9.3
  • Vue: v3.2.26
  • Vue2Leaflet: v2.7.1