You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up on use and attribution of downloaded maps — cf.#12, Handling of attribution to adhere to TOS for Tile Companies
Documenting some research into what it takes to directly write the attribution and scale into the PDF or PNG file. This work would need to planned out with a proper amount of use and test cases.
Example of Map Attribution and Scale in Mapbox GL JS
Research
Attribution
How to write attribution into PDF.
Done — see an example on how to write an attribution to a US Letter sized PDF, 36c4726
Get the Attribution by accessing the class where its held in Mapbox GL JS
Then access the data with attrib.innerText or attrib.innerHTML
Following up on use and attribution of downloaded maps — cf. #12, Handling of attribution to adhere to TOS for Tile Companies
Documenting some research into what it takes to directly write the attribution and scale into the PDF or PNG file. This work would need to planned out with a proper amount of use and test cases.
Example of Map Attribution and Scale in Mapbox GL JS
Research
Attribution
attrib.innerText
orattrib.innerHTML
mapboxgl-ctrl-attrib
Example,
Scale
width: 77.82px;
1000ft
mapboxgl-ctrl-scale
Writing directly into PDF
doc.text()
doc.text(200, 100, attrib, null, null, 'right'); // units are mm
doc.fromHTML()
pdf.fromHTML(attrib, 150, 210); // units are mm
𝘦 π Maps
, they didn't make it into the final PDF.PNG Research
The text was updated successfully, but these errors were encountered: