make Leaflet mention in attribution much less obtrusive

This commit is contained in:
Vladimir Agafonkin 2013-02-18 16:11:55 +02:00
parent 684fd7c12f
commit 879b9f987b

View File

@ -5,7 +5,7 @@
L.Control.Attribution = L.Control.extend({ L.Control.Attribution = L.Control.extend({
options: { options: {
position: 'bottomright', position: 'bottomright',
prefix: 'Powered by <a href="http://leafletjs.com">Leaflet</a>' prefix: '<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'
}, },
initialize: function (options) { initialize: function (options) {
@ -82,7 +82,7 @@ L.Control.Attribution = L.Control.extend({
prefixAndAttribs.push(attribs.join(', ')); prefixAndAttribs.push(attribs.join(', '));
} }
this._container.innerHTML = prefixAndAttribs.join(' &#8212; '); this._container.innerHTML = prefixAndAttribs.join(' | ');
}, },
_onLayerAdd: function (e) { _onLayerAdd: function (e) {