Hi,Yves G: Thanks for your suggestion ,now I need to study the usage of http://jsfiddle.net.I even donot know how to put the servlet on it. Actually,when I put write all the latitude/longitude/colorinformation in an array of page, everything is running well, the popup content,the marker position and the color of icon is work as expected.
Now I want to transmit data from the background servlet use ajax, I have to receive the data and split it in coodCollection , everything is working except the the icons are wrong chosen,the icon are not the first 4 types define in switch() but the default type. Anyway,I have so much thanks for your help. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/why-the-popups-have-same-content-tp5037498p5037761.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users