Having trouble utilizing the leaflet-realtime plugin in my Ionic3 & Angular 5 project
When I import import leaflet from 'leaflet';
in this manner
Upon attempting to implement real-time functionality with the following code snippet
leaflet.realtime({
url: 'https://wanderdrone.appspot.com/',
crossOrigin: true,
type: 'json'
}, {
interval: 3 * 1000,
pointToLayer: function (feature, latlng) {
return leaflet.circleMarker(latlng, geojsonMarkerOptions)
}
}).addTo(map);
I encounter a WebKit error stating that realtime is not a property of leaflet
Any advice on how to effectively use leaflet plugins within Ionic3 applications?