Re: [OpenLayers-Users] display different popup for different layer

2010-05-27 Thread Giuseppe Naponiello
Mmhh, I've tried but it's doesn't work, I think because the layer's attributes are different and I cannot define the same popup content. I've risolved writing a second function: function onFeatureSelect(event) { feature = event.feature; popup = new OpenLayers.Popup.FramedCloud("chicke

Re: [OpenLayers-Users] display different popup for different layer

2010-05-25 Thread Alessandro Pasotti
In data lunedì 24 maggio 2010 15:14:54, Giuseppe Naponiello ha scritto: : > Hi all, > in my project I've 2 layers (layer1, layer2) with different attributes. > Layer 1 is in gml format, layer2 is a txt file > When I click on the layer1, I open a popup with this code: > > function onPopupClose(evt)

[OpenLayers-Users] display different popup for different layer

2010-05-24 Thread Giuseppe Naponiello
Hi all, in my project I've 2 layers (layer1, layer2) with different attributes. Layer 1 is in gml format, layer2 is a txt file When I click on the layer1, I open a popup with this code: function onPopupClose(evt) {selectControl.unselect(feature);} //al click su un elemento, creo e visualizzo al p