Hi,
I'm using JMapPane.
Added ZoomIn/Out actions there:
JMapPane m_mapPane ...
Action zoomIn = new ZoomInAction(m_mapPane);
...
Is there any ability to listen to Zoom In/Out actions on JMapPane? I
found some 'zoomFactor' in JMapPane, but it didn't changed when I
Zoomed In/Out. Also in docs I found ZoomPane, ZoomChangeEvent,
ZoomChangeListener. But I should change my m_mapPane to ZoomPane type
to use that. I'm looking for best solution.
For quick solution I can listen to mouse events on JMapPane, then
check JMapPane's state... But 1) it's rather ugly; 2) this way I don't
know current scale.
Please help me, I have spend much time for it, but still can't solve
this problem.

Thank You,
Alex.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to