Device and method for controlling electronic map
First Claim
1. A method for controlling zooming-in of an electronic map, the method comprising:
- determining a target display level to be reached via zooming in when receiving an instruction of zooming in a 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;
wherein the searching out a plurality of target tiles that need to be displayed in the target display level comprises;
according to geographical position coordinates of a zoomed-in central point of a visual region of the map and the target display level of the map, obtaining pixel coordinates of the zoomed-in central point by converting;
obtaining a pixel size of a single target tile that needs to be displayed based on the target display level of the map;
obtaining pixel coordinates of two opposite apexes of the visual region of the map according to a pixel size of the visual region of the map and the pixel coordinates of the zoomed-in central point; and
obtaining the target tiles within the visual region according to the pixel coordinates of two opposite apexes of the visual region of the map and the pixel size of the single target tile that needs to be displayed.
1 Assignment
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.
-
Citations
18 Claims
-
1. A method for controlling zooming-in of an electronic map, the method comprising:
-
determining a target display level to be reached via zooming in when receiving an instruction of zooming in a 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; wherein the searching out a plurality of target tiles that need to be displayed in the target display level comprises; according to geographical position coordinates of a zoomed-in central point of a visual region of the map and the target display level of the map, obtaining pixel coordinates of the zoomed-in central point by converting; obtaining a pixel size of a single target tile that needs to be displayed based on the target display level of the map; obtaining pixel coordinates of two opposite apexes of the visual region of the map according to a pixel size of the visual region of the map and the pixel coordinates of the zoomed-in central point; and obtaining the target tiles within the visual region according to the pixel coordinates of two opposite apexes of the visual region of the map and the pixel size of the single target tile that needs to be displayed. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for controlling zooming-out of an electronic map, the method comprising:
-
determining a target display level to be reached via zooming out when receiving an instruction of zooming out a map, and searching out a plurality of target tiles that need to be displayed in the target display level, wherein the target display level is higher than a current display level; loading and displaying currently displayed tiles by zooming out according to a level difference between the current display level and the target display level; selecting a pre-loaded display level and searching out pre-loaded tiles that need to be loaded at an edge region in the pre-loaded display level; acquiring the pre-loaded tiles and the target tiles in 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-out currently displayed tiles and the zoomed-in pre-loaded tiles at corresponding positions; wherein, the searching out a plurality of target tiles that need to be displayed in a target display level comprises; according to geographical position coordinates of a zoomed-out central point of a visual region of the map and the target display level of the map, obtaining pixel coordinates of the zoomed-out central point by converting; obtaining a pixel size of a single target tile that needs to be displayed based on the target display level of the map; obtaining pixel coordinates of two opposite apexes of the visual region of the map according to the pixel size of the visual region of the map and the pixel coordinate of the zoomed-out central point; and obtaining the target tiles within the visual region according to the pixel coordinates of two opposite apexes of the visual region of the map and the pixel size of the single target tile that needs to be displayed. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. An apparatus for controlling zooming-in of an electronic map, 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 apparatus to perform at least the following operations; determining a target display level to be reached via zooming in when receiving an instruction of zooming in a 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; wherein the searching out a plurality of target tiles that need to be displayed in the target display level comprises; according to geographical position coordinates of a zoomed-in central point of a visual region of the map and the target display level of the map, obtaining pixel coordinates of the zoomed-in central point by converting; obtaining a pixel size of a single target tile that needs to be displayed based on the target display level of the map; obtaining pixel coordinates of two opposite apexes of the visual region of the map according to a pixel size of the visual region of the map and the pixel coordinates of the zoomed-in central point; and obtaining the target tiles within the visual region according to the pixel coordinates of two opposite apexes of the visual region of the map and the pixel size of the single target tile that needs to be displayed. - View Dependent Claims (17, 18)
-
Specification