We have SceneGraphicsView where we add a QImage (radar image) as an ImageOverlay. Our image is a circle with 40km radius. I want to give the center point of this circle as the Envelope's center point. However, the ImageOverlay does not appear in the given point. (Lon: 29.444835, Lat: 40.785893) What am I missing?
When I change the width and height parameters in Envelope constructor, size of the imageOverlay does not change too much.
void MainMapWidget::addImageToMap(){
m_imageOverlay = new ImageOverlay();
m_sceneView->imageOverlays()->append(m_imageOverlay);
const Point pointForImageFrame(29.444835, 40.785893, SpatialReference::wgs84());
m_pacificSouthwestEnvelope = Envelope(pointForImageFrame, 0.474571, 0.361748);
m_imageOverlay->setOpacity(0.5);
Camera camera(40.785893, 29.444835, 10010.0, 0, 0, 0.0);
m_sceneView->setViewpointCameraAndWait(camera);
}
void MainMapWidget::slotRadarImageChanged(const QImage &image){
std::unique_ptr<ImageFrame> m_imageFrame = std::make_unique<ImageFrame>(image, m_pacificSouthwestEnvelope);
m_imageOverlay->setImageFrame(m_imageFrame.get());
}