Refactoring QGeoTiledMapScene::mercatorToItemPosition


This patch reimplements the method mercatorToItemPosition using
values relevant for this type of conversion, instead of re-using
values initially computed for the tile generation.

This allows to greatly optimize the method, reducing branches and
the total number of operations, as well as making it easier to
understand.

This patch also removes the support for letterboxing the map
viewport inside the DeclarativeGeoMap, as there now is the
constraint that the map can never be smaller than the containing
element.

Change-Id: Ida98e97ad0a6b65233c80ae3c4abd3ec7664c555
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit9e71adaf31fe50e9966a6b09619968ae2b1176b6
parentad620973ea45b79fd17c6b0d31a613b35ba6566b
authorPaolo Angelelli <paolo.angelelli@qt.io>
committerPaolo Angelelli <paolo.angelelli@qt.io>
commit timeWed, 7 Dec 2016 09:50:54 +0000