Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [esri-leaflet]

Lightweight set of tools for working with ArcGIS services from Leaflet

2
votes
1answer
11 views

Unable to pull a bts.dot.gov MapLayer using Leaflet in R

I'm trying to get the noise pollution layer from the following bts.dot.gov ESRI MapServer to render in R: https://maps.bts.dot.gov/services/rest/services/Noise/CONUS_road_and_aviation_noise/MapServer ...
1
vote
1answer
22 views

Need syntax to restyle some data via dynamic layers and ArcGIS REST API

I produce maps using Leaflet and the Esri Leaflet plugin. Here is a MapService layer from the USGS pertaining to the risk of debris flow. Note that if attribute combhazcl=3 then this data is ...
0
votes
1answer
75 views

Higher than maxNativeZoom requests tiles

Leafet is requesting tiles while at a higher zoom level than maxNativeZoom from defined mapserver instead of just stretching the maxzoom sized tiles. It is creating a lot of 404s since my maxzoom is ...
0
votes
1answer
31 views

Set attribute values while creating an ArcGIS Server feature in esri-leaflet?

The Esri-Leaflet sample map Editing feature layers shows how the geometry of an ArcGIS Server feature layer can be created in Leaflet, by digitising a new polygon which is inserted into the feature ...
0
votes
0answers
21 views

enablePermanentHighlight in esri Feature Layer

let marker = L.marker(new L.LatLng(lat, lon), { icon: markerIcon }); map.addLayer(marker); Just like the normal marker, how can we use enablePermanentHighlight() on features of FeatureLayer. Any ...
2
votes
1answer
64 views

Finding number of point features located within a polygon layer using L.esri.query

