
var map = new maptalks.Map('map', {
  center: [-0.113049,51.498568],
  zoom: 14,
  attribution: {
    'position'  : 'top-right'
  },
  baseLayer: new maptalks.TileLayer('base', {
    urlTemplate: '$(urlTemplate)',
    subdomains: $(subdomains)
  })
});

var attribution = new maptalks.control.Attribution({
  'position'  : { 'bottom': '20', 'right': '75' },
  'content'   : 'Powered by <a href="http://www.maptalks.org" target="_blank" style="text-decoration:none;cursor: pointer;color: #6490C4; ">maptalks</a>'
});
map.addControl(attribution);

@@ -1,13 +1,12 @@
-%0A
 var map = ne
@@ -50,16 +50,17 @@
 .113049,
+ 
 51.49856
@@ -96,25 +96,24 @@
 : %7B%0A    
-'
 position
 '  : 'to
@@ -104,19 +104,16 @@
 position
-'  
 : 'top-r
@@ -117,16 +117,47 @@
 p-right'
+,%0A    content: '$(attribution)'
 %0A  %7D,%0A  
@@ -334,17 +334,16 @@
 %7B%0A  
-'
 position
 '  :
@@ -342,200 +342,73 @@
 tion
-'  : %7B '
+: %7B%0A    
 bottom
-'
 : 
-'
 20
-', '
+,%0A    
 right
-'
 : 
-'
 75
-'
+%0A 
  %7D,%0A  
-'
 content
-'   : 'Powered by %3Ca href=%22http://www.maptalks.org%22 target=%22_blank%22 style=%22text-decoration:none;cursor: pointer;color: #6490C4; %22%3Emaptalks%3C/a%3E
+: '$(attribution)
 '%0A%7D)

fix example 'control.attribution'