All Questions
Tagged with esri-leaflet javascript
22
questions
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], ...
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
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 ...
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 ...
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 ...
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 ...
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: ...
5
votes
2
answers
9k
views
Leaflet reverse geocode
What I want is to use Leaflet maps + function where I can pass Lat/Lng and receive a text message with address.
I am trying to use esri plugin, however I am doing something wrong.
At the moment I am ...
3
votes
1
answer
4k
views
esri-leaflet-geosearch: how to integrate it with React
In the following link, there is online demo case showing how to user esri-leaflet-geosearch plugin,
https://codepen.io/exomark/pen/dafBD
var searchControl = new L.esri.Controls.Geosearch().addTo(map)...
0
votes
1
answer
245
views
ESRI Leafet ImageryLabels BasemapLayer not displaying - all tile widths set to 0
I have been debuggging a very unusual issue with ESRI's ImageryLabels basemap but as of yet I have been unable to ascertain the root cause of the issue. I was wondering if anyone had a similar issue.
...
1
vote
1
answer
3k
views
How to add search control on leaflet map using Angular 2?
I am using leaflet.js with ngx-leaflet and esri-leaflet-geocoder packages.
I am able to using search box on the leaflet map with plain JavaScript. All I need is the following line:
var searchControl ...
0
votes
1
answer
478
views
ESRI leaflet map, reset style not working
I am working on my first leaflet map and am running into an issue when trying to reset the style onMouseOut. it correctly changes style on mouse over but on mouse out, i keep getting: Object doesn't ...
0
votes
1
answer
764
views
Using an ESRI Routing service with Leaflet Routing Machine
So i am trying to use an ESRI Route service in a Leaflet map using https://github.com/jgravois/lrm-esri and am getting an error that maybe someone can help me with. Even using the code provided at git,...
0
votes
0
answers
466
views
Pass Feature Attribute to Variable On Click - ESRI Leaflet
I am building a leaflet map with feature layers that are hosted on ArcGIS online.
I would like to write a simple function so that when I click on a feature, the value of a particular column in the ...
1
vote
1
answer
707
views
Leaflet: e.layer doesn't work with L.Marker or esri.featurelayer?
I have a layer of centerpoints derived from polygons via an OnEachFeature event.
The first part of the behavior I'm looking for is for the polygon associated with that centerpoint to change style ...