From: Alexandre A. S. <aas...@gm...> - 2011-04-04 14:20:36
|
Hi, I'm newbie in gwt-openlayers and I'm a bit confused in how to do some stuff, specially zoomOut and measures. I saw several controls in the package org.gwtopenmaps.openlayers.client.control and most of them work great, but I spent some days trying to add measure and zoom out functionality without any success. In measure tool I'm using Measure class, but in the constructor I'm required to pass Handler..... but, where can I take this handler? I know in OpenLayer you can get it from OpenLayers.GetHandler(), but what's about gwt-openlayers? Where can I get the handler? About zoom out, I'm using ZoomOut class, with the next code: if (controlZoomOut==null) { controlZoomOut= new ZoomOut(); map.addControl(controlZoomOut); } controlZoomOut.activate(); controlZoomOut id declared as private variable at the beginning of the class. The thing is that my map doesn't enable zoomout functioanlity.... what am I missing? Thank in advance, Cheers, Alexandre Greetings from Spain ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ |