ynunokawa / L.esri.WebMap

A leaflet plugin to display ArcGIS Web Map.
MIT License
22 stars 21 forks source link

how to import esri-leaflet-webmap in ionic angular typescript #80

Open Arpapiemonte opened 3 years ago

Arpapiemonte commented 3 years ago

Hi, I cannot import esri-leaflet-webmap in my ionic angular app. With Vector plugin, for example, I managed to import writng this:

import * as L from 'leaflet';
import * as Lesri from 'esri-leaflet';
import * as LesriVector from 'esri-leaflet-vector'

Lesri.tiledMapLayer({
  url: 'URL'
}).addTo(this.map);
LesriVector.vectorTileLayer("ID", {
  portalUrl: "https://www.arcgis.com", // default value
}).addTo(this.map);

But if I import

import * as LesriWebmap from 'esri-leaflet-webmap'

It cannot find the module esri-leaflet-webmap'

How I have to do? Thanks