Popup not showing on phones


#1

Hi everyone. I have the same problem described below.

I’m using Ionic 4.1.0 and Leafletjs for showing maps.

Code for my popup:

        if (err) { console.log(err); return; } // do nothing if there's an error
        
        // Otherwise show the content in a popup, or something.
        if (content)
        {
          Leaflet.popup({ maxWidth: 800})
            .setLatLng(latlng)
            .setContent(content)
            .openOn(this._map);
        }
      } 

Here is an image of how it should work: