Capture Lat and Long with Native Mobile Mendix Map widget

0
How do i capture Latitude and Longitude with the native mobile Mendix map widget in version 10.25.4 We are unable to see the API key option as well. This is kind of a road block, quick response will be really helpful.   Thanks.
asked
4 answers
0

If you want latitude  & longitude of current location, then easier way is  Call "Get current location" from nanoflow

 

For mendix map, there is a property of "Show user location" which will also ask user for permission.

 

Can you list down the full flow of what you placed on the page and what behaior are you expecting?

answered
0

Hello Prathima,

 

The native mobile Map widget does not support the capturing of lat/long on click.

 

For your desired outcome the best solution I can recommend is to use the Native Open Maps app widget, this way you are able to return the selected coordinates via nanoflow callback solves the issue not needing API keys or workarounds.

 

Hope it helps.

Widget.png

answered
0

Hi Ishtiaq,

 

We have already tried same option provided "I guess you want to user to provide their by directly adding a pin in map. I would suggest to use nanoflow "Get Current location" option."

 

First issue we are facing here is Map is not loading in mobile device when running locally using Make it native app. Its seems it is expecting API key. Can you guide where and how to provide API key for the map. Attaching the screenshot also mendix app widget.

 

Second issue we are facing is there is no option for on click in Mendix map widget. so that we can add some logics for that.shared image (4).jpgMedia.jpg

answered
0

Hi Ullas,

Key option is not available for "Openstreet map", You will see the key option if you choose "Google" or "Map box". I will try this on mobile and let you know what's the issue. Use Google from "Advanced" tab, it will work. 

 

image.png

answered