Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask.ext.admin.contrib.sqla import ModelView
- # 'location' is the GeoAlchemy2 column
- class FeatureView(ModelView):
- ...
- form_overrides = dict(location=WTFormsMapField)
- form_args = dict(
- location=dict(
- geometry_type='Polygon', height=500, width=500, cloudmade_api="{your_api}"
- )
- )
- ...
Add Comment
Please, Sign In to add comment