I would like the map to show the location+marker when I open the page, not after clicking a submit button.
However, I only want an address in my html. I want the API to convert it in a LatLng format.
Hopefully, someone can take the time to look at it.
It's all in the source code of the page mentioned above, I believe.
I could not reach your example. Try (url=http://www etc, full name.html)What you want to show(/url). Quote this message and look at the bottom of it for an example.
I would like the map to show the location+marker when I open the page, not after clicking a submit button.
However, I only want an address in my html. I want the API to convert it in a LatLng format.
Hopefully, someone can take the time to look at it.
It's all in the source code of the page mentioned above, I believe.
There is a google forum to discuss these types of questions, but I never got that deep. This is some code to reference a working page:
If you look at the source, you see two functions:
initialize() & codeAddress()
In the first, you have to enter the LatLng value, but in the second function that value is retrieved by
Code:
map.setCenter(results[0].geometry.location);
That's what I make of it. Any way of getting that value on the page load and using it to generate the map?
Bookmarks