JMapPane is in an unsupported module for a reason :-( If you check out the module matrix page you will see scores 0 out of 5 stars! - http://docs.codehaus.org/display/GEOTOOLS/MapPane
In general try contacting the module maintainer for help - and especially for unsupported modules send patches as you improve things. Personally I just consider JMapPane as an example of how to use a StreamingRenderer to draw onto a swing widget. If you are working on trunk I recommend trying out the following module: - http://docs.codehaus.org/display/GEOTOOLS/widgets-swing-pending I find the lay out of this module to be a vast improvement; different classes depending on what functionality you are trying to accomplish etc... While this module is also unsupported, the developer is very active and would be glad of the feedback. Cheers, Jody > 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 > ------------------------------------------------------------------------- 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
