Hello, I'm migrating my ERP to the FNC Maps component, and I have some doubts about this migration.
The first doubt is how to remove the markers from the map that is loaded when clicking on the map, it creates a direction if you click on another point too, in the previous component there was a property in the marker that prevented the user from doing that. I still haven't found it here.
Another situation is that in my ERP we create Waypoints to demarcate stops, just like it works in the amazon delivery app, we have a similar system that when clicking on the marker it demarcates me how much time, mileage, among other situations to get to the other demarcated point in the delivery order, how would you do it here, I saw that it has wayponits but I can't define latitude and longitude in it, at least I haven't found how to do it yet.
these are the markers I mentioned, with each click on the map they create it, but I wouldn't want my ERP users to do that, I cleared the markers, but it's not interesting because it clears all of them and that bothers the use , if it had any property not to score, it would be ideal.
I managed to resolve this situation with the markers, deleting 3 different situations when clicking on the map, when there is only one marker record on the map, it is map.markers.delete(0),
If it has any record mapped with my dataset, when I click on the map I delete the last record because it starts at zero, and when I route I delete the last + 1 because it places an origin point on the map
I have only the second doubt, regarding the Waypoint, I would like to know how to manipulate them using the treelist, if you have better solutions, you can give them to me.
My situation is to mark points on already defined routes, or for example, I have a route defined by a treelist, I would like each end of a point to be the beginning of the next one and I have this information either with a waypoint or another way if any.
Last doubt, referring to Polyline, in my previous component I was able to make some definitions of size and orientation for the display of polylines, here it does not work the same, I will show the source of how it is done and how it is now using TMS.
To make the understanding clearer, here are delivery points, and each line marked is like the customer journeys of these sellers, so you can clearly see what you have to do, a street view image shows it a little better
You are using the same coordinate for the start and end position of the polyline which results in a single point (circle) on the map.
You'll need to create an array for all coordinates that you want to include in your polyline instead.