Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMRaster not rendering on the map with setting an ImageFilter #36

Open
kevinator56 opened this issue Nov 19, 2016 · 0 comments
Open

OMRaster not rendering on the map with setting an ImageFilter #36

kevinator56 opened this issue Nov 19, 2016 · 0 comments

Comments

@kevinator56
Copy link

Found an issue with OMRaster not displaying on the map if an ImageFilter is set. If you remove the image filter, then the image will be displayed.

The issue was introduced with commit c8afba5. See OMRasterObject.imageUpdate(). I'm not sure the correct way to address it besides going back to the previous code.

I've attached a code sample to reproduce the issue. When you first run it, it will display a white box. Then uncomment the setting of the image filter and run it again. There should now be a green box displayed whereas no box displays.

I have a work around by extending OMRaster and override renderImage(). In the override method, call image.getHeight(null) or image.getWidth(null) followed by calling super.renderImage(). This will cause the filtered image to get loaded before rendering to the map.

I'm running against OpenMap version 5.1.14 and Java 64-bit 8u60 on Linux.

SimpleMap.java.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant