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.

2
  • 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. Mar 3, 2017 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, 2017 at 8:50

2 Answers 2

3

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/.

0

it is possible. But the tile needs to be in (i belive) epsg:3857 For example the rendered tiles from mapbox works. This returns me pngs with 512x512.

"sources": {
"openmaptiles_raster": {
  "type": "raster",
  "maxzoom": 24,
  "tiles": [
    "https://api.mapbox.com/styles/v1/<user-id>/<style-id>/tiles/{z}/{x}/{y}?access_token=<token>"
  ],
  "tileSize": 512
},

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.