Closed (fixed)
Project:
KML
Version:
6.x-2.0-alpha1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2011 at 16:29 UTC
Updated:
19 Apr 2012 at 18:41 UTC
Hello,
Thank you for this usefull module.
I have succeeded in exporting my located nodes, but I don't understand how to use IconStyle
I putted the code
<Style id="element">
<IconStyle>
<Icon>
<href>http://www.ziip.be/map/zip-vert.png</href>
</Icon>
</IconStyle>
</Style>
in the file kml-style.tpl.php and this piece of code is well integrated in my KML files
but no links between included "Placemarkq" and these iconstyles
how to implement them, and how to choose this style for this placemark and this style for this other placemark?
thank you for your informations
I joined a screenshot of my view configuration, if needed
matthieu
| Comment | File | Size | Author |
|---|---|---|---|
| kml.jpg | 129.96 KB | matthieu_collet |
Comments
Comment #1
jeffschulerYour placemarks need to reference #element as their style.
Copy kml-placemark.tpl.php to your theme and add
<styleUrl>#element</styleUrl>to your placemarks, like:If you want to customize the icon for in each placemark based on fields in each row of your view, what just got committed to 6.x-2.x-dev lets you get at those fields from kml-placemark.tpl.php. See #1252348: Make remaining fields available in point.
Please re-open this if this doesn't solve your dilemma. :)