Does anyone have sample VB code for extracting lat, lng from google Centre is Home?
Google Maps API v3
I've had a good look at this example:
//google-developers.appspot.com/maps/documentation/javascript/examples/control-custom-state
https://google-developers.appspot.com/maps/documentation/javascript/examples/control-custom-state
Allows you to centre the map
Then set Home as Centre of the map
move the map to display elsewhere
then your can click Home to return Home.
and read thru the b4a forum posts using google maps examples.
But none seem to do what I'm after.
-----
Since, on my phone, trying to pin point a specific place my touching the map, is hard work my fat fingers, I've found its easier to place a pin point in the middle of my phone screen and move the map behind. To align the position I want to pin point behing the center point.
I've got a server so my bike riding buddies can find me at a new coffee shop or a kick off place. They can log their GPS and I can watch them find me.
But I actually have to be there waiting for them for my app to record its gps.
I'd like to use a pin in the middle of my phone display.
And move the map around behind it.
Positioning the coffee shop address or the kickoff place along the bike path of were we are going to meet in an hour or tomorrow or next saturday.
Then be able to capture that lat, lng and send it my server so they and I can plan our route etc.
That example of google maps html is very close but I can't find a way to extract the lat,lng from it.
Does anyone have a coding example to extract the lat,lng by positioning the map behind a center point on the phone screen in this manner?
As always, I'm happy to chase down any leads and post my solution.
tia
Google Maps API v3
I've had a good look at this example:
//google-developers.appspot.com/maps/documentation/javascript/examples/control-custom-state
https://google-developers.appspot.com/maps/documentation/javascript/examples/control-custom-state
Allows you to centre the map
Then set Home as Centre of the map
move the map to display elsewhere
then your can click Home to return Home.
and read thru the b4a forum posts using google maps examples.
But none seem to do what I'm after.
-----
Since, on my phone, trying to pin point a specific place my touching the map, is hard work my fat fingers, I've found its easier to place a pin point in the middle of my phone screen and move the map behind. To align the position I want to pin point behing the center point.
I've got a server so my bike riding buddies can find me at a new coffee shop or a kick off place. They can log their GPS and I can watch them find me.
But I actually have to be there waiting for them for my app to record its gps.
I'd like to use a pin in the middle of my phone display.
And move the map around behind it.
Positioning the coffee shop address or the kickoff place along the bike path of were we are going to meet in an hour or tomorrow or next saturday.
Then be able to capture that lat, lng and send it my server so they and I can plan our route etc.
That example of google maps html is very close but I can't find a way to extract the lat,lng from it.
Does anyone have a coding example to extract the lat,lng by positioning the map behind a center point on the phone screen in this manner?
As always, I'm happy to chase down any leads and post my solution.
tia
Last edited: