[Users] popup window

Andreas Hocevar ahocevar at opengeo.org
Mon Feb 1 14:07:31 CET 2010


Hi,

you have to activate editing tools (especially Control.ModifyFeature) 
and the select control exclusively. Make sure to deactivate the 
SelectFeature control when one of the editing tools is activated.

Regards,
Andreas.

Mario Nuñez Jimenez wrote:
> Hello,
> I teste the solution adding this to my web:
>
> 		var selectControl = new OpenLayers.Control.SelectFeature(
> 			[polygonLayer, pointLayer,lineLayer],
> 			{
> 				clickout: true, toggle: false,
> 				multiple: false, hover: false,
> 				toggleKey: "ctrlKey", 
> 				multipleKey: "shiftKey"		}
> 		);
> 		map.addControl(selectControl);
> 		selectControl.activate();
> 		
> 		polygonLayer.events.on({
> 			"featureselected": function(e) {
> 				panelPoligonos.expand(true);
> 				panelPuntos.collapse(true);
> 				panelLineas.collapse(true);				
> 			},
> 			"featureunselected": function(e) {}
> 		});
> 		
> 		pointLayer.events.on({
> 			"featureselected": function(e) {
> 				panelPuntos.expand(true);
> 				panelPoligonos.collapse(true);
> 				panelLineas.collapse(true);							
> 			},
> 			"featureunselected": function(e) {}
> 		});
> 		
> 		lineLayer.events.on({
> 			"featureselected": function(e) {
> 				panelLineas.expand(true);
> 				panelPuntos.collapse(true);
> 				panelPoligonos.collapse(true);
> 			},
> 			"featureunselected": function(e) {}
> 		});
>
>
> It worked perfectly but some tools are now not working.
> All feature editing tools are not working (delete point, move point, ...)
> So I don’t know why this happens and how to solve, or if there is any other way to do the feature highlighting without breaking the editing tools...
>
> Kind regards.
> Mario
>
> -----Original Message-----
> From: Alexandre Dube [mailto:adube at mapgears.com] 
> Sent: martes, 26 de enero de 2010 19:22
> To: Mario Nuñez Jimenez
> Cc: users at geoext.org
> Subject: Re: [Users] popup window
>
> Mario,
>
> You could define your layer object as a Vector layer and defining a WFS 
> protocol to it. Here's an example [1]. Simply look a the source.
>
> Regards,
>
> Alexandre
>
> [1] http://openlayers.org/dev/examples/wfs-protocol.html
>
> Mario Nuñez Jimenez wrote:
>   
>> Hello,
>>
>> I want to know how can I do a popup window from a feature because I 
>> found an example called popup.js in geoext website but it uses a 
>> vector and my applicattion only uses wfs layers… so I don’t know how 
>> to manage it…
>>
>> Any tip.
>>
>> Thank you!
>>
>> ------------------------------------------------------------------
>> This e-mail and the documents attached are confidential and intended
>> solely for the addressee; it may also be privileged. If you receive
>> this e-mail in error, please notify the sender immediately and destroy 
>> it.
>> As its integrity cannot be secured on the Internet, the Atos Origin
>> group liability cannot be triggered for the message content. Although
>> the sender endeavours to maintain a computer virus-free network,
>> the sender does not warrant that this transmission is virus-free and
>> will not be liable for any damages resulting from any virus transmitted.
>>
>> Este mensaje y los ficheros adjuntos pueden contener informacion 
>> confidencial
>> destinada solamente a la(s) persona(s) mencionadas anteriormente
>> pueden estar protegidos por secreto profesional.
>> Si usted recibe este correo electronico por error, gracias por informar
>> inmediatamente al remitente y destruir el mensaje.
>> Al no estar asegurada la integridad de este mensaje sobre la red, Atos 
>> Origin
>> no se hace responsable por su contenido. Su contenido no constituye 
>> ningun
>> compromiso para el grupo Atos Origin, salvo ratificacion escrita por 
>> ambas partes.
>> Aunque se esfuerza al maximo por mantener su red libre de virus, el 
>> emisor
>> no puede garantizar nada al respecto y no sera responsable de 
>> cualesquiera
>> danos que puedan resultar de una transmision de virus.
>> ------------------------------------------------------------------
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>   
>>     
>
>
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list