Uhm..<div><br></div><div>But.. as seen in this link..</div><div><a href="http://docs.openlayers.org/library/feature_styling.html">http://docs.openlayers.org/library/feature_styling.html</a> </div><div><br></div><div><dt style="font-family:sans-serif;font-size:14px;line-height:18px;text-align:justify;background-color:rgb(255,255,255)">
"fillColor</dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;text-align:justify;line-height:18px;font-family:sans-serif;font-size:14px;background-color:rgb(255,255,255)"><p class="first last" style="margin-top:0px!important">
Default is <tt class="docutils literal" style="background-color:rgb(236,240,243);padding-top:0px;padding-right:1px;padding-bottom:0px;padding-left:1px;font-size:0.95em;white-space:pre"><span class="pre">#ee9900</span></tt>. This is the color used for filling in Polygons. It is also used in the center of marks for points: the interior color of circles or other shapes. It is not used if an externalGraphic is applied to a point."</p>
</dd><div><br></div><div>I'm drawing features with images defined by the externalGraphic property.. Then.. I can't use the fillColor.. ?</div><div><br></div><div>Or is there any other way to draw the feature withous using externalGraphic?</div>
<div><br></div><div>Thanks...</div><div><br></div><br><div class="gmail_quote">2012/2/17 Carlos Krefft <span dir="ltr"><<a href="mailto:ckrefft@rsmas.miami.edu">ckrefft@rsmas.miami.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Here are the possible values:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><a href="http://docs.openlayers.org/library/feature_styling.html#style-properties" target="_blank">http://docs.openlayers.org/library/feature_styling.html#style-properties</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Carlos Krefft<br>
<b>Sent:</b> Friday, February 17, 2012 11:40 AM<br><b>To:</b> 'jkm'; <a href="mailto:users@openlayers.org" target="_blank">users@openlayers.org</a><br><b>Subject:</b> RE: [OpenLayers-Users] Drawing a point feature with image and background color..<u></u><u></u></span></p>
</div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Use fillColor.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">…<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">fillColor: <span style="color:maroon">"#FF5500"</span>,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">fillOpacity: 0.7,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Carlos K.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a> <a href="mailto:[mailto:openlayers-users-bounces@lists.osgeo.org]" target="_blank">[mailto:openlayers-users-bounces@lists.osgeo.org]</a> <b>On Behalf Of </b>jkm<br>
<b>Sent:</b> Friday, February 17, 2012 5:58 AM<br><b>To:</b> <a href="mailto:users@openlayers.org" target="_blank">users@openlayers.org</a><br><b>Subject:</b> [OpenLayers-Users] Drawing a point feature with image and background color..<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi, <u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I would like to know if it is possible to draw a point feature with a background color..<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I define a style like that:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal">ImgStyle = {<u></u><u></u></p>
</div><div><p class="MsoNormal"> externalGraphic: imgURL,<u></u><u></u></p></div><div><p class="MsoNormal"> label: text,<u></u><u></u></p></div><div><p class="MsoNormal"> labelXOffset: "0",<u></u><u></u></p>
</div><div><p class="MsoNormal"> labelYOffset: "-10",<u></u><u></u></p></div><div><p class="MsoNormal"> fontColor: txt_colfont,<u></u><u></u></p></div><div><p class="MsoNormal"> fontSize: "10px",<u></u><u></u></p>
</div><div><p class="MsoNormal"> fontFamily: "Arial",<u></u><u></u></p></div><div><p class="MsoNormal"> fontWeight: "bold",<u></u><u></u></p></div><div><p class="MsoNormal"> pointRadius: 10,<u></u><u></u></p>
</div><div><p class="MsoNormal"> labelAlign: "cm",<u></u><u></u></p></div><div><p class="MsoNormal"> labelPadding: "3px",<u></u><u></u></p></div><div><p class="MsoNormal"> labelBackgroundColor: txt_colback,<u></u><u></u></p>
</div><div><p class="MsoNormal"> labelBorderColor: "#cfcfcf",<u></u><u></u></p></div><div><p class="MsoNormal"> labelBorderSize: "1px"<u></u><u></u></p></div><div><p class="MsoNormal"> };<u></u><u></u></p>
</div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">And what I would like to do, is draw a background to the image..<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
</div><div><p class="MsoNormal">By now, I'm drawing two elements in the same position, one is the point with the externalGraphic, and the other one is the same but without the externalGraphic and with a background color.. With this I can see the effect of a background under the image..<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">But, I would like to draw as a unique element... Because I'm loading a large amount of markers to the map.<u></u><u></u></p></div><div>
<p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">And also, I would like to apply a cluster strategy to the layer.. And drawing the background and the image as separate features modifies the clustering..<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks!<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div>
</div></div></div></blockquote></div><br></div>