Skip to content

Expose raw MapboxGl object #227

Open
@Maro8311

Description

@Maro8311

Hello everyone,
how I can I get access to the raw MapboxGl object? Thx a lot!

<template>
  <MglMap> /* some properties */> </MglMap>
</template>

<script>
import { Mapbox } from "mapbox-gl"
import { MglMap }  from "vue-mapbox"
export default {
 name: "MapComponent",
  components: {
    MglMap
  },
 created() {
    console.log(Mapbox.getCenter()) // does not work:   Mapbox is undefined
 }
}
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions