Excellent !!!<br><br>Thank you very much.<br><br><br><br><div><span class="gmail_quote">2008/2/25, Erik Uzureau &lt;<a href="mailto:euzuro@gmail.com">euzuro@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK sorry. just checked the documentation and in fact there is no<br> &#39;options&#39; parameter to the Feature class&#39;s constructor.<br> <br> So what you will have to do is:<br> <br> feature = new OpenLayers.Feature(layer, new OpenLayers.LonLat(lng,lat));<br>
 feature.popupClass = OpenLayers.Popup;<br> <br><br> <br> <br> e<br> <br><br> On 2/25/08, Leandro R &lt;<a href="mailto:learonco@gmail.com">learonco@gmail.com</a>&gt; wrote:<br> &gt; Hi<br> &gt; Thanks for your quick answer, but I had already tried that and did not work.<br>
 &gt; What else could be?<br> &gt; Thanks<br> &gt;<br> &gt;<br> &gt; 2008/2/25, Erik Uzureau &lt;<a href="mailto:euzuro@gmail.com">euzuro@gmail.com</a>&gt;:<br> &gt; &gt; I think the problem here is that you are specifying the class in<br>
 &gt; &gt; quotes as a string.<br> &gt; &gt; It should just be:<br> &gt; &gt;<br> &gt; &gt;<br> &gt; &gt; &gt; feature = new OpenLayers.Feature(layer, new OpenLayers.LonLat(lng,lat),<br> &gt; &gt;<br> &gt; &gt; &gt; {popupClass:OpenLayers.Popup});<br>
 &gt; &gt;<br> &gt; &gt;<br> &gt; &gt;<br> &gt; &gt; ---e<br> &gt; &gt;<br> &gt; &gt;<br> &gt; &gt; 2008/2/25 Leandro R &lt;<a href="mailto:learonco@gmail.com">learonco@gmail.com</a>&gt;:<br> &gt; &gt;<br> &gt; &gt; &gt; Hello all !!!<br>
 &gt; &gt; &gt;<br> &gt; &gt; &gt; I need to change the popup class of a Feature object. I&#39;ve tried to do<br> &gt; it as<br> &gt; &gt; &gt; the following, but it has not worked.<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; feature = new OpenLayers.Feature(layer, new OpenLayers.LonLat(lng,lat),<br>
 &gt; &gt; &gt; {popupClass:&#39;OpenLayers.Popup&#39;});<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; I don&#39;t want to change that from the file Feature.js.<br> &gt; &gt; &gt;<br> &gt; &gt; &gt; Can anyone help me?<br> &gt; &gt; &gt; Thanks<br>
 &gt; &gt; &gt; Leandro<br> &gt; &gt; &gt;<br> &gt; &gt; &gt;<br> &gt; &gt;<br> &gt; &gt; &gt; _______________________________________________<br> &gt; &gt; &gt; Dev mailing list<br> &gt; &gt; &gt; <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
 &gt; &gt; &gt; <a href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</a><br> &gt; &gt; &gt;<br> &gt; &gt; &gt;<br> &gt; &gt;<br> &gt;<br> &gt;<br> </blockquote></div><br>