Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
54 views

I currently have this code here where I want to add custom icon that I will design. plotRoute(): void { if (this.selectedOrder) { this.primengTableHelper.showLoadingIndicator(); ...
Steez's user avatar
  • 29
0 votes
1 answer
616 views

I would like to hide or display this routing machine instruction in more pleasing way, but once I turn off the auto-route, waypoints route drawing is also turning off....I have also tried the show:...
Torres Clarizza DL's user avatar
0 votes
1 answer
259 views

I'm trying to use a useContext hook inside a react-leaflet controlComponent but I have an error when my context fires the update function. I use a react-leaflet controlComponent because of leaflet ...
basilegrandperrethotmailfr's user avatar
0 votes
1 answer
274 views

here I got a bug that from yesterday until now got the solution. So the bug is that the sidebar appears 2 times as shown in the picture. What do you think the solution is? Thank you, I really ...
Kia Kalista's user avatar
0 votes
1 answer
1k views

I have set up a custom OSRM server using docker as explained here. And I have a web application which shows routes between 2 locations. I am using leaflet routing machine which pointed to the custom ...
Abraham Arnold's user avatar
1 vote
2 answers
307 views

I'm working on a project and I need to display points of interest that are saved in a database. For the itinerary, I used leaflet routing machine and nominatim. Now I need to display those points of ...
Massyl's user avatar
  • 19
3 votes
1 answer
2k views

I want to drag route from many point using leaflet and leaflet-routing-machine. I do not know How to pass all of locations into the waypoints. import { useEffect, useState } from "react"; ...
ParisaN's user avatar
  • 2,132
2 votes
2 answers
2k views

I'm trying to find a way of producing a GPX string from a Leaflet map so I can then save it into my DB. I am using Leaflet Routing Machine to create the route and then display it on an embedded map. ...
eLlobregat's user avatar
0 votes
3 answers
4k views

I want to display a route between 2 or more coordinates. I don't want any fancy direction instructions or start and end markers. So basically something like a <Polyline /> that goes along roads. ...
Specht's user avatar
  • 152
2 votes
1 answer
3k views

I'm new about Laflet Routing Machine (liedman) https://www.liedman.net/leaflet-routing-machine/ and I would like to update the first route calculated every 30 seconds because I would like refresh it ...
Francesco G.'s user avatar
1 vote
1 answer
2k views

I am using Leaflet 1.2.0 and Leaflet Routing Machine 3.2.12. My code is drawing the correct route on the map, yet, when i want to access the summary and the totalDistance from the summary, both are ...
marian's user avatar
  • 35
0 votes
1 answer
1k views

I am trying to create an app that will take source and destination location from the autocomplete box and the map shows the route between the two points: I have used the two useState to store the ...
Sam Phillemon's user avatar
1 vote
1 answer
1k views

I am trying to use Leaflet and Leaflet Routing Machine. I used following commands to install leaflet and leaflet routing machine, npm i leaflet npm i --save-dev @types/leaflet npm i leaflet-routing-...
H Athukorala's user avatar
6 votes
2 answers
12k views

The old way of doing things in react-leaflet 2.8.0 was to use MapLayer and withLeaflet. But now in react-leaflet: MapLayer and withLeaflet are deprecated as of version 3. I'm trying to grasp the ...
lys's user avatar
  • 1,059
1 vote
1 answer
235 views

I want to subtract the distance to the Leaflette waypoint from the total distance. How can I do that? routes: Array(1) 0: coordinates: (379) [D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D,...
storedprocedure's user avatar
0 votes
0 answers
19 views

i try it many time but no resullt the problem that i want to dispaly depart address and destination address but i found thar erreur this.routing = L.Routing.control({ waypoints: [ ... ...
souhir zribi's user avatar
1 vote
1 answer
2k views

I followed this recommendation from the Leaflet Routing Machine regarding interactions i.e. onClicks. With my implementation, I'm saving the waypoints in local-storage—saving the latitude and ...
Antonio Pavicevac-Ortiz's user avatar
1 vote
1 answer
699 views

I am using this article to help with using the useReducer hook. I have created this context component because I am using the react-leaflet routing machine to create markers for the route and I'd like ...
Antonio Pavicevac-Ortiz's user avatar
0 votes
1 answer
698 views

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) ....
Tikky's user avatar
  • 1,273
1 vote
0 answers
161 views

First code in which i hardcore the value: <script type="text/javascript"> function myfunction() { var label3LatLng = document.getElementById('<%=TextBox1.ClientID%>')....
salman m's user avatar
0 votes
1 answer
555 views

I am using leaflet and leaflet routing machine control libraries. When i am creating some route path i have the folllowing code: this.routingControl = L['Routing'].control({ router: L['Routing']....
user avatar
1 vote
2 answers
6k views

How do should I hide the Leaflet Routing Machine route and markers on mouseout event? Currently, I have regular Leaflet marker, that has mouseover/mouseout events. When mouseover event is fired and ...
Evaldas B's user avatar
  • 2,594
0 votes
0 answers
497 views

With OSRM and Leaflet, I need to create a route. What the user do : select (multiple or single) any itinerary (polyline) displayed on map when they are selected the user can create the route How can ...
Dreanad's user avatar
0 votes
1 answer
2k views

currently, the default action when clicking part of a route is that it will zoom into that coordinate on the map. im currently trying to add a text to speech that will say out the instructions for ...
UVERtainment's user avatar
0 votes
1 answer
655 views

I am using Leaflet-routing-machine, I added the error control to my map like this : L.Routing.errorControl(this.control).addTo(map); for style I used this : .leaflet-routing-error { width: ...
Soukaina EL HAYOUNI's user avatar