miguelcobain/ember-leaflet

how to change attribution

pc386 opened this issue · 2 comments

pc386 commented

How can I change the attribution of the map? I tried passing string to attribution property, but it doesn't work.

{{#leaflet-map lat=lat lng=lon onLoad=(action (mut map)) zoomControl=true scrollWheelZoom=false attribution="attribution" zoom=15 bounds=bounds as |layers|}}

@pingu69 usually the attribution should be set on the tile layer and not on the map. Can you try that and report back, please?

pc386 commented

@pingu69 usually the attribution should be set on the tile layer and not on the map. Can you try that and report back, please?

Thanks for the help! I put the attribution property in the tile layer and passed a string, and it works!