olwidget icon indicating copy to clipboard operation
olwidget copied to clipboard

Create global variable for map, so other js can interact

Open wildintellect opened this issue 11 years ago • 0 comments

Looking at http://stackoverflow.com/questions/9153914/geodjango-olwidget-adding-a-control-to-a-map I was wondering why the templates aren't just modified to: var map = new olwidget

That way other js outside olwidget could manipulate the map. In my case based on user action I want to recenter the map. Not sure what to do with multiple maps on the same page.

wildintellect avatar Dec 17 '13 21:12 wildintellect