MapTiler via Mapbox mobile controls & MapBox AccessToken

44 views
Skip to first unread message

Dmytro Gokun

unread,
Sep 25, 2018, 3:22:46 AM9/25/18
to MapTiler Community
Hi all,

it is possible to use MapTiler on the Web via Mapbox GL JS components. For that, we simply omit MapBox accessToken  and specify MapTiler's style URL. That all works perfectly.

Now, we are also trying to build some mobile apps using MapTiler via Mapbox mobile SDKs. Those simply would not start w/o a MapBox accessToken provided. And that kind of defeats the idea of using MapTiler as a cheaper alternative to MapBox. 

Is anyone aware of a work-around? Or is it totally wrong to use Maptile via Mapbox on mobile?

Thanks in advance

MapTiler

unread,
Sep 25, 2018, 7:26:31 AM9/25/18
to MapTiler User Group
Usage in all open-source Mapbox SDKs is possible out of the box - by asking the map to render the styles / sources from the URLs.

You may just need to supply some random text in the accessToken variable. It is never going to be used...

Ensure you disable telemetry - if you don't want to send any information to Mapbox servers.

In case you need MBTiles loading and complete offline mobile app example - with source code for both Android and iOS - get it at https://openmaptiles.com/mobile-app/

Petr
--
MapTiler Team
Twitter: @klokantech


--
You received this message because you are subscribed to the Google Groups "MapTiler Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maptiler+u...@googlegroups.com.
To post to this group, send email to mapt...@googlegroups.com.
Visit this group at https://groups.google.com/group/maptiler.
For more options, visit https://groups.google.com/d/optout.

Dmytro Gokun

unread,
Sep 26, 2018, 4:40:05 AM9/26/18
to MapTiler Community
Thanks a lot, Petr!
Reply all
Reply to author
Forward
0 new messages