Excellent !!!<br><br>Thank you very much.<br><br><br><br><div><span class="gmail_quote">2008/2/25, Erik Uzureau <<a href="mailto:euzuro@gmail.com">euzuro@gmail.com</a>>:</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> 'options' parameter to the Feature class'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 <<a href="mailto:learonco@gmail.com">learonco@gmail.com</a>> wrote:<br> > Hi<br> > Thanks for your quick answer, but I had already tried that and did not work.<br>
> What else could be?<br> > Thanks<br> ><br> ><br> > 2008/2/25, Erik Uzureau <<a href="mailto:euzuro@gmail.com">euzuro@gmail.com</a>>:<br> > > I think the problem here is that you are specifying the class in<br>
> > quotes as a string.<br> > > It should just be:<br> > ><br> > ><br> > > > feature = new OpenLayers.Feature(layer, new OpenLayers.LonLat(lng,lat),<br> > ><br> > > > {popupClass:OpenLayers.Popup});<br>
> ><br> > ><br> > ><br> > > ---e<br> > ><br> > ><br> > > 2008/2/25 Leandro R <<a href="mailto:learonco@gmail.com">learonco@gmail.com</a>>:<br> > ><br> > > > Hello all !!!<br>
> > ><br> > > > I need to change the popup class of a Feature object. I've tried to do<br> > it as<br> > > > the following, but it has not worked.<br> > > ><br> > > > feature = new OpenLayers.Feature(layer, new OpenLayers.LonLat(lng,lat),<br>
> > > {popupClass:'OpenLayers.Popup'});<br> > > ><br> > > > I don't want to change that from the file Feature.js.<br> > > ><br> > > > Can anyone help me?<br> > > > Thanks<br>
> > > Leandro<br> > > ><br> > > ><br> > ><br> > > > _______________________________________________<br> > > > Dev mailing list<br> > > > <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
> > > <a href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</a><br> > > ><br> > > ><br> > ><br> ><br> ><br> </blockquote></div><br>