Storing current zoom+location in django session

9 views
Skip to first unread message

dimka

unread,
Feb 18, 2012, 2:13:47 PM2/18/12
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
Reply all
Reply to author
Forward
0 new messages