Zoom/ pan to specific location from a plugin

Hi,
I’m trying to digitize points by entering X and Y values from a text box in a plugin - I’d like to zoom/pan to the location before digitizing but am having no luck getting the canvas to move…does anyone know the correct request?
(I’d also like to read the CRS of the active layer- but that is a different queston I’m sure)
Many thanks in advance.
Tony
qfield-plugin-addpoints.zip


Imported from GitHub discussion by @TyHol on 2025-02-12T12:26:47Z

Took the long way round to get a simple answer

iface.mapCanvas().mapSettings.center.x = x
iface.mapCanvas().mapSettings.center.y = y


Imported from GitHub comment by @TyHol on 2025-02-13T11:37:17Z