dimka
unread,Feb 18, 2012, 2:13:47 PM2/18/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olwidget
Hello,
I am using olwidget in a django app. I need to "remember" the state of
an olwidget map between requests - by state I mean the current zoom
level and coordinates of center. My scenario is as follows: the main
page of the application has a map where the user can zoom to a
particular area. Then the user clicks a button which causes another
view to load. In that view, another map is displayed but I want it to
auto-zoom precisely to where the first map has been just prior to the
user clicking the button.
it seems to me that a possible solution might be to call back the
server each time the map is zoomed/panned, and the callback would
store the new position in a session.
Does this make any sense and if so, what is the easiest way to
implement it?
Regards,
dimka