[patch] Added JMapViewerEventListener and getMeterPerPixel() to JMapViewer
|Reported by:||jhuntley||Owned by:||jhuntley|
The scale can now be retrieved in real-time vs looking off referenced wiki pages:
I've updated the Demo application to demonstrate this feature.
I've also added a special eventlistener mechanism to the the JMapViewer so external UI components can register and receive notifications when the user interacts with the Map Viewer. Right now I'm only demoing with the zoom feature. However, I could see additional actions added for other operations in the Viewer. Please see demo.
I've tested the accuracy of the meter/pixel calculation with all the major airport runways in the US. The calculation is extremely close to scale. I can generate runway overlays for airports using this function. I may even have more enhancements coming later for adding object and shape overlays to the map.
I do you hope you consider this functionality for the project. I'm attaching the source. Thanks for your time.
Change History (27)
comment:2 Changed 21 months ago by bastiK
- Summary changed from Added JMapViewerEventListener and getMeterPerPixel() to JMapViewer to [patch] Added JMapViewerEventListener and getMeterPerPixel() to JMapViewer
Changed 21 months ago by anonymous
Changed 21 months ago by Jason Huntley <jhuntley@…>
comment:18 Changed 21 months ago by bastiK
- Resolution set to fixed
- Status changed from new to closed