Leaflet 如何更新ESRI传单属性面板

Leaflet 如何更新ESRI传单属性面板,leaflet,Leaflet,我正在使用Leftlet创建这样的地图 var map = L.map('map').setView([54.793577, -126.687482], 6); L.esri.basemapLayer('NationalGeographic').addTo(map); 现在你能告诉我如何更新传单控制属性吗 显示以下信息 attribution: '© Thesite contributors, Points &copy 2012 LINZ' 我试过这样做 var map

我正在使用Leftlet创建这样的地图

 var map = L.map('map').setView([54.793577, -126.687482], 6); 
 L.esri.basemapLayer('NationalGeographic').addTo(map); 
现在你能告诉我如何更新传单控制属性吗 显示以下信息

 attribution: '© Thesite contributors, Points &copy 2012 LINZ' 
我试过这样做

 var map = L.map('map').setView([54.793577, -126.687482], 6, {attribution: '© OpenStreetMap contributors, Points &copy 2012 LINZ'});
但它不起作用

将向您展示如何:

map.attributionControl.addAttribution('© Thesite contributors, Points &copy 2012 LINZ' );