Skip to main content

Questions tagged [esri-leaflet]

esri-leaflet is an open source plugin for leafletjs, providing a lightweight set of tools for using ArcGIS services with leaflet

esri-leaflet
31 questions with no upvoted or accepted answers
5 votes
0 answers
3k views

How can I tell if a Leaflet layer is currently visible?

I'm building a Leaflet plugin that adds/removes layers to/from a Leaflet map. My plugin needs to know if a given layer is visible on-screen. So far, I've come up with the following criteria that a ...
colbin8r's user avatar
  • 352
3 votes
0 answers
1k views

Uncaught TypeError: Cannot read property 'Controls' of undefined

I'm trying to add search bar in sharepoint map using esri leaflet. It works well in IE, and google chrome... Now If i use the same script in sharepoint.. I have this error: “Uncaught TypeError: ...
alhusher's user avatar
2 votes
0 answers
117 views

Include a custom Esri baselayer/webmap in Leaflet

We've been using esri-leaflet to put a base layer on my maps, but now we want a different look. Using their webmap editor we have put together a map we like and I have the webmap ID and using the docs ...
Craig's user avatar
  • 8,203
1 vote
0 answers
46 views

I am using esri-leaflet as mapping library and using vectorTileLayer to add custom basemap however struggling with arabic text that is breaking

getWeatherMap() { if(this.map){ this.map.remove(); } const saudiArabiaCenter = [45.0792, 23.8859]; this.map = L.map(`map`, { center: L.latLng(saudiArabiaCenter[1], ...
Owais Nadeem's user avatar
1 vote
1 answer
783 views

esri-leaflet NOT showing in angular typescript it doesn't recognize VECTOR

I am not able to show the map or to use the search offered by esri-leafleft: here the code of the typsescript file. import { Component, OnInit } from '@angular/core'; import { Title, Meta } from '@...
Nano's user avatar
  • 127
1 vote
0 answers
251 views

how to bind tooltip to L.esri.DynamicMapLayer

I can bind a popup to esri leaflet's L.esri.DynamicMapLayer layer but how would I bind a tooltip to below DynamicMapLayer ? var featureLayer = L.esri.dynamicMapLayer({ url: url, ...
Bravo Ragazo's user avatar
1 vote
1 answer
368 views

ESRI TileLayer with non-standard 0 zoom does not load in Leaflet

appreciate some assistance with figuring out why ESRI Tile layer does not load in Leaflet? It loads in OpenLayers and of course when using the ESRI JS API, but I'd like to use Leaflet... This is the ...
Cloudstako's user avatar
1 vote
1 answer
757 views

How to create and display a custom base map with ESRI Leaflet?

The educational web app I'm working on makes use of ESRI base maps displayed with Leaflet. (See CODAP and click the Map tool.) One of our partners would like to be able to use a base map that displays ...
wfinzer's user avatar
  • 21
0 votes
1 answer
52 views

Long lag in ESRI leaflet featurelayer rendering

I'm rendering flowlines from the following web server on leaflet: "https://watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/NHDSnapshot_NP21/MapServer/0"; It is a complicated layer and I ...
JSC's user avatar
  • 1
0 votes
0 answers
24 views

does esri leaflet has option like crossOrigin

I meet a Content Security Policy problem when using esri-leaflet to parse the ArcGIS mapserver to tileLayer, the code snippet I used is as following: L.esri.dynamicMapLayer({ url: 'https://...
abramhum's user avatar
  • 463
0 votes
0 answers
63 views

Adding Tooltips to Leaflet Layer Control Checkboxes for Disabled Layers

I'm working on an Angular application where I'm using Leaflet and esri-leaflet to display maps and layers. I have a layer control with checkboxes (the build-in one of leaflet) that allow users to ...
Dekel tsairi's user avatar
0 votes
1 answer
352 views

esri-leaflet-geocoder has error in both old and current version

I was trying to have points plotted on a map based on the address for a project but for right now while testing I am just putting the map's view on the location. I found some information online giving ...
adigrigs's user avatar
0 votes
0 answers
118 views

ESRI-Leaflet why when at low zoom levels does passing Geosearch results.latlng to dynamicMapLayer.identify().at() retrieve wrong the feature?

I've been fighting a bug in an ESRI leaflet map for days and I am hoping for some ideas. I have a geosearch that searches dynamicMapLayers. I pull a latlng from the results and pass it to a .identify()...
TreverB's user avatar
0 votes
1 answer
191 views

Bound popup removed when layer changed in control

I have a map with a layer control that has overlays specified in the baselayer parameter: var overlays = { 'Layer 1': mylayer1, 'Layer 2': mylayer2 }; L.control.layers( overlays, null, { ...
jvanulde's user avatar
0 votes
0 answers
623 views

Display offline ArcGIS Esri map using Leaflet

I need to display ArcGIS ESRI map hosted in intranet environment. I was following this example and it works fine when system is connected to internet. As our Map Server is hosted in intranet ...
Bilal Ahmed's user avatar

15 30 50 per page