Hi everyone,
I'm making a simple app to show leaflet map with meteor and I'm using the package npm "esri-leaflet".But it doesn't work.This is my code : Html:
|
Dadi,
I don't work with Meteor so I can't speak to using that framework but I noticed that you're not passing a feature layer URL in your featureLayer constructor. You'll need to point to a specific layer number.
L.map is not a function is what the error screams. I'm not a Meteor user but you usually see this when the app doesn't see the library.
In the Esri example they also call the Leaflet Library, your example just refers to the Esri lib not the Leaflet Lib. I believe you need both. Once your app can see the Library it show draw the map.
<!-- Load Leaflet from CDN--> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0/dist/leaflet.css" /> <script src="https://unpkg.com/leaflet@1.0.0/dist/leaflet-src.js"></script> <!-- Load Esri Leaflet from CDN --> <script src="https://unpkg.com/esri-leaflet@2.0.4"></script>