diff --git a/VERSION b/VERSION index 5ff4e6aa..fd1e0dc0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-05 18:09:31) dev +Version 1.99.7 (2012-04-05 18:51:12) dev diff --git a/applications/welcome/views/generic.map b/applications/welcome/views/generic.map new file mode 100644 index 00000000..773a8f7a --- /dev/null +++ b/applications/welcome/views/generic.map @@ -0,0 +1,69 @@ +{{""" +this is an example of usage of google map +the web2py action should be something like: + +def map(): + return dict( + googlemap_key='...', + center_latitude = 41.878, + center_longitude = -87.629, + scale = 7, + maker = lambda point: A(row.id,_href='...') + points = db(db.point).select() where a points have latitute and longitude + ) + +the corresponding views/defaut/map.html should be something like: + + \{\{extend 'layout.html'\}\} +