If you make a new class that extends StyledMapPane, you can override the method:
protected abstract void selectionPerformed(int ox, int oy, int px, int py);
I think that should accomplish what you want.

As a side note to any developers that may be listening, I would love it if the selectionPerformed method could also provide the original mouse event (e.g. protected abstract void selectionPerformed(MouseEvent oEvent, int ox, int oy, int px, int py)). I would extend MouseSelectionTracker myself, but it is not declared public.

Peter

Virginie BERRE wrote:

Hi All !

The data displayed in my StyledMapPane result from a WMS request. I would like to remove the default behaviour of the zoom by making a new request with the new bounding box etc.

I have added a zoomChangeListener, the code written in the zoomChanged method doesn’t work: mapPane.getRenderer().removeAllLayers();

and then I add new layers to the mapPane.

Someone could help me ?!

Thanks!

** Virginie Berre / Ingénieur étude et développement **

Générale d’Infographie

ZA Les Erables – Bâtiment 4

66, route de Sartrouville – F-78230 – LE PECQ

Tél : (33) (0)1.30.15.40.50 – Fax : (33) (0)1.30.15.40.60

mailto:[EMAIL PROTECTED]

http://www.generale-infographie.fr/




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to