<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I have a vector layer being created from a KML file via an HTTP protocol, and I'm trying to figure out how to get a custom icon to be displayed for all point in the KML file.<br>
<br>
Example URL to icon: http://www.mysite.com/icon.png<br>
<br>
How I create the KML Layer:<br>
<br>
var layer = new OpenLayers.Layer.Vector('mylayer', {<br>
&nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Stategy.Fixed()],<br>
&nbsp;&nbsp;&nbsp; protocol: new OpenLayer.Protocol.HTTP({<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; url: 'http://www.mysite.com/kml.kml',<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; format: new OpenLayers.Format.KML({<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; extractStyles: false,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; extractAttributes: false,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; maxDepth: 0<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; })<br>
&nbsp;&nbsp;&nbsp; })<br>
});<br>
<br>
I've tried creating a style and a style map and adding it to the layer, but I can't seem to get anything to work.</div>
</body>
</html>