cvalenzuela / Mappa

A canvas wrapper for Maps 🗺 🌍
https://mappa.js.org
360 stars 104 forks source link

How to access map provider members? #39

Open nicolassanmar opened 4 years ago

nicolassanmar commented 4 years ago

Hi this may be some of a noob question, but i cannot figure out how to access the map object the provider, provides.

For example, im using MaboxGL.

mappa = new Mappa('MapboxGL', mappaKey); myMap = mappa.tileMap(options);

If i wanted to use the Mapbox member isMoving(), how would I be able to do it?

tiagoFonseca1109 commented 3 years ago

I have a similiar problem

Following the documentation i discovered that it should be like:

myMap.map.MethodOfMapProvider()

Im using MapBoxGl but i can´t acces this methods. I get the error "Cannot read property 'isMoving' of undefined"

What do i need to do ?