Comments (2)
Currently, the waypointIcon
function does not get the waypoint as an argument, just the index of the waypoint, and the total number of waypoints.
Passing the actual waypoint to the function might be a good suggestion. I'll think about implementing it (or, if you're in a hurry, pull requests are always welcome).
from leaflet-routing-machine.
This has actually been fixed quite a while ago. waypointIcon
has been replaced by the more flexible createMarker
option, which does indeed take the waypoint as argument, such that the name of the waypoint can be used.
from leaflet-routing-machine.
Related Issues (20)
- How to add a custom attribute to an html element on a map HOT 2
- How to call L.Routing.control() many times? HOT 1
- How to set limit find route only in one country? HOT 1
- How to show alternatives more then 4 waypoints HOT 6
- default().Routing is undefined
- <Question> Change zoom level HOT 4
- Show POI near routing HOT 2
- Unexpected behavior when zooming HOT 10
- linetouched event doesn't triggered if addwaypoints = false HOT 1
- The mouse click for canceling a waypoint propagates to the map level and places a new waypoint HOT 3
- use three different colors to show the routes HOT 6
- Cancel marker dragging by pressing the ESCAPE key HOT 1
- Odd square around markers HOT 2
- All alternative routes have same color HOT 4
- message : "TypeError: Cannot read properties of undefined (reading 'Poly') HOT 1
- Is possible to route based on a shortest path but by prioritizing which points to pass first? HOT 1
- Is it possible to edit routes once they have been found? HOT 2
- Failed to load language
- How to send to the Mapbox router the choice of profile
- Autocomplete Results not shown when map is in fullscreen HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaflet-routing-machine.