Mapbox tiles and Leafletjs

后端 未结 3 858
不知归路
不知归路 2020-12-23 16:20

I\'m trying to load some additional tile layers on my map but I can\'t quite figure it out. The ones that I currently have I only have thanks to someone that provided a tut

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 16:42

    I actually finally found the answer.

    The URL string needed to be updated to

    https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}
    

    The available styles ({id}) are

    • streets-v9
    • satellite-streets-v9
    • light-v9
    • dark-v9
    • outdoors-v9

提交回复
热议问题