Topic: Setting access token when changing mapType dynamically
Hi ! I just got this asset yesterday, and it's pretty great.
However, I've got a problem with the access token for MapBox.
What I'm doing is changing map.mapType between osm.mapnik and mapbox.satellite with the press of a UI button. The change works, but the problem is that I can't seem to be able to set the access token for mapbox this way. The field doesn't stay serialized and I can't find a property of method to set it from the code when switching to it.
How could I achieve this behaviour ?
Thanks in advance