how would you do this with NPM, I'm struggling with the import * as L from 'leaflet' and import * as esri from 'esri-leaflet'............ when I do a console.log(L) the L doesn't have esri attached
If you import * as esri from 'esri-leaflet' it won't attache to the L object. You can access everyting from the named esri import. Alternatly you can do import 'esri-leaflet' which WILL attach things to the L object.
Leaflet.FileLayer loads files (GeoJSON, GPX, KML) into the map using the HTML5 FileReader API (i.e. locally without a server). Leaflet.FileLayer can you make a video about this process?
how would you do this with NPM, I'm struggling with the import * as L from 'leaflet' and import * as esri from 'esri-leaflet'............ when I do a console.log(L) the L doesn't have esri attached
If you import * as esri from 'esri-leaflet' it won't attache to the L object. You can access everyting from the named esri import. Alternatly you can do import 'esri-leaflet' which WILL attach things to the L object.
Leaflet.FileLayer loads files (GeoJSON, GPX, KML) into the map using the HTML5 FileReader API (i.e. locally without a server). Leaflet.FileLayer can you make a video about this process?