Change a check if an image path already exists to check against the key instead of the value in the map. ConcurrentHashMap.contains() calls containsValue(), which will never return true when passed a String.
Why Should This Be In Core?
It's a bug.
Benefits
If an image is added twice to a SurfaceImageLayer, the first one's tiles will be removed.
Description of the Change
Change a check if an image path already exists to check against the key instead of the value in the map. ConcurrentHashMap.contains() calls containsValue(), which will never return true when passed a String.
Why Should This Be In Core?
It's a bug.
Benefits
If an image is added twice to a SurfaceImageLayer, the first one's tiles will be removed.
Potential Drawbacks
None that I can think of.
Applicable Issues
None created.