I am developing an application using Qt 15.1 and ArcGIS Runtime SDK v100.9. The application is C++ and does not use any QML.
I have a MapGraphicsView with a basemap loaded and various GraphicsOverlay to which Graphic objects are being added and correctly displayed.
I have a dynamically generated QPixmap representing some sensor data that I want to display such that it is scaled to cover a known geographic area which can be described using an Envelope (i.e. it is a simple rectangular area with known lat/lon coordinates). The QPixmap can easily be converted to a QImage, but the data is not available via a web service or as a file on disk. The sensor data updates approximately once a second.
I am trying to find a sensible/suitable way to overlay this sensor data on the map such that it scales/stretches to fill the known area (rather than being tiled to fill the area) and it will be correctly resized when the map scale changes as the user zooms in/out.
My current implementation is using PictureMarkerSymbol but this is requiring me to manually resize the PictureMarkerSymbol when the map scale is changed and there seems to be a memory leak when the PictureMarkerSymbol is replaced with a new one for the new sensor data (even when I explicitly delete the old PictureMarkerSymbol). Also using setScaleSymbols(true) does not cause the symbol to update as expected in terms of resizing the image.
I believe ImageOverlay class is only supported for 3D SceneViews and everything else I have found in the SDK appears to want the load the image via a URL with no option to use a QImage or similar for an image already in memory.
Can anyone suggest a different/better approach to the one that I am currently using?