Re: [web2py] Re: show map on grid view

2016-06-17 Thread 黄祥
thanks manuele, i've tried that but the result is same (no error occured but the result is not expected, google maps show almost take the sqlform grid view entirely). e.g. def check_point_admin(row): scr0 = SCRIPT(""" function initMap() { var mapDiv = document.getElementById(%s);

Re: [web2py] Re: show map on grid view

2016-06-17 Thread Manuele Pesenti
Il 05/06/16 00:06, 黄祥 ha scritto: > what i want to achieve is showing a map in each row of > SQLFORM.smartgrid links (looks like in the attached file) > thanks massimo, tried your suggestion, but got the same result. any > idea or suggestion to achieve it in web2py? > Hi Stifan, what about

[web2py] Re: show map on grid view

2016-06-16 Thread Mirek Zvolský
I cannot see/download screen shots, is it just my problem? Dne neděle 5. června 2016 0:06:15 UTC+2 黄祥 napsal(a): > > what i want to achieve is showing a map in each row of SQLFORM.smartgrid > links (looks like in the attached file) > thanks massimo, tried your suggestion, but got the same

[web2py] Re: show map on grid view

2016-06-04 Thread Massimo Di Pierro
Please explain us better what you want to do. Form you code looks like you want one map (not one point) for each row in the grid. This is going to be awfully small. Anyway, Try change this: return DIV(_id = row.id), scr0, scr1 into return DIV(DIV(_id = row.id), scr0, scr1) On Tuesday, 31

[web2py] Re: show map on grid view

2016-05-31 Thread 黄祥
testing to put it on the SQLFORM.grid links no error occured but the result is not expected e.g. *controllers* def check_point_admin(row): scr0 = SCRIPT(""" function initMap() { var mapDiv = document.getElementById(%s); var latlon = new google.maps.LatLng( %s, %s ); var mapOptions = {