On May 23, 12:31 pm, jeffself <[EMAIL PROTECTED]> wrote:
 What
> do I need to do to pass the values that are stored in my table to the
> javascript?
>

I think you just want something like:
{% for p in precinct_list %}
      point = new GLatLng({{p.precinct_lat}}, p.precinct_lng{});
      map.addOverlay(createMarker(point, "{{p}}"));
{% endfor %}

Assuming you're sending precinct_list to the template. And I may have
lat and long backwards (I store them together in a "geocode" field).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to