I guess yes but I did not need them

On Friday, 6 April 2012 08:47:26 UTC-5, Alan Etkin wrote:
>
> Will the example mark db points in a google map? Are there any other uses 
> possible provided by the Google API trough the web2py interface?
>
> On Thursday, April 5, 2012 8:54:32 PM UTC-3, Massimo Di Pierro wrote:
>>
>> Example:
>>
>> # model
>> db.define_table('point',
>>                 Field('name'),
>>                 Field('latitude','double'),
>> Field('longitude','double'))
>>
>> #controller
>> def map():
>>     return dict(
>>       googlemap_key='...',  # get this from google maps
>>       center_latitude = 41.878,
>>       center_longitude = -87.629,
>>       scale = 7,
>>       maker = lambda point: A(row.name,_href='...')
>>       points = db(db.point).select() 
>>     )
>>
>> #in views/defaut/map.html:
>>
>> {{extend 'layout.html'}}
>> <center>
>>    <h2>My Map</h2>
>>     {{include 'generic.map'}}
>> </center>
>>
>>

Reply via email to