-
Notifications
You must be signed in to change notification settings - Fork 38
Allow an "attribution" property on sources #380
Comments
We will need to be careful about XSS attacks using the attribution. Instead of allowing HTML, we could hit the most common use case (a link to a page explaining the attribution) by supporting |
Ahh it would be nice if this was flexible which a
Would it make sense for this to be an attribution plugin control (so opt-in) that sanitizes HTML? |
Based on our experience with sanitization in Mapbox.js, it's something that we should avoid at all costs. If you want totally custom attribution, you can always add your own |
How would this be any different than using |
attribution
property on sources
Merged into mapbox/mapbox-gl-js#1485 |
We should allow an
attribution
property on sources to specify custom attribution.cc @mourner @jfirebaugh @yhahn @tmcw
ref mapbox/mapbox-gl-js#1485
The text was updated successfully, but these errors were encountered: