You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a system with this library, I am using the Directions module as shown in the example, now, the example only shows the route of 2 points, for my part making a couple of changes I make it draw the route of several points but I have a problem.
I make a query to my DB to obtain the records of the locations, now, with that list I draw the route using Directions, the library makes it very well and simple but when I try to draw another route on the map I get the route that I had already drawn, I investigated and implemented several methods to eliminate the route but I was not successful and neither when making the manual route with polylines.
Is it that the map saves a cache and I am not realizing it, or how do I deactivate it?
An example of how it looks on the map, I separated the route lines by colors.
I am using react and this is how I have my directions component managed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am making a system with this library, I am using the Directions module as shown in the example, now, the example only shows the route of 2 points, for my part making a couple of changes I make it draw the route of several points but I have a problem.
I make a query to my DB to obtain the records of the locations, now, with that list I draw the route using Directions, the library makes it very well and simple but when I try to draw another route on the map I get the route that I had already drawn, I investigated and implemented several methods to eliminate the route but I was not successful and neither when making the manual route with polylines.
Is it that the map saves a cache and I am not realizing it, or how do I deactivate it?
An example of how it looks on the map, I separated the route lines by colors.
I am using react and this is how I have my directions component managed.
Beta Was this translation helpful? Give feedback.
All reactions