155
Views
4
Comments
[Google Maps Library] Google Map issue with direction drawing
Question
google-maps-mobile
Reactive icon
Forge asset by Labs

I am able to use the google map in mobile , i am unable to draw direction between  origin and destination.

Can we have a step by step procedure how to add google map into app and pass the data to the origin and destination

2018-02-21 11-50-01
Sofia Mourato
Staff

Hi prabhakar,

What did you try and what are you getting?

Basically, the Map block has a Directions parameter that's a "MapDirections" structure (see image below). What you need to do is: add a local variable in the screen of type "MapDirections", then pass it to your Map and fill in the values.

Let me know if you need further help.

Regards!

UserImage.jpg
Rajesh kumar

Sofia Mourato wrote: Thank you.

Hi prabhakar,

What did you try and what are you getting?

Basically, the Map block has a Directions parameter that's a "MapDirections" structure (see image below). What you need to do is: add a local variable in the screen of type "MapDirections", then pass it to your Map and fill in the values.

Let me know if you need further help.

Regards!



UserImage.jpg
prabhakar palakurthi

It worked for us but how can we get a current location of device using googlemaps.

UserImage.jpg
Mário Amorim

To get the current location of the device you can use the location plugin, that is available on the forge.

https://www.outsystems.com/forge/component/1395/location-plugin/

Best regards,

Mário Amorim

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