[LeafletJS - Reactive] How to create a Route from point A to point B using LeafletJS component from forge?
Question
Forge component by Vincent Koning
Application Type
Mobile

Hello everyone! 

I'm trying to use this component from the forge to set a route from point A to point B. All I saw in terms of what I need was how to create markers on the map but not set a route between them. 

Is this component able to do that or do I need to use another one?

Hii Afonso 

I am not sure if this forge can help to set the Route. I have never used the Plugin but cannot see in the Demo: https://vkoning.outsystemscloud.com/LeafletJSReactiveDemo/UIMarkersMultipleMaps 


You can try this one for the Route: https://www.outsystems.com/forge/component-overview/1396/google-maps-library 

Hi Alfonso, 

This component can't calculate a route. Besides Google you can also use Azure for this with the following component: https://www.outsystems.com/forge/component-overview/10025/azure-maps

Hope it helps,

Vincent

As long as you have the coordinates from you can draw a poly line to connect them.

Whether you can (graphically) snap the line to a route, for example, a road, will depend on the number of coordinates you have.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.