Skip to content

Converting mapObject to leafletObject, as it is not working #730

@Archer-Thane

Description

@Archer-Thane

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions