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

staticfiles support, a .js bugfix and OLWIDGET_DEFAULT_OPTIONS #53

Closed philipn closed 13 years ago

philipn commented 13 years ago

I'm not sure how to send these separately :)

yourcelf commented 13 years ago

Hey,

I incorporated these in the latest master. I stripped out the backwards-compatibility bits for MEDIA_URL, because it would've required more bending over to support full backwards compatibility (such as linking the old media dir to not break symlinks, supporting the non-existence of STATIC_URL in settings, etc.); I'm comfortable just requiring that anyone using the latest git snapshot use the STATIC terminology. Docs are updated accordingly.

The same idea as OLWIDGET_DEFAULT_OPTIONS was already present from another recent commit (though less perspicuously named as OLWIDGET_DEFAULTS). I changed the name to OLWIDGET_DEFAULT_OPTIONS which I like better, but kept the other more nuanced implementation of it rather than yours.

Thanks for all the good work!