Hello,
I'm currently working with the Esri ArcGIS Maps SDK for .NET in a .NET MAUI application. I need to export an image of the map, and ideally, this image should not be limited to just the visible area on the screen.
At the moment, I'm using the following code:
await _mapView.ExportImageAsync();
However, this approach only captures the portion of the map that is currently rendered on the screen. As a result, the exported image size varies depending on the device. Smaller devices like phones, the image is smaller, while on desktops, more of the map is visible and captured.
Is there a way to export a map image where I can explicitly define the height and width of the output, regardless of the current viewport size?
Unfortunately, using a REST API to generate a larger image on the server side isn't an option, as the map includes numerous graphics layers that need to be rendered client-side.
Open to any ideas on the situation 🙂
Solved! Go to Solution.
Hi there,
Thanks for your question.
Currently, the ArcGIS Maps SDK can only export the part of the map that you see on your screen. There isn’t a way to export a bigger map image or set a custom size that’s different from what’s shown in the app. The exported image is just a copy of what’s currently displayed, and things like device size and screen resolution affect the result.
It is possible to create a MapView at a specific size to get a more consistent image, but this only works up to the maximum size your device can handle.
We know this is something people want, and we appreciate your feedback!
Regards,
Prathamesh
Hi there,
Thanks for your question.
Currently, the ArcGIS Maps SDK can only export the part of the map that you see on your screen. There isn’t a way to export a bigger map image or set a custom size that’s different from what’s shown in the app. The exported image is just a copy of what’s currently displayed, and things like device size and screen resolution affect the result.
It is possible to create a MapView at a specific size to get a more consistent image, but this only works up to the maximum size your device can handle.
We know this is something people want, and we appreciate your feedback!
Regards,
Prathamesh
@ShaneRumbaugh Could you share a little bit about the scenario that you need the image for? I can add your specific user-story to our internal issue tracking this feature request so we make sure it'll cover your case too.