Building Apps with Esri Leaflet

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 3

  • @ErnestoBalanzar
    @ErnestoBalanzar 2 года назад

    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

    • @PatrickArlt
      @PatrickArlt 2 года назад

      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.

  • @emreaktas8169
    @emreaktas8169 2 года назад

    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?