Skip to content

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

Open

Description

@kevinator56

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions