You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like the Google Maps' plugin already has, it would be awesome if we could control whether or not the mapbox map had controls.
I'm not sure what the API would look like for this but I'm currently passing this options object into the {{ mapbox.map(locations, options).tag() }} like so:
@lindseydiloreto I just wanted to follow up with you on this to see if anything could be done to add controls, much like your Google Maps plugin offers. I don't need anything fancy. But having some basic controls would be lovely.
Via Javascript:
The instantiated MapBox Map Object is kept in the DynamicMap object return by this plugin's getMap function.
It is just not documented very clearly.
From there you can treat it like you need to.
In order to minimize issues, I use the 'callback' option in the plugin's tag() function to make sure the Craft plugin does its stuff first and then MapBox GL stuff after.
Like the Google Maps' plugin already has, it would be awesome if we could control whether or not the mapbox map had controls.
I'm not sure what the API would look like for this but I'm currently passing this
options
object into the{{ mapbox.map(locations, options).tag() }}
like so:Thanks again!
The text was updated successfully, but these errors were encountered: