Export map as an image using QT qml in AppStudio

716
4
03-09-2018 06:27 AM
SRINIVASANM_E
New Contributor

Hi ,

I would like to get a map image from AppStudio window and save it to a location.

Any help is appreciated.

Thanks,

Srinivasan

0 Kudos
4 Replies
nakulmanocha
Esri Regular Contributor

MapView has a method to export the Map as an image. You can use that method to get the url and download locally. 

GeoView QML Type | ArcGIS for Developers 

Nakul

0 Kudos
SRINIVASANM_E
New Contributor

Hi Nakul,

I used grabtoimage()  function of mapview element to export the mapview as an image and it worked fine for me.

However , i will try your option also.

If possible, let me know whether i can export the map to pdf ?

Thanks for your reply.

0 Kudos
nakulmanocha
Esri Regular Contributor

Unfortunately, from Runtime API you could only do an image. You need to find a way or write some code to convert the image to PDF.

Thanks,

Nakul

0 Kudos
SRINIVASANM_E
New Contributor

Hi Nakul,

Thanks for your input.

When you say ArcGIS Runtime API it means QML application or dotnet application ?

Is it possible through ArcGIS Runtime dotnet SDK ?

0 Kudos