Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access map provider members? #39

Open
nicolassanmar opened this issue Apr 5, 2020 · 1 comment
Open

How to access map provider members? #39

nicolassanmar opened this issue Apr 5, 2020 · 1 comment

Comments

@nicolassanmar
Copy link

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
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants