Don't know how to code that in Python. You have to add something like this to the kml
<Style id="blue"> <IconStyle> <Icon> <href>http://maps.gstatic.com/mapfiles/ms/icons/blue-dot.png</href> </Icon> </IconStyle> </Style> http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=https:%2F%2Fsites.google.com%2Fsite%2Fxxamples%2Flist.kml On Nov 10, 11:50 am, Niklas Rosencrantz <[email protected]> wrote: > ah...Thank you so much for letting me know that I must add icons. And how > come the KML validates and how could I add icons to the template most > basically? This is my django template > > <?xml version="1.0" encoding="UTF-8"?><kml > xmlns="http://www.opengis.net/kml/2.2" > xmlns:gx="http://www.google.com/kml/ext/2.2" > xmlns:kml="http://www.opengis.net/kml/2.2" > xmlns:atom="http://www.w3.org/2005/Atom"><Document>{% for ad in a %}{% if > ad.geopt > %}<Placemark><name></name><description><![CDATA[{% if ad.uri2view %}<img > src="{{ ad.uri2view }}">{% endif %}<a href="http://{{host}}/vi/{{ad.key.id}}"> > {{ ad.title }} > </a><br/>{{ad.text|truncatewords:20}}]]></description><Point><coordinates>{{ad.geopt.lon|floatformat:2}},{{ad.geopt.lat|floatformat:2}}</coordinates></Point></Placemark>{% > endif %}{% endfor %}</Document></kml> > > On Thu, Nov 10, 2011 at 10:24 AM, Pil <[email protected]> wrote: > > The kml file is now loading correctly - although nothing is visible. > > It seems the kml file doesn't contain any defined icons. > > >http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=http:%2F%... > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
