我使用了休闲代码来显示离子应用程序上标记的弹出窗口。我需要在弹出窗口上添加一个漂亮的按钮。
map.on('dragend',(MouseEvent) =>{
this.Getaddress(map.getCenter()).then(data => {
var popup = Leaflet.popup()
.setLatLng(map.getCenter())
.setContent('<h2>' + data + '</h2>' + '<br />' + '<p>Hello world!<br />This is a nice popup.</p>' +'<button ion-button clear round (click)=" openPosting()" ')
.openOn(map);
});