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
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 ...
Tikky's user avatar
  • 1,283
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
4 votes
1 answer
4k views

I can't get esri-leaflet to work with ReactJS --> basemapLayer of undefined

After npm installing esri-leaflet, and leaflet packages, I get the following error This is my maps component: import React from 'react' import ReactDOM , {render} from 'react-don' import L from '...
securecurve's user avatar
  • 5,749
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)...
Chris Bao's user avatar
  • 2,738
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
1 answer
784 views

Leaflet: Polygon center objects that are useable by MarkerCluster

Is there there a way to add centerpoints created via .getCenter() within an onEachFeature event (see below) to an L.Marker, or similar, object that contains all of the centerpoints created on that ...
GeoJoeK's user avatar
  • 61
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
2 votes
1 answer
460 views

Error while trying to delete/edit shape using leaflet draw - ESRI

I am trying to delete/ edit a shape created using leaflet draw. I get the following error when trying to edit the shape created. I'm using leaflet 1.0-rc1 and leaflet draw version 0.3.2. Here's my ...
codejunkie'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
1 answer
2k views

Using ESRI street maps with Leaflet

How can I integrate the ESRI street maps (https://leaflet-extras.github.io/leaflet-providers/preview/#filter=Esri.WorldStreetMap) into my leaflet javascript. Following is what I did but the map doesn'...
Kulin Shah'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
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 ...
GeoJoeK's user avatar
  • 61
1 vote
1 answer
2k views

Filtering GeoJSON by lat-long in Leaflet

I'm ingesting a large geoJSON file in leaflet with somewhere near 19,000 features (points). This results in a massive amount of clutter on the map and is unmanageable. The goal is to use geolocation ...
blintster's user avatar
  • 133
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

15 30 50 per page
1
2 3 4 5