Add contains() function to QDeclarativeGeoMapQuickItem


The default QQuickItem::contains() does not work for this class because
this class uses some non-default transformations in case of
zoomLevel != 0.

This patch tries to solve the issue by transforming the incoming point
into the correct coordinate system before calling
QQuickItem::contains(). The mathematical principle is taken from the
implementation of QDeclarativeGeoMap::fitViewportToMapItemsRefine.

Be aware that the property zoomLevel is untested and not fully
implemented, see the many TODOs in the respective code.

Fixes: QTBUG-134438
Change-Id: Ia5d85d4e3a64be4975ec08a91a55ab00c825f171
Reviewed-by: Mate Barany <mate.barany@qt.io>
Reviewed-by: Lena Biliaieva <lena.biliaieva@qt.io>
commit0b2760b9e874c5e55a704f55e528d50e3b08abde
parentb69de4c50bf795d56967f10d582a1e9a0c2ae291
authorMatthias Rauter <matthias.rauter@qt.io>
committerMatthias Rauter <matthias.rauter@qt.io>
commit timeTue, 15 Apr 2025 12:15:00 +0200