Hi,
I have made a leaflet web application (https://alsi.gie.eu/data-visualisation/maps), next I wish to add layers on top which are hosted on https://services.arcgis.com/W1S2EV01pfLNmn8R/arcgis/rest/services/network1908/FeatureServer.
I have tried using the layers directly hosted on the featureserver, but found this too be very data intensive. Whenever I zoomed in, the entire application crashed; because of the redrawing. I have added it as such:
L.esri.featureLayer({
url: 'https://services.arcgis.com/W1S2EV01pfLNmn8R/arcgis/rest/services/network1908/FeatureServer/9',
style: function () {
return { color: "#c29ed7", weight: 0.5, opacity: 0.5, stroke: true, fill: false };
}
}).addTo(map);
I then came across similar issues on https://github.com/Esri/esri-leaflet/issues/738. I figured that I would need to either convert the FeatureServer to MapServer or find another solution that basically projects an image instead of the entire shapefile onto the leaflet map. Can anybody point me in the right direction here? It would be really helpful if you explain the steps, as I'm not very proficient in ARCGIS/ESRI.