按钮不适用于离子应用程序中的传单弹出窗口

时间:2018-07-06 18:59:43

标签: javascript ionic-framework ionic2 leaflet ionic3

我使用了休闲代码来显示离子应用程序上标记的弹出窗口。我需要在弹出窗口上添加一个漂亮的按钮。

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);
      });

enter image description here

0 个答案:

没有答案