Device and method for controlling electronic map
First Claim
1. A device for controlling panning of an electronic map, the device comprising:
- at least a processor; and
at least a memory communicatively coupled to the at least a processor, the at least a memory bearing processor-executable instructions that upon execution by the at least a processor cause the device to perform at least the following operations;
searching out a plurality of target tiles that need to be loaded and displayed when receiving an instruction of panning a map;
selecting a pre-loaded display level based on a current display level, and searching out pre-loaded tiles corresponding to the target tiles in the pre-loaded display level;
acquiring the pre-loaded tiles and the target tiles according to an order of priority, and loading and displaying the pre-loaded tiles by zooming in according to a level difference between the pre-loaded display level and the current display level; and
after acquiring the target tiles, loading and displaying the target tiles so as to replace the zoomed-in pre-loaded tiles at corresponding positions, wherein the searching out a plurality of target tiles that need to be loaded and displayed comprises;
according to geographical position coordinates of a central point of a visual region of the map and the current display level of the map, obtaining pixel coordinates of the central point by converting;
obtaining a pixel size of a single tile in the current display level based on the current display level of the map;
obtaining, according to the pixel size of the visual region of the map and the pixel coordinates of the central point, pixel coordinates of two opposite apexes of the visual region of the map; and
obtaining serial numbers of tiles in the visual region according to the pixel coordinates of the two opposite apexes of the visual region of the map and the pixel size of the single tile in the current display level.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention discloses a device and method for controlling zooming-in of an electronic map, a device and method for controlling zooming-out of an electronic map, a device and method for controlling panning of an electronic map, a device and method for computing tiles within a visual region of an electronic map, and a device and method for processing an electronic map tile request queue, wherein the method for controlling zooming-in of an electronic map comprises: determining a target display level to be reached via zooming in when receiving an instruction of zooming in the map, and searching out a plurality of target tiles that need to be displayed in the target display level; selecting a pre-loaded display level based on a relationship between a current display level and the target display level, and searching out pre-loaded tiles corresponding to the target tiles in the pre-loaded display level; acquiring the pre-loaded tiles and the target tiles according to an order of priority, loading and displaying the pre-loaded tiles by zooming in according to a level difference between the pre-loaded display level and the target display level; and after acquiring the target tiles, loading and displaying the target tiles so as to replace the zoomed-in pre-loaded tiles at corresponding positions.
7 Citations
15 Claims
-
1. A device for controlling panning of an electronic map, the device comprising:
-
at least a processor; and at least a memory communicatively coupled to the at least a processor, the at least a memory bearing processor-executable instructions that upon execution by the at least a processor cause the device to perform at least the following operations; searching out a plurality of target tiles that need to be loaded and displayed when receiving an instruction of panning a map; selecting a pre-loaded display level based on a current display level, and searching out pre-loaded tiles corresponding to the target tiles in the pre-loaded display level; acquiring the pre-loaded tiles and the target tiles according to an order of priority, and loading and displaying the pre-loaded tiles by zooming in according to a level difference between the pre-loaded display level and the current display level; and after acquiring the target tiles, loading and displaying the target tiles so as to replace the zoomed-in pre-loaded tiles at corresponding positions, wherein the searching out a plurality of target tiles that need to be loaded and displayed comprises; according to geographical position coordinates of a central point of a visual region of the map and the current display level of the map, obtaining pixel coordinates of the central point by converting; obtaining a pixel size of a single tile in the current display level based on the current display level of the map; obtaining, according to the pixel size of the visual region of the map and the pixel coordinates of the central point, pixel coordinates of two opposite apexes of the visual region of the map; and obtaining serial numbers of tiles in the visual region according to the pixel coordinates of the two opposite apexes of the visual region of the map and the pixel size of the single tile in the current display level.
-
-
2. A method for controlling panning of an electronic map, the method comprising:
-
searching out a plurality of target tiles that need to be loaded and displayed when receiving an instruction of panning a map; selecting a pre-loaded display level based on a current display level, and searching out pre-loaded tiles corresponding to the target tiles in the pre-loaded display level; acquiring the pre-loaded tiles and the target tiles according to an order of priority, and loading and displaying the pre-loaded tiles by zooming in according to a level difference between the pre-loaded display level and the current display level; and after acquiring the target tiles, loading and displaying the target tiles so as to replace the zoomed-in pre-loaded tiles at corresponding positions, wherein searching out a plurality of target tiles that need to be loaded and displayed comprises; according to geographical position coordinates of a central point of a visual region of the map and the current display level of the map, obtaining pixel coordinates of the central point by converting; obtaining a pixel size of a single tile in the current display level based on the current display level of the map; obtaining, according to the pixel size of the visual region of the map and the pixel coordinates of the central point, pixel coordinates of two opposite apexes of the visual region of the map; and obtaining serial numbers of tiles in the visual region according to the pixel coordinates of the two opposite apexes of the visual region of the map and the pixel size of the single tile in the current display level. - View Dependent Claims (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer readable medium having instructions stored thereon, when executed by at least one processor, cause the at least one processor to perform operations for controlling panning of an electronic map, the operations comprising:
-
searching out a plurality of target tiles that need to be loaded and displayed when receiving an instruction of panning a map; selecting a pre-loaded display level based on a current display level, and searching out pre-loaded tiles corresponding to the target tiles in the pre-loaded display level; acquiring the pre-loaded tiles and the target tiles according to an order of priority, and loading and displaying the pre-loaded tiles by zooming in according to a level difference between the pre-loaded display level and the current display level; and after acquiring the target tiles, loading and displaying the target tiles so as to replace the zoomed-in pre-loaded tiles at corresponding positions, wherein searching out a plurality of target tiles that need to be loaded and displayed comprises; according to geographical position coordinates of a central point of a visual region of the map and the current display level of the map, obtaining pixel coordinates of the central point by converting; obtaining a pixel size of a single tile in the current display level based on the current display level of the map; obtaining, according to the pixel size of the visual region of the map and the pixel coordinates of the central point, pixel coordinates of two opposite apexes of the visual region of the map; and obtaining serial numbers of tiles in the visual region according to the pixel coordinates of the two opposite apexes of the visual region of the map and the pixel size of the single tile in the current display level.
-
Specification