1

I am trying out Mapbox and I do not see any ways to add my WMTS service as a basemap in Style in Mapbox.

Instead of using the Mapbox basemap, I will like to use a WMTS service as the basemap. There is not options to add WMTS in Tilesets. Styles only allow me to add a file or Tilesets/Datasets. I am trying to figure out how to add a WMTS to Style so that I can use it as the basemap before publishing it. I am also very new to Mapbox, trying to figure out how to use.

  • 1
    Could you expand you question to include what you have tried so far and and any other research you've done into this problem. – Knightshound Mar 3 '17 at 7:53
  • Instead of using the Mapbox basemap, I will like to use a WMTS service as the basemap. There is not options to add WMTS in Tilesets. Styles only allow me to add a file or Tilesets/Datasets. I am trying to figure out how to add a WMTS to Style so that I can use it as the basemap before publishing it. I am also very new to Mapbox, trying to figure out how to use. – user45979 Mar 3 '17 at 8:50
2

You can't add a WMTS service into a Mapbox Style in Mapbox Studio. Although the Mapbox Style Spec allows for tiled raster sources https://www.mapbox.com/mapbox-gl-js/style-spec/#sources-raster, you can't upload these to Mapbox Studio.

If you want to use Mapbox to add data on top of an existing WMTS service, then create your transparent overlay Style in Mapbox Studio and then on the client side (so in Mapbox GL JS) inject the WMTS layer into your style like in this example https://www.mapbox.com/mapbox-gl-js/example/wms/.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.