IceNav-v3 icon indicating copy to clipboard operation
IceNav-v3 copied to clipboard

Tile boundaries review

Open jgauchia opened this issue 1 year ago • 0 comments

Overview

Since the current map is composed of a 9-tile matrix, it is necessary to review how the tile is determined based on the current longitude and latitude coordinates.

Details

The program currently retrieves the central tile from the 9-tile matrix based on the current longitude and latitude coordinates.

From this central tile, the expanded map is generated with a total of 9 tiles covering a total of 768x768 pixels (each tile measuring 256x256 pixels).

It is necessary to obtain the boundaries, in longitude and latitude coordinates, of the expanded map. The method of retrieving the current tile position needs to be changed so that it obtains the new central tile (required for creating the expanded map) if the current longitude and latitude coordinates exceed the boundaries of the expanded map.

This will prevent the current situation where the expanded map is generated only when the current coordinates match the central tile, instead of considering that the map is larger and already includes the surrounding tiles of the central one

jgauchia avatar Jun 09 '23 23:06 jgauchia