I 'd like to see markers on a Map , i ve folowed a tuto but i do not 
understand why it does not run.
I have only one point in fact.
If i delete "new GMaps .." there is no map
Could you helpe me
thanks


My View

{{extend 'layout.html'}}
<script src="https://maps.google.com/maps/api/js?sensor=true";></script>
<script src="{{=URL('static','js/gmaps.js')}}"></script>
<!---<h1>Ceci est le modèle mission/places.html </h1>
{{=BEAUTIFY(response._vars)}}
-->
<ul>
{{for item in items:}}
<li>
    {{latitude=item[0]}}
    {{longitude=item[1]}}
    <!--{{if longitude or latitude:}}-->
    <p>latitude, longtitude: {{=item[0]}},{{=item[1]}}</p>
    <div id="map" style="height:400px;width:600px"></div>
    <script>
    $(document).ready(function(){
      map = new GMaps({
        div: '#map',
        lat: {{=item[0]}},
        lng: {{=item[1]}}
      });
       map.addMarker({
        lat: {{=item[0]}},
        lng: {{=item[1]}},
        title: 'You are travelling ...too much',
        infoWindow: {
            content: '<p>Coucou</p>'
        }
      });
    });
</script>
   <!-- {{pass}} -->
</li>
{{pass}}
</ul>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to