Skip to content

Create global variable for map, so other js can interact #122

@wildintellect

Description

@wildintellect

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions