Add openlayers on form in frontend.

30 views
Skip to first unread message

Alessandro Ronchi

unread,
Feb 12, 2010, 12:15:20 PM2/12/10
to geod...@googlegroups.com
I've a form with "posizione" as point feature of my model.
I want to set a map to let users insert the point and save the model.

I've already done that in admin, with this code:
http://dpaste.com/157980/

Any hints?

I've http://dpaste.com/157980/

It's possible to put the map inside textarea instead of a div? how can I get the coordinates of the point selected inside the dive and send it inside an hiddenfield, if I cannot?

thanks in advance, best regards.

--
Alessandro Ronchi

http://www.soasi.com
SOASI - Sviluppo Software e Sistemi Open Source

http://hobbygiochi.com
Hobby & Giochi, l'e-commerce del divertimento

cka...@googlemail.com

unread,
Feb 24, 2010, 2:17:57 PM2/24/10
to geodjango
Use http://olwidget.org/

On 12 Feb., 18:15, Alessandro Ronchi <alessandro.ron...@soasi.com>
wrote:


> I've a form with "posizione" as point feature of my model.
> I want to set a map to let users insert the point and save the model.
>
> I've already done that in admin, with this code:http://dpaste.com/157980/
>
> Any hints?
>

> I'vehttp://dpaste.com/157980/

cka...@googlemail.com

unread,
Feb 24, 2010, 2:17:07 PM2/24/10
to geodjango
Maybe http://olwidget.org/ is what you need.

On 12 Feb., 18:15, Alessandro Ronchi <alessandro.ron...@soasi.com>
wrote:

> I've a form with "posizione" as point feature of my model.
> I want to set a map to let users insert the point and save the model.
>
> I've already done that in admin, with this code:http://dpaste.com/157980/
>
> Any hints?
>

> I'vehttp://dpaste.com/157980/

Reply all
Reply to author
Forward
0 new messages