CN115451943B - Electronic map processing and navigation method, device, equipment and storage medium - Google Patents
Electronic map processing and navigation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115451943B CN115451943B CN202211415905.6A CN202211415905A CN115451943B CN 115451943 B CN115451943 B CN 115451943B CN 202211415905 A CN202211415905 A CN 202211415905A CN 115451943 B CN115451943 B CN 115451943B
- Authority
- CN
- China
- Prior art keywords
- map
- place name
- electronic map
- fragment
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/38—Electronic maps specially adapted for navigation; Updating thereof
- G01C21/3863—Structures of map data
- G01C21/387—Organisation of map data, e.g. version management or database structures
- G01C21/3881—Tile-based structures
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
Abstract
The disclosure relates to an electronic map processing and navigation method, device, equipment and storage medium. The method and the device acquire at least one fragment from the base map layer corresponding to the electronic map and acquire text information corresponding to the at least one fragment respectively. Because the data volume of the text information is smaller, the network transmission bandwidth is reduced, the total time length of the terminal for requesting the fragments from the server and the text information is reduced, so that the terminal can quickly render a text layer according to the text information, and then the text layer and a base layer are overlapped to generate an electronic map, the loading efficiency of the electronic map in a visible area of the map is improved, and blank holes caused by low loading speed of the electronic map are effectively avoided. In addition, the display level, text layer, and base layer are kept highly synchronized. Therefore, in the zooming process of the electronic map, the situation that the place name information of some areas, the actual area position are displayed in a fuzzy manner and blank holes appear can be effectively avoided.
Description
Technical Field
The disclosure relates to the field of information technology, and in particular relates to an electronic map processing and navigation method, device, equipment and storage medium.
Background
At present, the electronic map provides great convenience for people, for example, travel convenience.
In general, the electronic map displays location name information of each region such as country, province, city, urban area, county, and the actual location of each region on the electronic map. And in the zooming process of the electronic map, the user can see regions with different levels, for example, after the electronic map is zoomed out, the user can see regions with the level of each country, and after the electronic map is gradually zoomed in, the user can see urban areas, counties, villages, streets, buildings and the like.
However, with respect to the current electronic map, in the zooming process of the electronic map, it often occurs that the place name information of some areas and the actual area position are displayed in a blurred manner. Even, blank holes may appear in the electronic map at the time of zooming. Resulting in a lower user experience.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an electronic map processing method, a navigation method, an apparatus, a device, and a storage medium, which can effectively avoid the occurrence of fuzzy display of location name information and actual location of areas and blank holes in the zooming process of an electronic map. Thereby improving the user experience.
In a first aspect, an embodiment of the present disclosure provides an electronic map processing method, including:
according to the map visual area and the position of a preset point in the map visual area in the electronic map, at least one fragment is obtained from a base map layer corresponding to the electronic map, and text information corresponding to the at least one fragment is obtained;
generating a place name picture corresponding to each piece in the at least one piece according to text information corresponding to the piece, wherein the place name presented in the place name picture is related to the text information;
and generating an electronic map in the map visible area according to the at least one fragment and the place name pictures corresponding to the at least one fragment respectively.
In a second aspect, an embodiment of the present disclosure provides a navigation method, including:
acquiring a navigation starting point position and a navigation end point position;
according to the position of the map visible area, to which the navigation start position and the navigation end position belong together, and the position of a preset point in the map visible area in the electronic map, at least one fragment is obtained from a base map layer corresponding to the electronic map, and text information corresponding to the at least one fragment is obtained;
Generating a place name picture corresponding to each piece in the at least one piece according to text information corresponding to the piece, wherein the place name presented in the place name picture is related to the text information;
generating an electronic map in the map visible area according to the at least one fragment and the place name pictures corresponding to the at least one fragment respectively;
and planning a navigation path from the navigation starting point position to the navigation ending point position according to the electronic map in the map visible area.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method according to the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program for execution by a processor to implement the method of the first aspect.
According to the electronic map processing and navigation method, device, equipment and storage medium, at least one fragment is obtained from the base map layer corresponding to the electronic map and text information corresponding to the at least one fragment is obtained through the map visual area and the position of the preset point in the map visual area in the electronic map. Because the data volume of the text information is smaller, the network transmission bandwidth is reduced, the total time length of the terminal for requesting the fragments from the server and the text information is reduced, so that the terminal can quickly render a text layer according to the text information, and then the text layer and a base layer are overlapped to generate an electronic map, the loading efficiency of the electronic map in a visible area of the map is improved, and blank holes caused by low loading speed of the electronic map are effectively avoided. In addition, as the text layer is rendered by the terminal, namely, after the terminal acquires a group of fragments, the text layer corresponding to the group of fragments can be generated, so that the text layer is always in a result state and is not in an intermediate state. In the zooming process of the electronic map, the terminal may acquire the fragments in the base map layers of different display levels from the server, but as long as the terminal acquires a group of fragments from the base map layer of a certain display level, a text map layer corresponding to the group of fragments under the display level is generated, that is, as long as the display level is changed, the text map layer and the base map layer are changed, so that the display level, the text map layer and the base map layer are kept highly synchronous. Therefore, in the zooming process of the electronic map, the situation that the place name information of some areas, the actual area position are displayed in a fuzzy manner and blank holes appear can be effectively avoided. Thereby improving the user experience.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of an electronic map provided in an embodiment of the disclosure;
fig. 2 is a flowchart of an electronic map processing method provided in an embodiment of the disclosure;
fig. 3 is a schematic diagram of an application scenario provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a browser visible area provided in an embodiment of the present disclosure;
FIG. 5 is a schematic illustration of a tile provided by another embodiment of the present disclosure;
fig. 6 is a schematic diagram of generating an electronic map according to another embodiment of the disclosure;
fig. 7 is a schematic diagram of a correspondence relationship between a display level and other data of a map according to another embodiment of the disclosure;
FIG. 8 is a schematic view of a tile pyramid provided by another embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a ZXY rule tile region provided by an embodiment of the present disclosure;
FIG. 10 is a flowchart of a method for processing an electronic map according to another embodiment of the present disclosure;
FIG. 11 is a schematic diagram of a browser view area and a data rendering area provided by an embodiment of the present disclosure;
fig. 12 is a schematic diagram of a policy for eliminating place name pictures according to another embodiment of the disclosure;
FIG. 13 is a flowchart of a method for processing an electronic map according to another embodiment of the present disclosure;
FIG. 14 is an interaction diagram of a place name selected provided by an embodiment of the present disclosure;
FIG. 15 is a flowchart of a method for processing an electronic map according to another embodiment of the present disclosure;
fig. 16 is a schematic structural diagram of an electronic map processing device according to an embodiment of the present disclosure;
FIG. 17 is a flow chart of a navigation method provided by an embodiment of the present disclosure;
FIG. 18 is a schematic diagram of a navigation path provided by an embodiment of the present disclosure;
fig. 19 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
It should be noted that, the electronic map and the base map layer related to the present application are authorized or fully authorized information and data by each party, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions, and provide corresponding operation entrance for the user to select authorization or rejection. In addition, the base map layer, also called base map data, uses an unencrypted coordinate system, such as the common European Petroleum survey organization (European Petroleum Survey Group, EPSG): 3857 unencrypted coordinate system, so that there is no legal risk of rotating the coordinate system.
Several terms which relate to embodiments of the present application are explained below.
Tile map: typically, since the base map layer is large, it is necessary to divide the base map layer into one or more tile maps, each tile map being of a fixed size, for example 256x256 pixels.
Tile pyramid: the electronic map is scalable, with the zoom level of the electronic map also referred to as a zoom level, display level, or display level. After a base map layer corresponding to one display level is divided into tile maps, the tile maps corresponding to each display level are stored according to the sequence of each display level to form a tile pyramid.
Geographic information systems (Geographic Information System or Geo-Information system, GIS) are sometimes referred to as "geoscience information systems". It is a particular very important spatial information system. The system is a technical system for collecting, storing, managing, operating, analyzing, displaying and describing the related geographic distribution data in the whole or partial earth surface (including atmosphere) space under the support of a computer hard and software system.
GCJ-02 coordinate system: is a coordinate system of a geographic information system formulated by the national survey of China (G represents Guojia country, C represents Cehui survey, and J represents Ju office).
In this embodiment, the electronic map is a result after being superimposed by a plurality of layers, for example, the electronic map is a result after being superimposed by a text layer and a base layer. The text layer may include a place name, a location point of the place name, and the like, as shown in 11 of fig. 1. The base map layer may include the actual area locations of the various regions on the electronic map, as shown at 12 in fig. 1. The text layer 11 and the base layer 12 are superimposed to obtain the electronic map 13, and it will be understood that fig. 1 is only a schematic illustration, and is not limited to the number of regions that can be displayed in the electronic map, specific names, and actual region positions of the regions on the electronic map. The size of the text image layer, the size of the base image layer and the size of the electronic map are consistent.
In general, the electronic map displays location name information of each region such as country, province, city, urban area, county, and the actual location of each region on the electronic map. And in the zooming process of the electronic map, the user can see regions with different levels, for example, after the electronic map is zoomed out, the user can see regions with the level of each country, and after the electronic map is gradually zoomed in, the user can see urban areas, counties, villages, streets, buildings and the like. However, with respect to the current electronic map, in the zooming process of the electronic map, it often occurs that the place name information of some areas and the actual area position are displayed in a blurred manner. Even, blank holes may appear in the electronic map at the time of zooming. Resulting in a lower user experience.
In view of this problem, the embodiments of the present disclosure provide an electronic map processing method, which is described below with reference to specific embodiments.
Fig. 2 is a flowchart of an electronic map processing method according to an embodiment of the disclosure. The method can be executed by an electronic map processing device, the device can be realized in a software and/or hardware mode, and the device can be configured in electronic equipment, such as a terminal, wherein the terminal specifically comprises a mobile phone, a computer or a tablet computer. In addition, the electronic map processing method described in this embodiment may be applied to an application scenario as shown in fig. 3. As shown in fig. 3, the application scenario includes a terminal 31 and a server 32, where the server 32 is configured to store a base map layer, or the server 32 may divide the base map layer into a plurality of slices, each of which is denoted as a tile map, and store the plurality of slices. The terminal 31 may request to obtain one or more tile graphs and text information corresponding to each of the one or more tile graphs from the server 32, thereby generating a local electronic map displayable on a display component of the terminal 31. The following describes the method in detail with reference to fig. 3, and as shown in fig. 2, the method specifically includes the following steps:
S201, according to a map visual area and the position of a preset point in the map visual area in an electronic map, acquiring at least one fragment from a base map layer corresponding to the electronic map, and acquiring text information corresponding to the at least one fragment respectively.
As shown in fig. 4, a browser may be installed in the terminal 31, the user may see the browser visible area 41 on the screen of the terminal 31, and the size of the browser visible area 41 and the display position of the browser visible area 41 in the screen may be adjusted by the user. The viewable area of a browser generally refers to the area that is viewable on the browser. Assuming that the browser is used to display an electronic map, the browser view area 41 may be a map view area.
In this embodiment, a pixel coordinate system may be established with a preset point in the viewable area of the browser, such as the upper left corner 42, as the origin of coordinates. Each positioning point in the electronic map corresponds to longitude and latitude, and the longitude and latitude and the pixel coordinates can be mutually converted, so that the longitude and latitude corresponding to the upper left corner 42 in the electronic map can be obtained according to the pixel coordinates of the upper left corner 42. Further, according to the visual area of the browser and the position of the upper left corner 42 in the visual area of the browser in the electronic map, at least one fragment is obtained from the bottom map layer corresponding to the electronic map, and text information corresponding to the at least one fragment is obtained.
For example, as shown in fig. 5, the server 32 divides the base layer into 4 slices, namely, slice 51, slice 52, slice 53, slice 54. The terminal 31 may send the server 32 the corresponding latitude and longitude of the upper left corner 42 in the electronic map, as well as the size of the browser viewable area 41. The server 32 may determine a point, such as point 55, for the upper left corner 42 in the base map layer based on the latitude and longitude of the upper left corner 42 in the electronic map. Further, with the point 55 as the upper left corner, a box 56 is circled according to the size of the browser view area 41. Since the block 56 occupies a partial area of the slices 51, 52, 53, 54, respectively, the server 32 may send the slices 51, 52, 53, 54 to the terminal 31 in order to ensure the integrity of the data. In addition, in this embodiment, each of the fragments may correspond to one json file, that is, the json file of each of the fragments may also be stored in the server 32. The server 32 also needs to send json files corresponding to the slices 51, 52, 53, and 54 to the terminal 31.
In this embodiment, the json file is also called json data. The information in the json file is text information, and since a tile may include one or more geographical areas, the json file corresponding to the tile may include text information for each of the one or more geographical areas. The text information for each geographic region includes at least one of: the geographical area location name, the identification of the location name, the level of the location name, the location information of the location name in the electronic map and the display size of the location name.
For example, the tile 51 includes the geographic area 57 of the city a, and the content of the json file corresponding to the tile 51 is specifically as follows:
[
[
"o: -270056"// place name data id
"A market",// place name
"City",// Place name level (country, city, county …)
105,// longitude
35,// latitude
26 width of the/(rendering text)
15// high of render text
]
The longitude and the latitude are positioning information of the place name in the electronic map. The width of the rendering text and the height of the rendering text refer to the display size of "a city". It will be appreciated that "o: -270056", "market a", "city", 105, 35, 26, 15 constitute a set of structured data about "market a". If a given tile includes multiple geographic regions, then the corresponding json file for that tile will include multiple structured data, one for each geographic region.
S202, generating a place name picture corresponding to each piece according to text information corresponding to the piece aiming at each piece in the at least one piece, wherein the place name presented in the place name picture is related to the text information.
For example, the terminal 31 acquires the shard 51, the shard 52, the shard 53, the shard 54, and the json file of each shard from the server 32. Further, the terminal 31 may generate a place name picture corresponding to each fragment according to the json file of the fragment. It can be understood that, in this embodiment, the electronic map may be understood as a result of overlapping the text layer and the base layer, where the text layer, the base layer and the electronic map are identical in size. Because the base map layer can be divided into a plurality of tile maps, and the size of each tile map is fixed, the tile map can be marked as a slice, and therefore, when the place name picture corresponding to a slice is generated according to the json file of the slice, the size of the place name picture corresponding to the slice is consistent with the size of the slice. Therefore, the text layer can be regarded as a result of splicing a plurality of place name pictures, that is, the constituent units of the text layer are place name pictures, and the constituent units of the base layer are tile pictures, that is, fragments. The size of the fragments is consistent with the size of the place name pictures.
For example, as shown in fig. 6, taking a json file corresponding to the tile 51 as an example, the terminal 31 may generate a place name picture 61 with the same size as the tile 51, where the content presented in the place name picture 61 is related to the text information in the json file corresponding to the tile 51. For example, the "a city" is included in the place name picture 61, and the display position of the "a city" in the place name picture 61 is determined based on the positioning information of the "a city" in the electronic map. The display size of "a city" in the place name picture 61 is determined according to the width of the rendering text and the height of the rendering text. Similarly, a place name picture 62 corresponding to the tile 52, a place name picture 63 corresponding to the tile 53, and a place name picture 64 corresponding to the tile 54 can be generated.
S203, generating an electronic map in the map visible area according to the at least one fragment and the place name pictures respectively corresponding to the at least one fragment.
For example, the terminal 31 may splice the place name picture 61, the place name picture 62, the place name picture 63, and the place name picture 64 to form a text layer. The segments 51, 52, 53, 54 are spliced to form the base layer. The text layer and the base layer are superimposed to obtain the electronic map 65. Further, the electronic map displayed in the browser view area 41 is determined from the electronic map 65 in accordance with the position of the upper left corner 42 in the browser view area in the electronic map and the size of the browser view area 41.
It will be appreciated that in other embodiments, the place name picture 61 and the slice 51 may be superimposed to obtain a superimposed image a, the place name picture 62 and the slice 52 may be superimposed to obtain a superimposed image B, the place name picture 63 and the slice 53 may be superimposed to obtain a superimposed image C, and the place name picture 64 and the slice 54 may be superimposed to obtain a superimposed image D. Further, the image a, the image B, the image C, and the image D are stitched to obtain the electronic map 65.
According to the embodiment of the disclosure, at least one fragment is obtained from a base map layer corresponding to the electronic map and text information corresponding to the at least one fragment is obtained through the map visual area and the position of the preset point in the map visual area in the electronic map. Because the data volume of the text information is smaller, the network transmission bandwidth is reduced, the total time length of the terminal for requesting the fragments from the server and the text information is reduced, so that the terminal can quickly render a text layer according to the text information, and then the text layer and a base layer are overlapped to generate an electronic map, the loading efficiency of the electronic map in a visible area of the map is improved, and blank holes caused by low loading speed of the electronic map are effectively avoided. In addition, as the text layer is rendered by the terminal, namely, after the terminal acquires a group of fragments, the text layer corresponding to the group of fragments can be generated, so that the text layer is always in a result state and is not in an intermediate state. In the zooming process of the electronic map, the terminal may acquire the fragments in the base map layers of different display levels from the server, but as long as the terminal acquires a group of fragments from the base map layer of a certain display level, a text map layer corresponding to the group of fragments under the display level is generated, that is, as long as the display level is changed, the text map layer and the base map layer are changed, so that the display level, the text map layer and the base map layer are kept highly synchronous. Therefore, in the zooming process of the electronic map, the situation that the place name information of some areas, the actual area position are displayed in a fuzzy manner and blank holes appear can be effectively avoided. Thereby improving the user experience.
It will be appreciated that the location name in this embodiment may be a point of interest (Point of Interest, POI), or the location point where the location name is located may be a POI. By the method, information such as place names and POIs with higher definition can be drawn in the electronic map.
In this embodiment, the larger the display level of the electronic map, that is, the larger the degree of enlargement, the larger the size of the base map layer (for example, the larger the widths and heights, respectively), the larger the number of fragments (also called slices) obtained after the base map layer is divided, the smaller the ground resolution of the base map layer, and the larger the map scale of the base map layer, as shown in fig. 7. It will be appreciated that fig. 7 only shows a portion of the data at display levels 0, 1, 2, but the corresponding data is changing as the display level increases. Wherein the size of each tile is fixed, for example 256x256 pixels. That is, one display level of the electronic map corresponds to one or more tiles, all the tiles corresponding to one display level form a base map layer corresponding to the display level, the tiles corresponding to the display levels respectively form a tile pyramid, and each tile in the tile pyramid can be recorded as a tile map. The tile pyramid comprises a plurality of layers of tile graphs, each layer corresponds to one display level of the electronic map, and the number of the tile graphs included in the next layer is 4 times that of the tile graphs included in the previous layer. Taking a 3-layer tile pyramid as an example, as shown in fig. 8, the 0 th layer of the tile pyramid includes a tile map, where the 0 th layer corresponds to the display level 0 of the electronic map, that is, the tile map of the 0 th layer is the bottom map layer corresponding to the display level 0 of the electronic map. On the basis of the base map layer of the 0 th layer, the base map layer of the 1 st layer is generated by dividing each pixel into 2×2 pixels, so that the base map layer of the 1 st layer is 4 times of the base map layer of the 0 th layer, and further, from the left upper corner of the base map layer of the 1 st layer, the tile maps with the same size as the 0 th layer are divided by cutting from left to right and from top to bottom. The same method can be used to generate 16 tile graphs for layer 3. If there are N display levels of the electronic map, then so on until a tile map of layer N-1 is generated. In addition, the geographic extent represented by each layer is constant from layer 0 to layer N-1 of the tile pyramid. Additionally, in some embodiments, a set of multiple tile graphs in a level is denoted as a tile matrix for that level.
Specifically, the server 32 may have a tile pyramid, i.e., a tile map of each level, stored therein. Alternatively, the terminal 31 may send the current display level of the electronic map to the server 32, and the server 32 divides the base map layer corresponding to the display level according to the display level, so as to obtain a plurality of tile maps corresponding to the display level. For example, when the browser in the terminal 31 loads the electronic map for the first time, the display level of the electronic map is default to 0, and after the browser view area 41 displays the electronic map of the 0 level, the user may resize, for example, zoom in, the electronic map. At this time, the terminal 31 transmits the enlarged display level to the server 32, so that the server 32 returns the tiles in the base layer at the display level to the terminal 31.
In this embodiment, the terminal 31 may draw tile areas under different display levels according to different display levels of the electronic map, where the tile areas and the tile map may be in one-to-one correspondence, and the data source corresponding to one tile area includes the tile map corresponding to the tile area and the json file corresponding to the tile map. For example, when the terminal 31 loads the electronic map for the first time, assuming that the display level of the electronic map is 0, the terminal 31 may draw one tile area according to the table contents shown in fig. 7. When the display level of the electronic map becomes 1, the terminal 31 may redraw the tile areas, for example, according to the table contents shown in fig. 7, the terminal 31 may draw 4 tile areas. Specifically, this embodiment may assign a number to each tile area using a ZXY-based specification. Where Z represents what number of layers or display levels, if there are a plurality of tile areas in the Z-th layer, as shown in fig. 9, each tile area is assigned with one coordinate in the X-axis direction and one coordinate in the Y-axis direction in the order from left to right and from top to bottom. Such that each tile area under each level drawn by terminal 31 corresponds to a unique number, ZXY. The origin of coordinates in the coordinate system shown in fig. 9 may be a place having a longitude of 0 and a latitude of 0. Meanwhile, the server 32 may also use the same ZXY specification to assign numbers to the tile graphs of the respective levels stored in the server 32, so that the numbers of the tile areas and the tile graphs in which the correspondence exists are the same. In addition, the tile area and the tile map may be uniform in size, except that the tile area is equivalent to a blank area, and the tile map is the data to be added in the tile area, and the place name generated according to the json file needs to be added in the tile area. In addition, the terminal 31 may determine the latitude and longitude range occupied by each tile area in the electronic map according to the origin of coordinates shown in fig. 9 and the specific values shown in fig. 7. For example, terminal 31 may determine the longitude and latitude of 4 vertices at 4 corners of each tile area under each level.
In other embodiments, when the terminal 31 acquires a plurality of tile graphs, the location name pictures corresponding to the plurality of tile graphs may also be generated in the order from left to right and from top to bottom as shown in fig. 9.
Fig. 10 is a flowchart of an electronic map processing method according to another embodiment of the present disclosure. According to the map visual area and the position of the preset point in the map visual area in the electronic map, at least one fragment is obtained from the base map layer corresponding to the electronic map, and text information corresponding to the at least one fragment is obtained, wherein the method comprises the following steps:
s1001, determining identification information of at least one fragment in the display level required in the map visual area according to the current display level of the electronic map, the size of the map visual area and the position of the upper left corner of the map visual area in the electronic map.
For example, after the browser in the terminal 31 loads the electronic map for the first time, the user may adjust the display level of the electronic map. First, the terminal 31 needs to determine the adjusted display level, i.e., the current display level of the electronic map. Second, terminal 31 needs to map out the tile area at that display level, or terminal 31 needs to query for the pre-mapped tile area at that display level. Further, according to the size of the browser view area 41 and the longitude and latitude of the upper left corner 42 of the browser view area 41 in the electronic map, it is determined from the tile areas at the display level, which tile areas are covered by the browser view area 41, so as to determine which tile images need to be acquired from the server 32. The covering herein includes full covering and partial covering.
For example, as shown in fig. 11, assuming that the current display level of the electronic map is 3, the terminal 31 draws a plurality of tile areas with display level 3, and the tile area 110 is a schematic diagram of a certain tile area. In addition, the numbers of the respective tile areas with display level 3 are as shown in FIG. 11, for example, the numbers of tile area 110 are Z:3, X:0, Y:0, indicating that tile area 110 is a tile area with X-coordinate 0 and Y-coordinate 0 at level 3. Further, the terminal 31 can determine the longitude and latitude of the boundary of the browser visual area 41 in the electronic map according to the longitude and latitude of the upper left corner 42 of the browser visual area 41 in the electronic map and the size of the browser visual area 41. Further, according to the longitude and latitude of the upper left corner 42 in the electronic map and the longitude and latitude of the boundary of the browser visual area 41 in the electronic map, the tile area that the browser visual area 41 can cover is determined, for example, the browser visual area 41 covers several tile areas in the frame 111. Although the browser view area 41 is partially covered for several tile areas in the frame 111, respectively, since the base map layer is stored in the unit of tile map, the terminal 31 needs to completely acquire the tile map corresponding to each tile area in the frame 111, respectively. Since the tile areas and the tile graphs are in one-to-one correspondence, and the numbering rules of the tile areas and the tile graphs are consistent, the identification information of the tile graph with the display level of 3 required in the browser visible area 41 is the number of each tile area in the frame 111. In some embodiments, the region shown in block 111 may be denoted as a data rendering region, i.e., for each tile region in block 111, a tile map and json file corresponding to that tile region need to be obtained, and a corresponding place name picture needs to be rendered according to the json file.
It will be appreciated that the tile area covered by the browser view area 41 can be determined by unifying the coordinates of the upper left corner 42, the coordinates of the boundaries of the browser view area 41, and the coordinates of the vertices of the respective tile areas to the same coordinate system. The coordinate system may be a latitude and longitude identified coordinate system as described above, or may be a pixel coordinate system with the upper left corner 42 as the origin of coordinates, or may be other types of coordinate systems.
S1002, acquiring the at least one fragment from the base map layer corresponding to the display level according to the identification information of the at least one fragment, and acquiring text information corresponding to the at least one fragment respectively.
For example, as shown in fig. 11, a total of 4*2 =8 tile areas are included in block 111, indicating that terminal 31 needs to request 8 tile graphs and 8 json files from server 32. Specifically, the request information sent by the terminal 31 to the server 32 may include the number of the tile area. So that server 32 can query the tile map and json file corresponding to the number according to the number of the tile region.
In one possible implementation, terminal 31 may send 8 request messages to server 32, each request message including a tile area number. And the request information is used for requesting to acquire the tile map and the json file corresponding to one tile area.
In another possible implementation, the terminal 31 may send 8 tile map request information, and 8 file request information to the server 32.
Optionally, obtaining text information corresponding to the at least one fragment respectively includes: sending at least one acquisition request to a server, wherein the at least one acquisition request is used for requesting text information corresponding to the at least one fragment respectively; and receiving text information corresponding to the at least one fragment fed back by the server.
For example, terminal 31 may send 8 file request messages to server 32, each file request message including a tile area number. So that the server 32 can feed back 8 json files to the terminal 31.
Optionally, the method further comprises: the at least one fetch request is cached.
For example, after the terminal 31 sends 8 file request messages to the server 32, the 8 file request messages may be cached, for example, in a memory. When the terminal 31 needs to acquire a json file from the server 32 later, directly checking whether file request information corresponding to the json file exists in the cache, and if so, directly sending the file request information, thereby reducing the number of hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) requests and further improving the loading efficiency of the electronic map.
Optionally, after generating the place name picture corresponding to the fragment according to the text information corresponding to the fragment, the method further includes: and caching the place name picture.
For example, after the terminal 31 obtains the tile map and json file corresponding to each tile area in the frame 111 from the server 32, by adopting the method described above, the text layer and the base layer corresponding to the frame 111 may be generated, so as to generate the electronic map in the frame 111, and thus, the electronic map in the browser visual area 41 may be loaded in the browser. In still other embodiments, after the terminal 31 generates a place name picture according to a json file, the place name picture may be cached, for example, in a memory. So that when the terminal 31 needs a place name picture corresponding to a tile map later, the terminal directly extracts the place name picture from the memory without repeatedly executing the processes of acquiring the json file from the server 32 and generating the place name picture according to the json file, thereby reducing repeated calculation and further improving the loading efficiency of the electronic map.
It will be appreciated that if the terminal 31 simultaneously starts the buffering for the file request information and the buffering for the already generated place name picture, i.e., simultaneously starts the two-level buffering, the rendering effect can be greatly optimized.
In addition, the embodiment may further eliminate the cached place name pictures in the memory by a least recently used (Least recently used, LRU) algorithm, so as to optimize the computing performance of the terminal 31. The plurality of place name pictures shown in fig. 12 are place name pictures already cached in the memory, each place name picture corresponds to a serial number, and the plurality of place name pictures can be ordered according to time information when each place name picture is cached. Assuming a direction from 01 to 32, the usage of place name pictures is getting higher and higher. Then if a place name picture, such as place name picture 0, is least recently used, place name picture 0 may be deleted from memory. If a certain place name picture, for example, place name picture 3, has been used recently, it is indicated that it is also highly probable to be used in the future, and therefore, place name picture 3 can be moved to the right.
Fig. 13 is a flowchart of an electronic map processing method according to another embodiment of the present disclosure. Optionally, the text information corresponding to the fragments includes at least one of the following: the geographical area name, the identification of the geographical area name, the level of the geographical area name, the positioning information of the geographical area name in the electronic map and the display size of the geographical area name are included in the partition. For example, text information in the json file described above.
Optionally, generating the place name picture corresponding to the fragment according to the text information corresponding to the fragment, including the following steps:
s1301, converting the positioning information of the place name in the electronic map into a first pixel coordinate of the place name in the map visible area.
Assume that terminal 31 obtains the tile map and json file corresponding to each tile region in block 111 from server 32. At this time, the terminal 31 may draw the place name pictures on the tile map one by one in the order from left to right and from top to bottom as shown in fig. 9, and since the place name pictures are rendered from json files using canvas (canvas), the place name pictures may also be recorded as canvas images. Or the text layer as described above is denoted as canvas image. Because each json file contains the latitude and longitude of the place name, the latitude and longitude of the place name can be converted into the pixel coordinates in the pixel coordinate system with the upper left corner 42 of the browser visible area 41 as the origin of coordinates, assuming that the pixel is marked as the first pixel coordinate.
S1302, determining a second pixel coordinate of the upper left corner of the slice in the map visible area.
For example, the longitude and latitude of the upper left corner of the tile map corresponding to the json file may be converted into the pixel coordinate system described above, to obtain the second pixel coordinate.
And S1303, determining the target position of the place name in the place name picture according to the offset of the first pixel coordinate relative to the second pixel coordinate.
For example, calculating the offset of the first pixel coordinate relative to the second pixel coordinate may determine the target location of the place name in the place name picture in the json file.
And S1304, generating the place name picture corresponding to the partition, wherein the place name is displayed on the target position of the place name picture.
For example, a place name picture is rendered according to the json file, and the place name is displayed on the target position of the place name picture.
It can be understood that, since the json file contains the display size of the place name, that is, the size of the smallest circumscribed rectangle of the place name when the place name is displayed in the place name picture. As shown in fig. 14, box 141 represents the minimum bounding rectangle of "B market". Specifically, the longitude and latitude of "B city" in the electronic map as described above may be the longitude and latitude of the center of the box 141 in the electronic map. The longitude and latitude of "B" on the electronic map may be appropriately offset with reference to the center of the frame 141, and the longitude and latitude of "city" on the electronic map may be appropriately offset with reference to the center of the frame 141.
Optionally, the method further comprises: and determining whether the place names are displayed in a line-feed manner in the place name picture according to the display size of the place names and the size of each word in the place names.
As shown in fig. 14, the display size of "B market" may be the width and height of the frame 141. In some embodiments, the json file may also include the size of each word in the place name, e.g., the size of "B" and the size of "City". If the size of "B" and the size of "city" add up to be less than or equal to the display size of "B city", then it is stated that "B city" does not need to be line-feed displayed in the place name picture. If the size of "B" and the size of "city" add up to be larger than the display size of "B city", it is stated that "B city" needs to be displayed in a line feed in the place name picture.
Optionally, after generating the electronic map in the map visual area according to the at least one fragment and the place name pictures corresponding to the at least one fragment respectively, the method further includes: and responding to an operation instruction aiming at any place name in the map visual area, and carrying out enhancement processing on the display attribute of any place name.
As shown in fig. 14, a corresponding electronic map is displayed in the browser visual area 41, and a place name is displayed in the electronic map. The user can operate the place name displayed in the browser visible area 41, such as a finger touch or a mouse click. At this time, the terminal 31 may perform enhancement processing on the display attribute of the place name in response to an operation instruction for the place name by the user. For example, the display color of the place name is adjusted, or the place name is highlighted.
It will be appreciated that custom features for place names may also be added to the json file, e.g., whether the place name may be clicked on, place name color, etc. In addition, in order to avoid the main thread blocking, the embodiment can monitor the operation on the place name and respond to the operation through an auxiliary thread (worker thread), so that a smooth interaction effect can be realized.
Optionally, in response to an operation instruction for any place name in the map visible area, performing enhancement processing on a display attribute of any place name, including: and responding to an operation instruction aiming at any place name in the map visual area, and modifying the style, the name and the position of any place name in the electronic map.
For example, when the user touches by a finger or clicks by a mouse on a certain place name displayed in the browser visual area 41, the terminal 31 may modify the style of the place name on the electronic map in response to an operation instruction for the place name by the user, for example, the place name is displayed in a darkened, bolded manner after modification. Alternatively, before modification, the place name is displayed in a horizontal row, and after modification, the place name is displayed in a vertical row so as to highlight the place name specified by the user from among a plurality of place names. Alternatively, in other embodiments, the location name of a geographic area is changed, at which time the terminal 31 may modify the location name to an updated name in response to a user modifying instruction for the location name. Still alternatively, the terminal 31 may move the location name of the certain geographical area from the a position within the geographical area to the B position within the geographical area in response to a user operation instruction for the location name, such as a movement instruction, thereby making the location name position flexibly movable.
In addition, it can be understood that, in some embodiments, the electronic map processing method described in this embodiment may also be performed by a machine learning model, in this case, the modification result as described above may be fed back to the machine learning model, so as to optimize the machine learning model, and ensure that the place name of a certain geographic area generated by the machine learning model more meets the actual application requirement.
Fig. 15 is a flowchart of an electronic map processing method according to another embodiment of the present disclosure. For example, the method includes 3 phases, the first phase being an initialization rendering phase, the second phase being a data preparation phase, and the third phase being a rendering phase. The method may be performed by the terminal 31 or a browser in the terminal 31 as described above.
Specifically, the first stage includes a 1 st step and a 2 nd step, the 1 st step: when the browser in the terminal 31 loads the electronic map for the first time, the display level of the electronic map is defaulted to be 0, and at this time, the terminal 31 may draw a tile area conforming to the ZXY specification tile at the display level. When the user adjusts the size of the electronic map, the terminal 31 may draw tile areas under different display levels according to different display levels of the electronic map. Step 2: the terminal 31 may determine the map visual area, that is, the browser visual area 41, determine, according to the size of the browser visual area 41 and the longitude and latitude of the upper left corner 42 of the browser visual area 41 in the electronic map, which tile areas are covered by the browser visual area 41 from the tile areas at the current display level, and splice the larger areas covered by the browser visual area 41 with the tile areas as the data rendering area.
The second stage includes step 3, step 3: for each tile region in the data rendering region, the terminal 31 may acquire a tile map and json file corresponding to the tile region, for example, the terminal 31 may send a request to the server 32 as needed to acquire a tile map and json file corresponding to each tile region in the data rendering region, and at the same time, the terminal 31 may buffer the requested data.
The third stage includes steps 4 and 5, step 4: the terminal 31 can render corresponding place name pictures according to the json file, namely canvas rendering is carried out according to the json file, and meanwhile, the terminal 31 can eliminate the place name pictures cached in the memory through an LRU algorithm. Further, the place name pictures corresponding to each tile area in the data rendering area are spliced into a text image layer, the tile images corresponding to each tile area in the data rendering area are spliced into a base image layer, then the text image layer and the base image layer are overlapped into an electronic map, the size of the electronic map is consistent with that of the data rendering area, and the size of the browser visual area 41 is smaller than that of the data rendering area, so that according to the size of the browser visual area 41, a part of the electronic map displayed in the browser visual area 41 can be cut out from the electronic map, for example, in the cutting process, the center point of the electronic map and the center point of the browser visual area 41 can be kept to be overlapped or consistent. Step 5: when a corresponding electronic map is displayed in the browser view area 41 and a place name is displayed in the electronic map, the user can operate the place name displayed in the browser view area 41, such as a finger touch, a mouse click, a mouse movement. At this time, the terminal 31 may perform enhancement processing on the display attribute of the place name in response to an operation instruction for the place name by the user. For example, the display color of the place name is adjusted, or the place name is highlighted. In order to avoid the main thread blocking, the embodiment can monitor the operation on the place name through the auxiliary thread (worker thread) and respond to the operation, namely, the logic of the place name selected is processed in the worker thread, so that a smooth interaction effect can be realized.
In the prior art, a server generates a place name slicing chart (i.e., picture data) corresponding to each tile graph, and the data size of the place name slicing chart is larger (for example, the data size of one place name slicing chart is more than 3 KB), but in the embodiment of the application, the place name slicing chart is replaced by a json file (the data size of one json file is about 500B), and the data size of the json file is greatly reduced (for example, the data size of one json file is equivalent to one sixth of the data size of one place name slicing chart), so that the cost of an object storage service (Object Storage Service, OSS) on the server side can be remarkably reduced, for example, the storage cost is reduced by 90%. In addition, the method of the embodiment can reduce the maintenance cost of the data, for example, in the prior art, updating the place name needs to generate new tile data first and then store the place name synthesized tile map. By the method provided by the embodiment of the application, the place name in the json file can be directly modified.
Fig. 16 is a schematic structural diagram of an electronic map processing device according to an embodiment of the disclosure. The electronic map processing device provided in the embodiment of the present disclosure may execute the processing flow provided in the embodiment of the electronic map processing method, as shown in fig. 16, the electronic map processing device 160 includes:
An obtaining module 161, configured to obtain at least one fragment from a base map layer corresponding to an electronic map according to a map visual area and a position of a preset point in the map visual area in the electronic map, and obtain text information corresponding to the at least one fragment respectively;
a first generating module 162, configured to generate, for each of the at least one segment, a place name picture corresponding to the segment according to text information corresponding to the segment, where a place name presented in the place name picture is related to the text information;
the second generating module 163 is configured to generate an electronic map in the map visible area according to the at least one tile and the place name pictures corresponding to the at least one tile respectively.
Optionally, the acquiring module 161 includes: a determining unit 1611 and an acquiring unit 1612, where the determining unit 1611 is configured to determine, according to a current display level of an electronic map, a size of a visual area of the map, and a position of an upper left corner of the visual area of the map in the electronic map, identification information of each of at least one tile in the display level required in the visual area of the map; the obtaining unit 1612 is configured to obtain, according to the respective identification information of the at least one fragment, the at least one fragment from the base map layer corresponding to the display level, and obtain text information corresponding to the at least one fragment respectively.
Optionally, when the obtaining module 161 obtains text information corresponding to the at least one fragment respectively, the obtaining module is specifically configured to:
sending at least one acquisition request to a server, wherein the at least one acquisition request is used for requesting text information corresponding to the at least one fragment respectively;
and receiving text information corresponding to the at least one fragment fed back by the server.
Optionally, the electronic map processing device 160 further includes: a first caching module 164, configured to cache the at least one acquisition request.
Optionally, the electronic map processing device 160 further includes: the second buffer module 165 is configured to buffer the place name picture after the first generating module 162 generates the place name picture corresponding to the segment according to the text information corresponding to the segment.
Optionally, the text information corresponding to the fragments includes at least one of the following:
the geographical area name, the identification of the geographical area name, the level of the geographical area name, the positioning information of the geographical area name in the electronic map and the display size of the geographical area name are included in the partition.
Optionally, when the first generating module 162 generates the place name picture corresponding to the segment according to the text information corresponding to the segment, the method is specifically used for:
Converting the positioning information of the place name in the electronic map into a first pixel coordinate of the place name in the map visible area;
determining a second pixel coordinate of an upper left corner of the tile in the map viewable area;
determining a target position of the place name in the place name picture according to the offset of the first pixel coordinate relative to the second pixel coordinate;
generating the place name picture corresponding to the partition, wherein the place name is displayed on the target position of the place name picture.
Optionally, the electronic map processing device 160 further includes: a determining module 166, configured to determine whether the place name is displayed in the place name picture in a line mode according to the display size of the place name and the size of each word in the place name.
Optionally, the electronic map processing device 160 further includes: and the enhancement processing module 167 is configured to perform enhancement processing on the display attribute of any place name in response to an operation instruction for any place name in the map visual area after the second generation module 163 generates the electronic map in the map visual area according to the at least one slice and the place name pictures respectively corresponding to the at least one slice.
The electronic map processing device of the embodiment shown in fig. 16 may be used to implement the technical solution of the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
In addition, the present embodiment also provides a navigation method, as shown in fig. 17, which includes the following steps:
s1701, acquiring a navigation start position and a navigation end position.
As shown in fig. 18, in the browser view area 1800, the user can set a navigation start position and a navigation end position. One way of setting is that the user inputs a navigation start point name such as "field No. 1" and a navigation end point name such as "field No. 7" in a user interface provided by the terminal. Further, the terminal determines a navigation start point position (e.g., longitude and latitude of a navigation start point) according to the navigation start point name, and determines a navigation end point position (e.g., longitude and latitude of a navigation end point) according to the navigation end point name.
S1702, acquiring at least one fragment from a base map layer corresponding to an electronic map and text information corresponding to the at least one fragment respectively according to a map visual area to which the navigation start position and the navigation end position belong together and the position of a preset point in the map visual area in the electronic map.
As shown in fig. 18, the navigation start position and the navigation end position are both in the browser visual area 1800, and further, the terminal may obtain, from the server, one or more fragments (for example, the tile map described above) corresponding to the browser visual area 1800 according to the browser visual area 1800 and the position of the upper left corner in the browser visual area 1800 in the electronic map, and at the same time, the terminal may also obtain, from the server, text information corresponding to the one or more fragments, for example, the json file described above.
S1703, generating a place name picture corresponding to each piece according to the text information corresponding to the piece, wherein the place name presented in the place name picture is related to the text information.
For example, after acquiring one or more slices corresponding to the visual area 1800 of the browser and json files corresponding to the one or more slices respectively, the terminal generates a place name picture corresponding to each slice according to the json file corresponding to each slice, where the place name picture can display the place name of each geographic area in the slice.
S1704, generating an electronic map in the map visible area according to the at least one fragment and the place name pictures corresponding to the at least one fragment respectively.
For example, the terminal may form a base map layer according to one or more slices corresponding to the visual area 1800 of the browser, and form a text map layer with the location name pictures corresponding to the one or more slices. Further, the text layer and the base layer are superimposed, thereby obtaining an electronic map in the browser visual area 1800.
S1705, planning a navigation path from the navigation starting point position to the navigation ending point position according to the electronic map in the map visible area.
Further, the terminal may plan a navigation path from the navigation start position to the navigation end position according to the electronic map in the browser visual area 1800.
Optionally, the base map layer is a remote sensing image.
For example, the base map layer stored in the server is a remote sensing image, and specifically, the remote sensing image may be an aerial photo or a satellite photo.
Optionally, after planning a navigation path from the navigation start position to the navigation end position according to the electronic map in the map visible area, the method further includes: displaying the electronic map and the navigation path in the map visual area; and performing automatic driving control according to the navigation path.
As shown in fig. 18, the terminal may display the electronic map in the browser view area 1800 generated by the terminal and the navigation path from the navigation start position to the navigation end position in the browser view area 1800. In some embodiments, the terminal may be a vehicle, such that the vehicle may be automatically driven according to the navigation path. Alternatively, in other embodiments, the terminal may be a mobile phone, where the mobile phone may broadcast navigation information in real time, for example, the current location of the user, the direction, the route, etc. of the user that the user is driving next, so as to guide the user to drive according to the navigation path.
According to the embodiment, the navigation path from the navigation start position to the navigation end position in the map visual area is planned through the electronic map displayed in the map visual area, so that automatic driving is realized, or a user is guided to drive according to the navigation path, travel of the user is facilitated, and user experience is improved.
The internal functions and structures of the electronic map processing apparatus are described above, and the apparatus may be implemented as an electronic device. Fig. 19 is a schematic structural diagram of an embodiment of an electronic device according to an embodiment of the disclosure. As shown in fig. 19, the electronic device includes a memory 191 and a processor 192.
The memory 191 is used to store programs. In addition to the programs described above, the memory 191 may also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 191 may be implemented by any type of volatile or non-volatile memory device or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Processor 192 is coupled to memory 191 and executes programs stored in memory 191 for:
according to the map visual area and the position of a preset point in the map visual area in the electronic map, at least one fragment is obtained from a base map layer corresponding to the electronic map, and text information corresponding to the at least one fragment is obtained;
generating a place name picture corresponding to each piece in the at least one piece according to text information corresponding to the piece, wherein the place name presented in the place name picture is related to the text information;
And generating an electronic map in the map visible area according to the at least one fragment and the place name pictures corresponding to the at least one fragment respectively.
Further, as shown in fig. 19, the electronic device may further include: communication component 193, power component 194, audio component 195, display 196, and other components. Only some of the components are schematically shown in fig. 19, which does not mean that the electronic device only comprises the components shown in fig. 19.
The communication component 193 is configured to facilitate communication between the electronic device and other devices, either wired or wireless. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 193 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 193 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply component 194 provides power to the various components of the electronic device. Power components 194 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic devices.
The audio component 195 is configured to output and/or input audio signals. For example, the audio component 195 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in memory 191 or transmitted via a communications component 193. In some embodiments, the audio component 195 further comprises a speaker for outputting audio signals.
The display 196 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
In addition, the embodiment of the present disclosure also provides a computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the electronic map processing method described in the above embodiment.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. An electronic map processing method, wherein the method comprises the following steps:
according to the map visual area and the position of a preset point in the map visual area in the electronic map, at least one fragment is obtained from a base map layer corresponding to the electronic map, and text information corresponding to the at least one fragment is obtained;
generating a place name picture corresponding to each piece in the at least one piece according to text information corresponding to the piece, wherein the place name presented in the place name picture is related to the text information;
generating an electronic map in the map visible area according to the at least one fragment and the place name pictures corresponding to the at least one fragment respectively;
according to the map visual area and the position of the preset point in the map visual area in the electronic map, obtaining at least one fragment from the base map layer corresponding to the electronic map and obtaining text information corresponding to the at least one fragment respectively, wherein the method comprises the following steps:
determining the identification information of at least one fragment in the display level required in the map visual area according to the current display level of the electronic map, the size of the map visual area and the position of the upper left corner of the map visual area in the electronic map;
Acquiring the at least one fragment from the base map layer corresponding to the display level according to the identification information of the at least one fragment, and acquiring text information corresponding to the at least one fragment respectively;
the text information corresponding to the at least one fragment respectively is obtained, and the method comprises the following steps:
sending at least one acquisition request to a server, wherein the at least one acquisition request is used for requesting text information corresponding to the at least one fragment respectively;
and receiving text information corresponding to the at least one fragment fed back by the server.
2. The method of claim 1, wherein the text information corresponding to the tile comprises at least one of:
the geographical area name, the identification of the geographical area name, the level of the geographical area name, the positioning information of the geographical area name in the electronic map and the display size of the geographical area name are included in the partition.
3. The method of claim 2, wherein generating the place name picture corresponding to the tile according to the text information corresponding to the tile comprises:
converting the positioning information of the place name in the electronic map into a first pixel coordinate of the place name in the map visible area;
Determining a second pixel coordinate of an upper left corner of the tile in the map viewable area;
determining a target position of the place name in the place name picture according to the offset of the first pixel coordinate relative to the second pixel coordinate;
generating the place name picture corresponding to the partition, wherein the place name is displayed on the target position of the place name picture.
4. The method of claim 1, wherein after generating the electronic map in the map viewable area according to the at least one tile and the place name picture to which the at least one tile corresponds, the method further comprises:
and responding to an operation instruction aiming at any place name in the map visual area, and carrying out enhancement processing on the display attribute of any place name.
5. The method of claim 4, wherein enhancing the display attribute of any place name in the map visual area in response to an operation instruction for the any place name comprises:
and responding to an operation instruction aiming at any place name in the map visual area, and modifying the style, the name and the position of any place name in the electronic map.
6. A navigation method, wherein the method comprises:
acquiring a navigation starting point position and a navigation end point position;
according to the position of the map visible area, to which the navigation start position and the navigation end position belong together, and the position of a preset point in the map visible area in the electronic map, at least one fragment is obtained from a base map layer corresponding to the electronic map, and text information corresponding to the at least one fragment is obtained;
generating a place name picture corresponding to each piece in the at least one piece according to text information corresponding to the piece, wherein the place name presented in the place name picture is related to the text information;
generating an electronic map in the map visible area according to the at least one fragment and the place name pictures corresponding to the at least one fragment respectively;
planning a navigation path from the navigation starting point position to the navigation end point position according to the electronic map in the map visible area;
according to the map visual area and the position of the preset point in the map visual area in the electronic map, obtaining at least one fragment from the base map layer corresponding to the electronic map and obtaining text information corresponding to the at least one fragment respectively, wherein the method comprises the following steps:
Determining the identification information of at least one fragment in the display level required in the map visual area according to the current display level of the electronic map, the size of the map visual area and the position of the upper left corner of the map visual area in the electronic map;
acquiring the at least one fragment from the base map layer corresponding to the display level according to the identification information of the at least one fragment, and acquiring text information corresponding to the at least one fragment respectively;
the text information corresponding to the at least one fragment respectively is obtained, and the method comprises the following steps:
sending at least one acquisition request to a server, wherein the at least one acquisition request is used for requesting text information corresponding to the at least one fragment respectively;
and receiving text information corresponding to the at least one fragment fed back by the server.
7. The method of claim 6, wherein the base map layer is a remote sensing image.
8. The method of claim 6, wherein following planning a navigation path from the navigation start position to the navigation end position from an electronic map in the map viewable area, the method further comprises:
Displaying the electronic map and the navigation path in the map visual area;
and performing automatic driving control according to the navigation path.
9. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-8.
10. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211415905.6A CN115451943B (en) | 2022-11-11 | 2022-11-11 | Electronic map processing and navigation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211415905.6A CN115451943B (en) | 2022-11-11 | 2022-11-11 | Electronic map processing and navigation method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115451943A CN115451943A (en) | 2022-12-09 |
CN115451943B true CN115451943B (en) | 2023-09-15 |
Family
ID=84295457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211415905.6A Active CN115451943B (en) | 2022-11-11 | 2022-11-11 | Electronic map processing and navigation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115451943B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116700939B (en) * | 2023-08-08 | 2024-03-15 | 腾讯科技(深圳)有限公司 | Map data processing method, device and system, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005094466A2 (en) * | 2004-03-23 | 2005-10-13 | Google Inc. | Generating and serving tiles in a digital mapping system |
CN104567894A (en) * | 2013-10-16 | 2015-04-29 | 星克跃尔株式会社 | Apparatus and Method for Providing Map Data and System Thereof |
CN110309243A (en) * | 2018-03-22 | 2019-10-08 | 杭州海康威视***技术有限公司 | Obtain method, apparatus, equipment and the storage medium of outdoor scene electronic map |
CN110347769A (en) * | 2019-07-09 | 2019-10-18 | 东方网力科技股份有限公司 | Processing method, device, equipment and the storage medium of multi-layer map tile |
CN113642313A (en) * | 2021-09-02 | 2021-11-12 | 阿里巴巴达摩院(杭州)科技有限公司 | Address text processing method, device, equipment, storage medium and program product |
CN113656528A (en) * | 2021-08-31 | 2021-11-16 | 平安医疗健康管理股份有限公司 | Map layer loading method, device, equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7599790B2 (en) * | 2004-03-23 | 2009-10-06 | Google Inc. | Generating and serving tiles in a digital mapping system |
US11747147B2 (en) * | 2019-12-30 | 2023-09-05 | Gm Cruise Holdings Llc | Dynamic map rendering |
-
2022
- 2022-11-11 CN CN202211415905.6A patent/CN115451943B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005094466A2 (en) * | 2004-03-23 | 2005-10-13 | Google Inc. | Generating and serving tiles in a digital mapping system |
CN104567894A (en) * | 2013-10-16 | 2015-04-29 | 星克跃尔株式会社 | Apparatus and Method for Providing Map Data and System Thereof |
CN110309243A (en) * | 2018-03-22 | 2019-10-08 | 杭州海康威视***技术有限公司 | Obtain method, apparatus, equipment and the storage medium of outdoor scene electronic map |
CN110347769A (en) * | 2019-07-09 | 2019-10-18 | 东方网力科技股份有限公司 | Processing method, device, equipment and the storage medium of multi-layer map tile |
CN113656528A (en) * | 2021-08-31 | 2021-11-16 | 平安医疗健康管理股份有限公司 | Map layer loading method, device, equipment and storage medium |
CN113642313A (en) * | 2021-09-02 | 2021-11-12 | 阿里巴巴达摩院(杭州)科技有限公司 | Address text processing method, device, equipment, storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
CN115451943A (en) | 2022-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11132377B2 (en) | Server implemented geographic information system with graphical interface | |
US9110573B2 (en) | Personalized viewports for interactive digital maps | |
US11055324B1 (en) | Dynamically updating the order of search results on a digital map | |
CA2820284C (en) | Architectures and methods for creating and representing time-dependent imagery | |
US20120303263A1 (en) | Optimization of navigation tools using spatial sorting | |
US8698824B1 (en) | Computing systems, devices and methods for rendering maps remote from a host application | |
US9123178B2 (en) | Updating map tiles | |
KR20130089640A (en) | 3d layering of map metadata | |
CN112069285B (en) | Map generation method and device based on three-dimensional high-precision map slice and electronic equipment | |
US20150170386A1 (en) | Managing updates to map tiles | |
US20230121659A1 (en) | Geospatial asset management | |
CN115451943B (en) | Electronic map processing and navigation method, device, equipment and storage medium | |
CN111080782A (en) | Visual system based on live-action three-dimensional geographic information system | |
US20160116296A1 (en) | Providing instant routing options | |
CN106611056B (en) | Method and device for cutting three-dimensional simulation map | |
US9202311B2 (en) | Accessing map tiles | |
US20190051041A1 (en) | Method and apparatus for automated projection mapping previsualization | |
RU2580335C1 (en) | Method of processing map data | |
US20170011064A1 (en) | Methods and Apparatus for Sending or Receiving an Image | |
KR20130080163A (en) | Method for displaying digital map in client and apparatus thereof | |
KR101291599B1 (en) | Method for Offering User Interface for Web Page Menu Control of n-tier Architecture Based Digital Map | |
CN107027056B (en) | Desktop configuration method, server and client | |
CN111966853B (en) | Management method of remote sensing image | |
JP2007003743A (en) | Map data distribution service system, method therefor, server, mobile terminal, and recording medium | |
CN113888673A (en) | Map editing method, system, device, computing equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |