Add mark on the map and use it to set a route from that point to destination (Web)

Add mark on the map and use it to set a route from that point to destination (Web)

  

Hello everyone

I´m trying to add a marker on a map while clicking to use it as origin location to set a route to a destination.

I'm using the Address Map widget, with he address of the map is being used as destination location in the Add Map Directions widget. For the origin location I'm using a Add Map Marker widget. I don't know if I'm doing it right and if I am, I don't know how to fill the remaining non mandatory fields of the Add Map Directions widget and Add Map Marker widget. 


If i dont fill every field in the widget properties when I open the page in the browser it will send me an internal error:

If someone could help me, I would appreciate it.

Hi Pedro,

You can get refrence from googleMapsDemo in googlemaps component of forge.they have shown demo of it. I hope it will help you.


Thanking you

Amreen