yourcelf / olwidget

Javascript library to replace textareas that contain WKT data with editable OpenLayers maps, and a django app using it for django forms and admin.
Other
91 stars 43 forks source link

What am I doing wrong? :) Trying to alter/disable controls... #5

Closed typeshige closed 15 years ago

typeshige commented 15 years ago

In my view:

    temp_map = MapDisplay(
        fields = [object.geometry,],
        map_options = {
            'mapDivStyle': {
                'width': '500px',
                'height': '100px',
            },
            'editable': False,
            'defaultZoom': '4',
            'controls': ['LayerSwitcher',],
        },
    )

Editing controls seems to do nothing, I actually want to totally disable scrolling and zooming.

Thanks in advance!

yourcelf commented 15 years ago

Please see comment in duplicate: http://github.com/yourcelf/olwidget/issues/closed#issue/4