Questions tagged [esri-leaflet-geocoder]

10 questions
5
votes
0 answers

Webpack 5 - quiet warnings originating from node_modules?

I'm using webpack 5.44.0 and webpack-dev-server 3.11.2, and a custom webpack/babel config in my react project. I'm importing esri-leaflet-geocoder into my project. When developing with webpack dev server, I get this warning: WARNING in…
Seth Lutske
  • 9,154
  • 5
  • 29
  • 78
3
votes
4 answers

How to resolve "React Hook useEffect has a missing dependency: 'currentPosition'"

When I include currentPosition in the useEffect dependency array or when I delete it, the code turns into an infinite loop. Why? I have the same problem with map but when I place map in the dependency array it's ok. import { useState, useEffect }…
1
vote
1 answer

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 '@angular/platform-browser'; import…
Nano
  • 87
  • 1
  • 10
0
votes
1 answer

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 a function to do this and it seemed to work with…
0
votes
0 answers

Geocode react leaflet

Trying to add an address list in ELG.geocode. error: Cannot read property '0' of undefined; (results) Original: https://codesandbox.io/s/geocoding-in-react-leaflet-v3x-forked-uilpl?file=/src/MyMap.jsx:632-725 ELG.geocode() …
0
votes
1 answer

Esri-leaflet-geocoder: Component not rendering; How to connect providers in Production

I am using the great esri-leaflet-geocoder plugin and can't get it to render in production. I registered for a provider (ArcGIS Online Geocoding Service) and got a api key, and followed the documentation on the github page to add the api key: var…
Antonio Pavicevac-Ortiz
  • 7,239
  • 17
  • 68
  • 141
0
votes
1 answer

Leaflet .Repeated Markers in combination with esri-leaflet-geocoder

Hi I am new in Leaflet and I am trying to combine the Esri Geocoding control with the Leaflet.RepeatedMarkers. Actually, I need the markers to be repeated over [-180,180] of the first map. The below codes works fine. Unfortunately, when I try a new…
0
votes
1 answer

How to add predefined places/markers to Leaflet Geocoder

I am using Leaflet Map with geocoder (ESRI) and Routing Machine. I have added two markers, let's say my home and my work var marker_work = L.marker([50.27, 19.03], { title: 'MyWork'}).addTo(map) .bindPopup("work").openPopup(); var marker_home =…
Tikky
  • 1,253
  • 2
  • 17
  • 36
0
votes
1 answer

How to remove marker to Leaflet map in angular component

I am using leaflet on an Angular componenent and I am showing a marker when user click on map from esri-leaflet reverse geocoding, I want to remove previous markers added when user click. this is my code: map.on('click', (e)…
danny36
  • 131
  • 2
  • 11
0
votes
1 answer

Leaflet Esri geocoding on Angular not import Geocoding class

I try to use the Geocoding form esri-leaflet library on Angular project but I have import class problem. This is my component code: import { Component, OnInit, AfterViewInit, Type } from '@angular/core'; import { latLng, tileLayer, layerGroup,…
danny36
  • 131
  • 2
  • 11