Hi @1spatialmary - With regards to your first question,... I'm not sure Styles are supported by the Mapbox Leaflet in HTMLReportGenerator.
It appears that the Map Id parameter must be – for example – one of the ids listed here: https://www.mapbox.com/api-documentation/#maps
The Styles appear to be referenced differently... see image below.
The full URL, with reference to Styles, would be similar to:
https://api.mapbox.com/v4/mapbox.outdoors/{z}/{x}/{y}.png?access_token=<token>&style;=mapbox://styles/<user>/<style_id>
You could try editing the HTML document that HTMLReportGenerator creates,.. but that might be too much overhead.
I don't know too much about creating Mapbox Styles, so I wasn't able to confirm if this would work or not.. but try editing the attached HTML (created with HTMLReportGenerator). Specifically, replace the L.mapbox.accessToken and L.mapbox.style parameters with your valid information.
Hope this helps! It might be a great idea.. to submit an Idea for Styles support.
mapbox.htm
Hi @1spatialmary - With regards to your first question,... I'm not sure Styles are supported by the Mapbox Leaflet in HTMLReportGenerator.
It appears that the Map Id parameter must be – for example – one of the ids listed here: https://www.mapbox.com/api-documentation/#maps
The Styles appear to be referenced differently... see image below.
The full URL, with reference to Styles, would be similar to:
https://api.mapbox.com/v4/mapbox.outdoors/{z}/{x}/{y}.png?access_token=<token>&style;=mapbox://styles/<user>/<style_id>
You could try editing the HTML document that HTMLReportGenerator creates,.. but that might be too much overhead.
I don't know too much about creating Mapbox Styles, so I wasn't able to confirm if this would work or not.. but try editing the attached HTML (created with HTMLReportGenerator). Specifically, replace the L.mapbox.accessToken and L.mapbox.style parameters with your valid information.
Hope this helps! It might be a great idea.. to submit an Idea for Styles support.
mapbox.htm
Thanks @RylanAtSafe for your response.
I'll add an idea as you suggested.
I'm also unable to find any reference to mapbox in the html file you sent, i.e. I can't find L.mapbox.accessToken or L.mapbox.style to try replacing it - can you attach again please?
Thanks
Bit late to respond here, but I just realized I did something like this:
It's a custom aerial photo that's saved in MapBox as a tileset.
But I can't seem to do this with map styles...
Hi, I am trying to do the same, any chance you could share a workspace.
Thanks @RylanAtSafe for your response.
I'll add an idea as you suggested.
I'm also unable to find any reference to mapbox in the html file you sent, i.e. I can't find L.mapbox.accessToken or L.mapbox.style to try replacing it - can you attach again please?
Thanks
@1spatialmary - It appears that clicking the .htm attachment will attempt to load it. Please right-click and choose "Save As" – or use the attached .zip file. And I'm sorry for the delay in response.. I was out of the office for an extended period of time!
10077-mapboxhtm.zip