Hi, good afternoon.
I'm new in Outsystems ecossystems. I need to draw direction between two points (coordinates {lat,long}) in google maps mobile app.
I'm using the GoogleMapsMobileCustom, using the UI MAP to show my map. My question here is: how can I draw direction between my current location (I already have it in a local variable) and other location desired? I know that I need to pass a structure with Data type MapDirections, but, when I should pass it? My flow is: the user open the app and app get the current location. So, when user click in the search button, and type an address, I need to draw the route direction on the map. I think I should reload the map,or I'm wrong?
Thanks ,Daniel Nogueira
Hi Daniel,
It seems like João said, your google API key is not configured. As you can the the watermark "For Development Purpose Only"
Thanks
Have you checked the Google Maps Mobile Samples Forge component?
It has a sample for several use cases using Google Maps in a mobile app, including the drawing distance between two coordinates.
Regards,João
Hi João, I saw this samples now, but in the sample, when I click on a marker and then, click on car icon, to get the direction, nothing happen.
Have you set up the maps api key?
Thanks, this was my problem. I thought that because it was in development, I didn't need to activate the billing.
thanks
Hi @João Marques ,I tried to have a look on these samples, but I have got many errors, despite I have a valid API Key.Please have a look on the attached pic.I want to live track a truck, so I need to use Google Maps Mobile plugin.Could you please tell me what's wrong?Kind regards,Sirajeddine
Hi,
Please share the oml file (but remove the API key)
It seems the javascript cannot "getMap" function.
Hi Toto, thanks for your reply.
OK please find attached the oml file.
You are using MapId variable, but this is never paired with the widget ID of the Map.
Thats why the error is showing.