Hi,

I have added new version of OpenLayers/Marker/Label.js file, which
defines new OpenLayers.Marker.Label class -- Markers with labels.

Test for Test.AnotherWay attached too.

Please, let me know, if it is in shape more or less acceptable for svn
trunk. Also let me know if it is not and why ;-)

Cheers

Jachym

Jachym Cepicky píše v Čt 01. 11. 2007 v 20:58 +0100:
> Hi,
> 
> I have updated #751 and it would be nice, if somebody could test it and
> and if it would appear in the trunk.
> 
> Other proposed changes:
> 
> OpenLayers/Layer/Text.js:
> -------------------------
> data['overflow'] = overflow || "auto";
> + data.label  = title;
> 
> 
> OpenLayers/Feature.js:
> -------------------------
> - this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon);
> + if (this.data.label) {
> +       this.marker = new OpenLayers.Marker.Label(this.lonlat,
> this.data.icon, this.data.label,{mouseOver:true});
> + }
> + else {
> +      this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon);
> +
> 
> and of course
> OpenLayers.js
> -------------
> +  "OpenLayers/Marker/Label.js",
> 
> 
> working example: 
> 
> http://www.bnhelp.cz/mapserv/pokusy/openlayers/cr/
> 
> turn layer group "Turistika" on and "mouseover" the icons.
> 
> thanks
> 
> jachym
> 
> Ezequiel Gonzalez Rial píše v Čt 25. 10. 2007 v 10:03 -0300:
> > Jachym,
> > I've developed something arround that (Ticket #751) wich is not yet on
> > the trunk, it's a label that apperars next to the marker (by css you
> > can set it above, below or wherever you want), as it inheritance from
> > marker you don't loose anything you have already coded.
> > 
> > --
> > Best Regards,
> > Ezequiel Gonzalez Rial ([EMAIL PROTECTED])
> > 
> > 2007/10/25, Jachym Cepicky <[EMAIL PROTECTED]>:
> > > Hi,
> > >
> > > maybe, it would be good to have option for OpenLayers.Layer.Marker,
> > > which would enable displaying alt text of icons on mouse over. The alt
> > > attribute could be e.g. Title of OL.Layer.Text
> > >
> > > Is there such possibility, which would display alt or other attribute,
> > > while moving with mouse over icon?
> > >
> > > thanks
> > >
> > > jachym
> > >
> > > --
> > > Jachym Cepicky
> > > e-mail: [EMAIL PROTECTED]
> > > URL: http://les-ejk.cz
> > > GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
> > >
> > >
> > > _______________________________________________
> > > Dev mailing list
> > > [email protected]
> > > http://openlayers.org/mailman/listinfo/dev
> _______________________________________________
> Dev mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/dev
-- 
Jachym Cepicky
e-mail: [EMAIL PROTECTED]
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to