In 200.8 the signal Graphic::geometryChanged was deprecated.
We used this signal to update the viewpoint of a Map View whenever a selected point geometry changes its position, e.g. to make the viewpoint follow the geometry:
connect(&graphic, &Graphic::geometryChanged, this, [this, &graphic]() { updateViewpoint(graphic.geometry()); });
Now that Graphic::geometryChanged is deprecated we need to replicate this behavior.
For Scene Views there is the OrbitGeoElementCameraController to follow a Graphic, but for Map View we have not found something similar which is why we implemented it ourselves with the Graphic:geometryChanged signal.
Is there a replacement for Graphic::geometryChanged? Or is there a better way to follow a moving graphic with the viewpoint?
@imbachb thanks for reaching out.
We are going to have a think about whether we should go through with deprecating the 'Graphic::geometryChanged' signal. We took a broader look at all our GeoElement classes, and found some cases where that signal would not be emitted consistently. We are not confident that Graphic was in the category of classes that was ever incorrect or not.
For now I can tell you that we simply emitted the signal any time Graphic::setGeometry was called, so you could update your logic to do the same or similar workflow. If that wouldn't work, please let me know so we can discuss within the team.