[OpenLayers-Users] OL 2.7 Marjers Feature Style_map

Walter Lorenzetti lorenzetti at gis3w.it
Thu Oct 9 06:19:21 EDT 2008


Hi all,

I don't know if is it possible:

watching on news 2.7 example I found markers_shadow.html
Is fantastic for my new application where now I use icon image just with 
shadow...
I see that now is possible to setup a stylemap obj for a vector layer ong

but I've a problem

in my application I parse a gml file to put a markers layer on the map:

1) I parse the gml file
2) I build several OpenLayers.Feature obj
3) I add several metadata from parse file to my new features and new 
icon on .data.icon and a popup object
4) from the new features I build markes
5) for every marker I register a function on click event 
marker.events.register ("click") for show a popup
6) at the end I put all my new markers in a mew marker layer obj

I do that because on a more simple vector layer is too difficult 
register a click event
because I can only select the single feature...

so my question is:

Is possible apply the stylemap method to a OpenlayersFeature?

Or with a vector layer obj is there a symple method for a click event?

I hope my english is not too bad

Thanks in advance
Walter

-- 

Walter Lorenzetti
email: lorenzetti at gis3w.it
skype: aiki74
Cell: (+39) 347-6597931  Tel+Fax: (+39) 0583 926684
Via di Tofori 123a 55010, Camigliano-S.Gemma Lucca
Italy




More information about the Users mailing list