I am new to JavaScript and Leaflet, so please bear with me. I am working on a Leaflet map in which I am calling in two separate REST layers, a point layer (heritage trees) and polygon layer (...
1
vote
1answer
119 views

ESRI Leaflet not displaying simple Feature Layer

I'm having trouble getting my ArcServer feature layers to display at all in leaflet webmaps. I'm just using a simple HTML tester, and I am able to display and mess around with ESRI-supplied feature ...
1
vote
1answer
60 views

Esri leaflet plugin only showing North America tile?

I am using the esri-leaflet plugin to connect to an internally hosted ArcGIS Server. I have tried using a basemap or tilemap implementation but get the same results with both. The problem is that I ...
0
votes
1answer
73 views

Leaflet ESRI plugin for Title Service

I'm using this ESRI leaflet plugin Example to load a tiledMapLayer. <script> var map = L.map('map').setView([30.70, -81.47], 12); L.esri.tiledMapLayer({ url: "https://services....
1
vote
1answer
308 views

dynamically added class not retained on leaflet marker

I am trying to add an active class to the marker that was clicked by the user. For this, I am storing the clicked marker's icon in a variable and doing the following let activeMarker = e.target._icon;...
1
vote
2answers
139 views

Leaflet fails to overlay my ESRI hosted Tiled Service on the OpenStreetMap basemap

I have a public-accessible tiled service hosted on the ESRI ArcGIS Online platform in EPSG 3857 (Web Sphere Mercator). The service URL is https://tiles.arcgis.com/tiles/RylLPiI61AyfENce/arcgis/rest/...
2
votes
0answers
121 views

'ObjectId field is missing' error when using Esri Leaflet updateFeature

I am trying to update a feature on the map upon click of a button. I am using updateFeature function of esri leaflet feature layer. Here's the code that I have written: layer_view_18.updateFeature({...
1
vote
1answer
191 views

Leaflet misinterpreting tiles info from an ESRI hosted Tiled Service

I am working on showing my ESRI tiled layer to a simple Leaflet web viewer. The tiled layer is hosted from ArcGIS Online. I tested both the ESRI Leaflet plugin and the original Leaflet's tyleLayer ...
2
votes
0answers
130 views

Syntax error when switching basemaps using Esri Leaflet? [closed]

I'm kind of new at using Leaflet and have a question for an issue that keeps popping up. I'm using the code from the example here: https://esri.github.io/esri-leaflet/examples/switching-basemaps....
1
vote
1answer
75 views

refreshClusters on esri.Cluster.featureLayer

I am trying to 'refresh' a cluster layer which is created by L.esri.Cluster.featureLayer and a feature url. I have tried to remove and re-add the layer (with no succees). But the refreshClusters is ...
1
vote
2answers
90 views

leaflet esri identify features

I have layer(lote_ocupa) in control layers, when i launch application is disable but: When I click on the map, even if the "lote_ocupa" layer is disabled, the identify function selects the feature, ...
1
vote
1answer
545 views

Spatial Queries in Leaflet, select polygons from (A1,A2…An) which intersect with polygon (B)

I am looking for an online solution for leaflet where I can select and export (console log, geojson, addLayer) a group of polygon from a geojson file which intersect with a drawn polygon (with leaflet ...
2
votes
1answer
78 views

Using ArcGIS Tokens to visualize user authenticated data in Esri Leaflet?

I'm currently using Esri Leaflet with authenticated user services. Authenticated services are set up and work fine for displaying geographic data after login, however, I want to create a dashboard ...
0
votes
0answers
40 views

esri leaflet calcite geojson popup binding

I am binding a popup to the results of a query, that is working fine. My problem is whenever the map changes (pan, zoom, etc.) the popups no longer work. Is there something I should be doing in a ...
1
vote
2answers
491 views

Leaflet error: h.fn is undefined when using layer.on('loading') event

In my Leaflet application (version 1.0.1 1.0.3) I connect to ArcGIS Server via the Esri Leaflet plugin. I load the layer as dynamic layer: var layerUrl = "http://localhost:6080/arcgis/rest/services//...
-1
votes
1answer
122 views

ArcGIS getToken/generateToken

We have a client that is using short-lived tokens for their ArcGIS server and I'm trying to figure out the best way to get tokens to access their data. Is there a way to retrieve already generated ...
2
votes
1answer
68 views

L.layerGroup equivalent in ESRI Leaflet for AGO feature service?

I'm fairly new to Leaflet and ESRI Leaflet, so bear with me. I'm creating four variables from the same feature service (AGO) because I want to separate them into four separate layers even though they ...
7
votes
1answer
832 views

What is the correct way to determine the type of Leaflet layer?

What is the correct (or recommended) approach to identifying a layer "type" in Leaflet/Javascript? I am able to successfully use layer instanceof, but that only works when you know the type at design ...
0
votes
0answers
518 views

What are the licensing rules for using cartodb's public REST API with leafletjs

I am currently working on a project which needs some offline mapping. I am using Leaflet.js as my base library. I have also seen that leaflet can be used with the following tile providers: https://...
0
votes
1answer
238 views

Return readable date format in leaflet popup from ArcGIS map/feature service

I'm trying to show dates in popups in a leaflet map that consumes Map Service from ArcGIS Server. the date format is however in UNIX-standard (json: "Bedomdatum": 1228694400000,) and I'm lost when ...
1
vote
2answers
327 views

Show an esri leaflet feature's popup by default

I am trying to perform queries with esri leaflet and show the resulting polygon features with their appropriate popups by default (instead of having users click on the feature highlighted in order to ...
0
votes
1answer
90 views

Geoprocessing return not showing on map?

I have a geoprocessing service that works fine in ArcMap and ArcGIS online. http://argis.ualr-iea.org/arcgis/rest/services/geoServices/SiteFinder/GPServer/FindSites. I am trying to integrate it into ...
1
vote
0answers
475 views

Download google tile layer maps

I am using google map in leaflet like this var osmUrl = 'http://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', osmAttrib = '&copy; <a href="http://openstreetmap....
0
votes
1answer
443 views

Leaflet Custom TileLayer for ArcGIS Cache Tiles in Folder

This is ArcGIS Server tile cache folder structure on a server. I need to get these tiles on my Leaflet map. I need to create a new TileLayer. I will extend existing TileLayer layer object's ...
0
votes
1answer
211 views

Leaflet popup does not work with esri rest feature services

I am writing a code that basically loads an arcgis service layer using leaflet.The code does as below: Loads POINT layer from esri rest feature server and Categorizes points based on attribute named ...
1
vote
3answers
505 views

Esri leaflet layers turned off by default in map layer control box

I have a series of esri leaflet layers in a variable called "baseLayers" but want to initiate the map with all of them turned off by default inside the layer control box. I've tried playing with the L....
-2
votes
1answer
521 views

Adding web service layer to Leaflet map?

I am trying to add layer 12 (warnings) in this services directory to a Leaflet map: https://igems.doi.gov/arcgis/rest/services/igems_haz/MapServer I have been able to add the layer using WMS and ESRI'...
0
votes
1answer
196 views

Calculating different features' counts with L.esri.Query

I have been using the L.esri.Query (Esri Leaflet) method "count" to add up the total amount of features falling within a given area. That works fine when using individual features classes at a time (...
1
vote
1answer
444 views

Adding button to move map Direction in Leaflet?

I want direction button in my Leaflet map so user can move map in mobile or desktop browser easily. I am new and do not know how to start. Please guide me.
0
votes
1answer
134 views

proj4leaflet with esri-leaflet 1.0.4

We need to add esri-tile layer in leaflet .At first ,we tried proj4leaflet with esri-leaflet 2.0.0 and leafelt 1.0.0. It workded fine. <!DOCTYPE html> <html> <head> <!-- ...
0
votes
1answer
545 views

What SRS does leaflet use when it creates new markers?

I'm using leaflet 0.7. I'm wondering what spatial reference system is used when a new marker is created? Also, how does this impact my use of maps? (I'm using leaflet .7 because of dependency ...
0
votes
1answer
167 views

dynamicMapLayer esri-leaflet does not return properties of point data

I am using a dynamicMapLayer with point data. If I bind a custom popup to this layer, it does not return the properties for the point. https://plnkr.co/16IooEUXpoo9fvqlfnhU If I use polygon data ...
2
votes
1answer
248 views

Using Esri leaflet feature layer toggle? [closed]

I have a feature layer that I am trying to toggle on / off via click. The problem I am having is that if I toggle the layer on and then off, it does not update to the screen unless I zoom in / out and ...
0
votes
1answer
195 views

InvalidStateError in IE for esri-leaflet

I have a map that works perfectly in Chrome and Firefox, but gets stuck on the httpRequest in IE 11. I get InvalidStateError in here on httpRequest.timeout = context.options.timeout. I am a bit lost,...
0
votes
1answer
395 views

Use of Leaflet plugins in 'Leaflet for R' to connect with ArcGIS online

I was wondering if it is possible to use the plugins for the normal (non-R) version of Leaflet, and if, how I can do that. reason I need to do that is, that some of the data I need to show are hosted ...
1
vote
1answer
513 views

Get array of LatLngs from ArcGIS feature layer polyline using Esri-Leaflet

Leaflet has a method built into the polyline class to return an array of all LatLng coordinates of the line. It would look something like: var latlngArray = polyline.getLatLngs(); Esri-leaflet, the ...
0
votes
1answer
167 views

esri-leaflet edit multiple featureLayers

I'm trying to use the esri-leaflet example on editing (https://esri.github.io/esri-leaflet/examples/editing.html) to edit two different featureLayers. First when I add a point with leaflet draw, I ...
0
votes
1answer
244 views

Handling Errors with Esri Leaflet Dynamic Map Layers

I have an application that is using ESRI for leaflet to pull in MapServices. I can successfully pull in map services and render in my application. However, sometimes the map services return an error ...
0
votes
1answer
529 views

Querying feature info for L.esri.dynamicMapLayer “bbox must be specified”

I have a Leaflet map in which I am displaying an Esri ArcGIS REST layer, using L.esri.dynamicMapLayer(). The code that initializes this layer is passed the URL to the service and a comma-separated ...
3
votes
1answer
481 views

L.esri.query - where is it?

I have a website that is displaying a MapBox map, using Leaflet. One of the layers is generated from an Esri ArcGIS Rest interface, using Esri's Leaflet plugin: https://esri.github.io/esri-leaflet/ ...
0
votes
1answer
119 views

Problem loading specific WMS with leaflet

I try to add this WMS in a Leaflet map by using the L.tileLayer.wms. https://glfc72.cfsnet.nfis.org/mapserver/cgi-bin/mapserver.cgi?map=/data/htdocs/glfc.cfsnet.nfis.org/mapserver/fire/public_html/...
1
vote
1answer
120 views

ESRI/Leaflet FeatureLayer

ESRI mapservice layer features not loaded entirely when it loaded with L.esri.featureLayer. Features which are visible at a particular zoom level gets loaded and rest all not available for further ...
1
vote
1answer
148 views

Why is the highlighting on these features obscured?

I have a function that highlights features when the user enters search text, and that text is found in the attributes of the given features. The code basically works; the problem is in the display. ...
0
votes
1answer
82 views

Modifying the the Find Task in ESRI-Leaflet?

I'm trying to figure out how to modify the Find Task in ESRI-leaflet so that when the user types in a new text for search, the old selection is cleared. Currently, when you "find" one feature (For ...
1
vote
1answer
93 views

Leaflet-ESRI code example that uses Find Task?

There's an example in the Leaflet-ESRI documentation here: https://esri.github.io/esri-leaflet/examples/finding-features.html But the code doesn't seem to actually work, neither on the example page ...