Peter & Baxter,
I did not realize how easy this was. I work primarily in ColdFusion
and you cannot pass a ColdFusion variable into Javascript directly. I
never even tried to just put a template variable in for the latitude
and longitude. Wow, this is awesome!
Thanks for you help guys!
--~--~-
> 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 %}
Oops, brain fade on my part -- I didn't read your question carefully
enough. Baxter is cor
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.ad
>What
> do I need to do to pass the values that are stored in my table to the
> javascript?
I see this as app-logic so I would create the URL in the view and then
use simple variable substitution in the template.
Look at urllib and urllib2 (standard Python modules) for functions
that do nice stu
I'm trying to get an understanding of using maps with Django. I've
installed Geopy and totally understand how it works. I also can
produce a Google map with data I provide in the javascript. My
question is how do I get the data from Django into the Google Maps
javascript?
Example:
I have a cla
5 matches
Mail list logo