Hi Karina, I've just seen in another message this link [1], it can help you. As Eric said you, it uses the OpenLayers.Layer.Vector but it reads your text file as well.
Regards. Germán -------------------------- [1] http://openlayers.org/dev/examples/dynamic-text-layer.html 2010/3/2 Eric Lemoine <eric.lemo...@camptocamp.com> > On Monday, March 1, 2010, Karina Guardado <kguard...@gmail.com> wrote: > > Hi, > > > > Is there a way to change the box of a text layer maker to one that has a > close option like other popups. I mean when I click on one marker a box is > opened but there is not option to close it just click again in the marker > icon. > > Hi. > > What you want isn't supported. > > Using a Layer.Vector and a Control.SelectFeature is recommended. > Although it would lead to more code on your side it would give you > more flexibility. > > If you really want to use Layer.Text you can probably monkeypatch the > prototype of feature so popups are created with a closebox by default: > > var _createPopup = OpenLayers.Feature.prototype.createPopup; > OpenLayers.Feature.prototype.createPopup = function() { > _createPopup.call(this, true); > }; > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : eric.lemo...@camptocamp.com > http://www.camptocamp.com > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- ----------- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users