[OpenLayers-Users] text markers
Germán Carrillo
carrillo.german at gmail.com
Tue Mar 2 10:39:10 EST 2010
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.lemoine at camptocamp.com>
> On Monday, March 1, 2010, Karina Guardado <kguardado at 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.lemoine at camptocamp.com
> http://www.camptocamp.com
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
-----------
|\__
(:>__)(
|/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100302/d2678d14/attachment.html
More information about the Users
mailing list