I have a problem with Leaflet.js and ion-slides element.
If I include the map in ion-slides
<ion-slides>
<ion-slide>
<div id="map-slider"></div>
</ion-slide>
</ion-slides>
and in controller
this.map = leaflet.map('map-slider', {
zoomControl: false,
zoomSnap: 0,
attributionControl: false
}).setView([coordinates[0][0], coordinates[0][1]], 16);
leaflet.tileLayer('...', {
accessToken: '...',
id: 'mapbox.satellite'
}).addTo(this.map);
var polyline = leaflet.polyline(coordinates, { weight: 5, color: '#00ffa8' }).addTo(this.map);
this.map.fitBounds(polyline.getBounds());
and only renders the polyline. But if I put the map out of the element (ion-slides) then everything works. This behavior is only with android devices.
Do you have any idea to bypass this problem?