Hi @Ethan, I’m getting this error “A generic error occurred in GDI+.”
Please provide more detail information, so we can reproduce it.
This exception is general, so it’s hard to give you more suggestion only from it.
While plotting a image layer from a local image
What’s the image format, which class you are using, what’s the map edition you choose and what’s the detail version?
You mentioned you plot the map from a URL, please paste the render code about it.
While it’s plotted we are updating the image
NativeImageRasterLayer rasterRadar = new NativeImageRasterLayer(localFilepath, _proj.ConvertToExternalProjection(new RectangleShape(-179.999979224, 85, 179.972976801, -85)));
rasterRadar.Name = “RainViewer”;
rasterRadar.WrappingExtent = _proj.ConvertToExternalProjection(new RectangleShape(-180, 90, 180, -90)); ol_Radar.Layers.Add("", rasterRadar);
Here is a sample, which works well.
Please modify it to reproduce this exception.
9348.zip (193.0 KB)