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 ...
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: ...
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 ...
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], ...
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 '@...
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,
...
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 ...
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 ...
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 ...
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://...
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 ...
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 ...
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()...
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, { ...
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 ...