Hi,

we needed attribute "id" for each object in the input textfile, so we
could write our custom methods for "click" events, when user click on
the icon.

I was thinking about mechanism, which would enable this and I think, the
best way is to enable *any* number of custom columns.

The patch was only few lines, and you can associate any attribute you
want to each icon from the vector layer.

Ticket added to the trac [1]
Patch for Text.js as well as test/data_Layer_Text_textfile.txt and
eventually examples/textfile.txt added as well [2].

Looking forward to your comments :-)

Good night

Jachym

[1] http://trac.openlayers.org/ticket/1135
[2]
http://trac.openlayers.org/attachment/ticket/1135/Text_with_any_attribute.diff
-- 
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