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
0 votes
1 answer
65 views

Connecting R Leaflet to esri vector tile service

I'm building a Shiny leaflet application that I want to use a ESRI vector tile map from my organization for. I can see that leaflet connects to it as the attribution is accurate. However the tiles ...
PhDavey's user avatar
  • 416
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
1 answer
55 views

How to intercept esri-leaflet xhr request and then check CacheStorage API, if cache exist return cached feature layer data rather than send real xhr

My web app uses esri-leaflet package, it loads geojson via xhr rather than fetch from ArcGIS server. I am trying to use the following code to intercept xhr requests, however, it doesn't work, and the ...
lpfy's user avatar
  • 134
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
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
2 answers
97 views

How to use arcGIS Leaflet query run and push to Array during query and return a complete Array

I am querying each point of a polygon object (e in this case) using esri leaflet. To do so I have the following function that I use on a polgon that is passed to it: const queryFeature = (e: any) =&...
Simon Palmer'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
113 views

Find frontage street polyline given a street address

I have an app whereby users select parcels of land based on shapefile information. How can I return the associated street polyline location (lat, long)? I want to be able to locate the center of the ...
Simon Palmer's user avatar
0 votes
1 answer
674 views

Esri-leaflet error "Uncaught TypeError: Cannot read properties of undefined"

I have an old esri-leaflet map that queries and displays a feature from a published feature service. I'm migrating the dashboard that uses this map to a new server that requires https. I keep getting ...
Jessica Ridout'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
0 votes
1 answer
484 views

How to query points with a polygon layer using Bootleaf / esri-leaflet?

I am using the Bootleaf IAG framework. I can not figure out how to get the bounding coordinates of a filtered layer. I am modifying the bootleaf code to query points with a polygon layer. The Query ...
juststartingout's user avatar
0 votes
1 answer
395 views

Vector tiles are showing in the wrong place and in the wrong scale in esri-leaflet-vector plugin

I'm using [email protected] and leaflet 1.7.1 and esri-leaflet-vector plugin. When I'm adding VectorTileServer layer, rendered tiles are showing in the wrong place and in the wrong scale. Where I ...
javalonde's user avatar
  • 649
0 votes
1 answer
807 views

Leaflet labels on top

I am quite new to leaflet and would like some advice. I use the UN Clear map as a base map to which I add some polygons using a GeoJSON layer. I learned about a nice trick here, using map panes to get ...
Aran's user avatar
  • 13
0 votes
0 answers
114 views

esriPFS(Picture Filled Symbol) imageData is not displayed on Leaflet Map

Expected Result on Map import * as L from "leaflet"; import * as esri from "esri-leaflet" import "esri-leaflet-renderers"; let _layer = esri.featureLayer({ url: 'https:...
vinita jain's user avatar
0 votes
1 answer
480 views

Esri-Leaflet - Search within a distance

I need to design an application using a feature layer stored in ArcGIS online. Using a geocoder/search, I need to be able to enter an address and select a distance (1 block, 2 blocks, etc). The result ...
juststartingout's user avatar
0 votes
1 answer
230 views

esri ELG geosearch is not working properly

If you take a look at this : https://codesandbox.io/s/2wy7v2orwr?file=/src/Map.js you will see you can search things on the map, but if you zoom-in somewhere randomly(deep zoom in, for example ...
OmarLittle's user avatar
1 vote
1 answer
442 views

ESRI LEaflet - Adding ESRI GeoJSON / MultiPart Polygons to a REST service

I'm currently allowing users to draw into an ESRI-Leaflet map using a drawing layer, adding some additional properties to that layer, and then submitting the results to a feature service. This is ...
anakaine's user avatar
  • 1,228
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
0 votes
1 answer
565 views

Using L.esri.DynamicMapLayer, is it possible to bind a mouseover event rather than a pop-up on a dynamic map?

I'm aware of binding a pop-up to ESRI's L.esri.DynamicMapLayer here. The following code below is successful. $.ajax({ type: 'GET', url: url + '?f=json', data: { layer: fooType }, ...
redchair218's user avatar
0 votes
1 answer
98 views

Error: App(...): Nothing was returned from render. Esri-Leaflet-Geocoder

I am using esri-leaflet-geocoder to create a geosearch bar in my expo project. I am using this demo as a guildline:https://codesandbox.io/s/2wy7v2orwr?file=/src/Map.js:1443-1466. I am running into an ...
kboy's user avatar
  • 67
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
0 votes
1 answer
79 views

How to execute ESRI Leaflet map in PHP as a windows service

I have Created an Esri-leaflet map using (Esri-leaflet CDN from Esri leaflet GitHub repository) which plots markers and also written code to get the image exported with markers on page load and is ...
revanth g's user avatar
0 votes
0 answers
221 views

Layer from Authenticated ArcGIS Server not Showing in Leaflet Web Map

When I take this code directly from the ESRI Leaflet webpage and put it into JSFiddle it works great. All the layers from the ArcGIS server show up. However, when I paste this exact code into a text ...
Swing's user avatar
  • 1
0 votes
1 answer
17 views

geocoding doesn't show the next value from a for loop

I am trying to retrieve multiple values from a for loop to be pass into the esri.Geocoding function, but the problem is it only returned the first value and repeat it according to the number of ...
DayatXIII's user avatar
2 votes
1 answer
214 views

How to stop popup from opening when I click on l.divicon custom html containing a button

I am using the esrileaflet library to render markers on a map having icon l.divicon which has a button in custom HTML. I have bound an event to the button click which is called but also marker popup ...
Bravo Ragazo's user avatar
0 votes
1 answer
1k views

How to add ArcGIS server layer using leaflet.esri package?

I am trying to add a layer from a published ArcGIS service feature into a leaflet map in R using the leaflet.esri package. I've read the documentations here https://rdrr.io/cran/leaflet.esri/man/...
DarwinsBeard's user avatar
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

15 30 50 per page