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
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)
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