The first of the above works to get the zoom, the second does not. The difference?
the word var. The second creates a variable within the function, and not accessible.
The first - without var - is a global function.
* * *
So this code, allowing one to access zoom in a continuous fashion, works as well:
* * *
Little hack which allows one to save map information, on the fly. Can't really
create a database on a phone. And for security reasons, very difficult to link
with anything that might write to one's computer. So one could add an href
to a file on the computer, which would retain some of the information from the session.
User could then ask for map with center and zoom information.
* * *
Form input, entirely local:
Unlike setting zoom, one needs to create a new google maps object to set a new center:
No comments:
Post a Comment