Widget for graphically select location in to a map, and save cordinates into field Based in gmaps.js library
- Gmaps library
- Api Key Google maps definition in control panel
- Coordinates default point definition in control panel
- You can show de coordinates field via checkbox
You need to set the widget to needed fields into your form instance:
from z3cform.locationwidget.field import LocationField from plone.supermodel import model class IMyModel(model.Schema): my_location_field = LocationField( title=_(u'Map Location'), description=_(u'Set the location mark on the map'), required=False, )
This product has been translated into
- Catalan
- Spanish
- French
Install z3cform.locationwidget by adding it to your buildout:
[buildout] ... eggs = z3cform.locationwidget
and then running bin/buildout