
Well all you need to do is write the javascript for the map points definition dynamically from your code. Here is a sample if(!pointSet) { %> map.setCenter(new GLatLng(<%=lat %>, <%=lon %>), 8); map.setUIToDefault(); <% pointSet=true; } %> var point<%=tracker %> = new GLatLng(<%=lat %>,<%=lon %>); var marker<%=tracker %>= new GMarker(point<%=tracker %>); map.addOverlay(marker<%=tracker %>); GEvent.addListener(marker<%=tracker %>, 'click', function() { marker<%=tracker++ %>.openInfoWindowHtml('<table><tr><td><b>Submitted By:</b></td><td><%=userId %></td></tr><tr><td><b>Submited On:</b></td><td><%=time%></td></tr></table>'); }); <% On Fri, Oct 16, 2009 at 12:09 PM, I. Ati <mueni0@gmail.com> wrote:
hi, solomon
i have seen the tutorials (and yes googled ) and i have some for my site but its not working the way i want it to , pick data from my db when users register and display there location , of the people who uploaded content
dah know read my thread slowly n understand before u reply again :)
thanks
On Fri, Oct 16, 2009 at 12:04 PM, solomon kariri <solomonkariri@gmail.com>wrote:
Hi, The google maps API has all u need to know. Actually I have used google maps to map the location for the data collected from a GPS enabled phone on episurveyor.org. You can get the tutorials here http://code.google.com/apis/maps/documentation/ . Its actually very straightfoward, Im sure you will be wondering why u had not googled it first.
On Fri, Oct 16, 2009 at 11:32 AM, I. Ati <mueni0@gmail.com> wrote:
hi Guyz,
any one who has used google map in there sites , to show location to show location of people registered in there site,
let me know how u did it
thanks
-- God cares!
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- Solomon Kariri,
Software Developer, Cell: +254736 729 450 Skype: solomonkariri
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- God cares!
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- Solomon Kariri, Software Developer, Cell: +254736 729 450 Skype: solomonkariri