mdipierro schrieb:
> We have this:
> 
> http://bazaar.launchpad.net/~mdipierro/web2conf/devel/annotate/head%3A/views/default/maps.html
> 
> and we have
> 
> from gluon.tools import geocode
> (lo,la)=geocode('243 S Wabash Ave, Chicago, IL")

I succeded in using OpenLayers.
Quite easy with web2py.

But the relevant java code in a file called mymap.html

then modify the view:

{{extend 'layout.html'}}
{{extend 'mymap.html'}}

{{try:}}{{=H2(message)}}{{except:}}{{=BEAUTIFY(response._vars)}}{{pass}}<br 
/>

<a href='/admin'>{{=T("click here for the administrative interface")}}<br />
<a href='/examples'>{{=T("click here for online examples")}}<br />
<a href='/welcome_modif/default/show_doc'>{{=T("click here for the Show 
Doc Test")}}</a>

=> the map is now reusable.

=> you still need to write the java code yourself.
But you can just start with the simple examples at:
http://openlayers.org/dev/examples/

I don't know what interaction with web2py or database you need.
Also search the list archives for "geo".


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to