CN115451943A - Electronic map processing method, electronic map navigation device, electronic map navigation equipment and storage medium - Google Patents

Electronic map processing method, electronic map navigation device, electronic map navigation equipment and storage medium Download PDF

Info

Publication number
CN115451943A
CN115451943A CN202211415905.6A CN202211415905A CN115451943A CN 115451943 A CN115451943 A CN 115451943A CN 202211415905 A CN202211415905 A CN 202211415905A CN 115451943 A CN115451943 A CN 115451943A
Authority
CN
China
Prior art keywords
map
electronic map
place name
fragment
visual 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.)
Granted
Application number
CN202211415905.6A
Other languages
Chinese (zh)
Other versions
CN115451943B (en
Inventor
王元奇
吴雷君
满远斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202211415905.6A priority Critical patent/CN115451943B/en
Publication of CN115451943A publication Critical patent/CN115451943A/en
Application granted granted Critical
Publication of CN115451943B publication Critical patent/CN115451943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/38Electronic maps specially adapted for navigation; Updating thereof
    • G01C21/3863Structures of map data
    • G01C21/387Organisation of map data, e.g. version management or database structures
    • G01C21/3881Tile-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)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

The disclosure relates to electronic map processing and navigation methods, devices, equipment and storage media. The method and the device for obtaining the text information of the electronic map acquire at least one fragment from a base map layer corresponding to the electronic map and acquire the text information corresponding to the at least one fragment. The data volume of the text information is small, so that the network transmission bandwidth is reduced, the total time of the terminal for requesting the fragments from the server and the text information is reduced, the terminal can render the character layers according to the text information quickly, and then the character layers and the base map layers are overlapped to generate the electronic map, so that the loading efficiency of the electronic map in the map visual area is improved, and blank holes caused by the low loading speed of the electronic map are effectively avoided. In addition, the display level, the text layer and the bottom map layer are kept highly synchronous. Therefore, in the process of zooming the electronic map, the geographical name information of some regions, the position of the actual region can be effectively prevented from being displayed in a fuzzy mode, and blank holes can be effectively avoided.

Description

Electronic map processing method, electronic map navigation method, electronic map processing device, electronic map navigation device and storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to an electronic map processing method, an electronic map navigation method, an electronic map processing apparatus, an electronic map navigation apparatus, and a storage medium.
Background
At present, electronic maps provide great convenience for people, for example, convenience for traveling.
In general, the electronic map displays the place name information of each region, such as country, province, city, downtown, county, and the actual area location of each region on the electronic map. And during the zooming process of the electronic map, the user may see regions of different levels, for example, after zooming out the electronic map, the user may see regions of the level of each country, and after zooming in the electronic map, the user may see downtown areas, counties, streets, buildings, etc.
However, with the current electronic map, during the zooming process of the electronic map, it often happens that the place name information of some regions and the actual region position are displayed in a fuzzy way. Even, a hole of blank space may occur in the electronic map at the time of zooming. Resulting in a lower user experience.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the present disclosure provides an electronic map processing method, an electronic map navigation method, an electronic map processing apparatus, an electronic map navigation apparatus, and a storage medium, which can effectively avoid occurrence of location name information, fuzzy display of actual location positions, and blank holes in some areas during a process of zooming 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 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;
for each fragment of the at least one fragment, generating a place name picture corresponding to the fragment according to text information corresponding to the fragment, wherein a place name presented in the place name picture is related to the text information;
and generating the electronic map in the map visual area according to the at least one fragment and the place name picture 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 a map visual area to which the navigation starting position and the navigation end position belong together and the position of a preset point in the map visual area in an electronic map, acquiring at least one fragment from a bottom map layer corresponding to the electronic map and acquiring text information corresponding to the at least one fragment respectively;
for each fragment of the at least one fragment, generating a place name picture corresponding to the fragment according to text information corresponding to the fragment, wherein a place name presented in the place name picture is related to the text information;
generating an electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment respectively;
and planning a navigation path from the navigation starting position to the navigation end position according to the electronic map in the map visual 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 of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method of the first aspect.
According to the electronic map processing method, the electronic map navigation method, the electronic map processing device, the electronic map navigation device and the storage medium, at least one fragment and text information corresponding to the at least one fragment are obtained from a bottom map layer corresponding to an electronic map through a map visual area and positions of preset points in the map visual area in the electronic map. The data volume of the text information is small, so that the network transmission bandwidth is reduced, the total time of the terminal for requesting the fragments from the server and the text information is reduced, the terminal can render the character layers according to the text information quickly, and then the character layers and the base map layers are overlapped to generate the electronic map, so that the loading efficiency of the electronic map in the map visual area is improved, and blank holes caused by the low loading speed of the electronic map are effectively avoided. In addition, because the text layer is rendered by the terminal, namely, the text layer corresponding to a group of fragments can be generated after the terminal acquires the group of fragments, the text layer is ensured to be always in a result state without an intermediate state. In the process of zooming the electronic map, the terminal may obtain fragments in the base map layers of different display levels from the server, however, as long as the terminal obtains a group of fragments from the base map layer of a certain display level, a text layer corresponding to the group of fragments at the display level is generated, that is, as long as the display level changes, the text layer and the base map layer change along with the change, so that the display level, the text layer and the base map layer are kept highly synchronous. Therefore, in the process of zooming the electronic map, the geographical name information of some regions, the position of the actual region can be effectively prevented from being displayed in a fuzzy mode, and blank holes 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 present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of an electronic map provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of an electronic map processing method provided in an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;
FIG. 4 is a schematic view of a browser viewing area provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a slice provided by another embodiment of the present disclosure;
fig. 6 is a schematic diagram of generation of an electronic map provided by another embodiment of the present disclosure;
fig. 7 is a schematic diagram of a corresponding relationship between a display level and other data of a map according to another embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a tile pyramid provided by another embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a tile area for the ZXY rule provided by an embodiment of the present disclosure;
fig. 10 is a flowchart of an electronic map processing method according to another embodiment of the disclosure;
FIG. 11 is a schematic diagram of a browser viewing area and a data rendering area provided by an embodiment of the present disclosure;
fig. 12 is a schematic diagram of a removal strategy for a place name picture according to another embodiment of the disclosure;
fig. 13 is a flowchart of an electronic map processing method according to another embodiment of the disclosure;
FIG. 14 is an interaction diagram illustrating a location name being selected according to an embodiment of the disclosure;
fig. 15 is a flowchart of an electronic map processing method according to another embodiment of the disclosure;
fig. 16 is a schematic structural diagram of an electronic map processing apparatus 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 view 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 present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments of the present disclosure 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 is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
It should be noted that the electronic map and the bottom map layer referred to in the present application are information and data authorized or fully authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant countries and regions, and provide corresponding operation entries for the user to choose authorization or denial. In addition, the base map layer, also called base map data, uses a non-encrypted coordinate system, such as the general European Petroleum Survey Group (EPSG): 3857 non-encrypted coordinate system, so that there is no legal risk of transforming the coordinate system.
Several terms related to the embodiments of the present application are explained below.
Tile map: typically, because the underlying map layer is large, the underlying map layer needs to be partitioned into one or more tile maps, each of which is fixed in size, e.g., 256 × 256 pixels.
Tile pyramid: the electronic map is scalable, and the zoom level of the electronic map is also called a zoom level, a display level, or a display level. After a base map layer corresponding to one display level is divided into tile maps, the tile maps corresponding to the display levels are stored according to the sequence of the display levels to form a tile pyramid.
Geographic Information Systems (GIS) are sometimes also referred to as "Geographic Information systems". It is a specific and very important spatial information system. The system is a technical system for collecting, storing, managing, operating, analyzing, displaying and describing relevant geographic distribution data in the whole or partial earth surface (including the atmosphere) space under the support of a computer hardware and software system.
GCJ-02 coordinate system: is a coordinate system of a geographic information system prepared by the chinese national mapping agency (G denotes Guojia countries, C denotes Cehui mapping, and J denotes Ju office).
In this embodiment, the electronic map is a result of overlapping a plurality of layers, for example, the electronic map is a result of overlapping a text layer and a bottom map layer. The text layer may include a place name, an anchor point of the place name, and the like, as 11 shown in fig. 1. The bottom map layer may include actual regional locations of various regions on the electronic map, such as 12 shown in fig. 1. The electronic map 13 is obtained by overlaying the text layer 11 and the bottom map layer 12, and it should be understood that fig. 1 is only a schematic illustration and does not limit the number of displayable regions in the electronic map, specific names of the regions, and actual area positions of the regions on the electronic map. The sizes of the text layer, the bottom map layer and the electronic map are consistent.
In general, the electronic map displays the place name information of each region, such as country, province, city, downtown, county, and the actual area location of each region on the electronic map. And during the zooming process of the electronic map, the user may see regions of different levels, for example, after zooming out the electronic map, the user may see regions of the level of each country, and after zooming in the electronic map, the user may see downtown areas, counties, streets, buildings, etc. However, with the current electronic map, during the zooming process of the electronic map, it often happens that the place name information of some regions and the actual region position are displayed in a fuzzy way. Even when zoomed, blank holes may appear in the electronic map. Resulting in a lower user experience.
To solve this problem, 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, which can be implemented in software and/or hardware, and can be configured in an electronic device, such as a terminal, where the terminal specifically includes a mobile phone, a computer, or a tablet computer. In addition, the electronic map processing method described in this embodiment may be applied to the application scenario 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 segments, each segment is denoted as a tile map, and stores the plurality of segments. The terminal 31 may request from the server 32 to obtain one or more tile maps and text information corresponding to each of the one or more tile maps, so as to generate a local electronic map displayable on a display component of the terminal 31. The method is described in detail with reference to fig. 3, and as shown in fig. 2, the method comprises the following specific 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 bottom 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, a browser viewing area 41 is visible to a user on a screen of the terminal 31, and the size of the browser viewing area 41 and the display position of the browser viewing area 41 in the screen are adjustable by the user. The browser viewable area generally refers to the area that is viewable on the browser. Assuming the browser is used to display an electronic map, the browser viewable area 41 may be a map viewable area.
In this embodiment, a pixel coordinate system can be established by using a predetermined point in the visual 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 a longitude and latitude, and the longitude and latitude and the pixel coordinate can be converted mutually, so that the corresponding longitude and latitude of the upper left corner 42 in the electronic map can be obtained according to the pixel coordinate of the upper left corner 42. Further, according to the browser visual area and the position of the upper left corner 42 in the browser 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.
For example, as shown in fig. 5, the server 32 divides the bottom map layer into 4 segments, i.e., a segment 51, a segment 52, a segment 53, and a segment 54. The terminal 31 may send the server 32 the corresponding longitude and latitude of the upper left corner 42 in the electronic map, and the size of the browser visual area 41. The server 32 may determine a corresponding point, for example, the point 55, of the top left corner 42 in the bottom map layer according to the longitude and latitude of the top left corner 42 in the electronic map. Further, a box 56 is circled according to the size of the browser viewing area 41, with the point 55 being the upper left corner. Since the box 56 occupies partial areas of the segment 51, the segment 52, the segment 53, and the segment 54, respectively, the server 32 may send the segment 51, the segment 52, the segment 53, and the segment 54 to the terminal 31 in order to ensure data integrity. In addition, in this embodiment, each fragment may correspond to one json file, that is, the server 32 may further store the json file of each fragment. The server 32 further needs to send json files corresponding to the shard 51, the shard 52, the shard 53, and the shard 54 to the terminal 31.
In this embodiment, the json file is also called json data. The information in a json file is text information, and since a segment may include one or more geographical areas, the json file corresponding to the segment 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 comprises the place name, the identification of the place name, the level of the place name, the positioning information of the place name in the electronic map and the display size of the place name.
For example, the segment 51 includes a geographic area 57 in city a, and the content of the json file corresponding to the segment 51 is specifically as follows:
[
[
"o: -270056",// place name data id
"City A",// place name
"City",// place name level (country, city, county \8230;)
105,// longitude
35,// latitude
26,// Width of the rendering case
15// height of rendering case
]
Wherein, the longitude and latitude are the positioning information of the place name in the electronic map. The width of the rendered document and the height of the rendered document refer to the display size of "city a". It is understood that "o: -270056", "city a", "city", 105, 35, 26, 15 constitutes a set of structured data about "city a". If a slice comprises a plurality of geographical areas, a json file corresponding to the slice comprises a plurality of structured data, and each structured data corresponds to one geographical area.
S202, aiming at each fragment of the at least one fragment, generating a place name picture corresponding to the fragment according to the text information corresponding to the fragment, wherein the place name presented in the place name picture is related to the text information.
For example, the terminal 31 acquires the segment 51, the segment 52, the segment 53, the segment 54, and the json file for each segment from the server 32. Further, the terminal 31 may generate a place name picture corresponding to each segment according to the json file of each segment. It can be understood that, in this embodiment, the electronic map may be understood as a result of superimposing the text layer and the bottom map layer, and the sizes of the text layer, the bottom map layer, and the electronic map are the same. Because the base map layer can be divided into a plurality of tile maps, the size of each tile map is fixed, and the tile maps can be marked as fragments, when a place name picture corresponding to a fragment is generated according to a json file of the fragment, the size of the place name picture corresponding to the fragment is consistent with the size of the fragment. Therefore, the text layer can be regarded as a result of splicing multiple place name pictures, that is, the constituent units of the text layer are place name pictures, and the constituent units of the base map layer are tile pictures, that is, slices. The size of the fragment is consistent with the size of the place name picture.
For example, as shown in fig. 6, taking the json file corresponding to the segment 51 as an example, the terminal 31 may generate a place name picture 61 with the same size as the segment 51, where the content presented in the place name picture 61 is related to the text information in the json file corresponding to the segment 51. For example, "a city" is included in the place name picture 61, and a display position of "a city" in the place name picture 61 is determined according to positioning information of "a city" in the electronic map. The display size of "city a" in the place name picture 61 is determined according to the width of the rendered document and the height of the rendered document. 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 may be generated.
S203, generating the electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment.
For example, the terminal 31 may form a character layer by splicing the location name picture 61, the location name picture 62, the location name picture 63, and the location name picture 64. And splicing the slice 51, the slice 52, the slice 53 and the slice 54 to form a base map layer. And superposing the text layer and the bottom map layer to obtain the electronic map 65. Further, the electronic map displayed in the browser visual area 41 is determined from the electronic map 65 according to the position of the upper left corner 42 in the browser visual area in the electronic map and the size of the browser visual area 41.
It is understood that in some 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 and text information respectively corresponding to the at least one fragment are obtained 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. The data volume of the text information is small, so that the network transmission bandwidth is reduced, the total time of the terminal for requesting the fragments from the server and the text information is reduced, the terminal can render the character layers according to the text information quickly, and then the character layers and the base map layers are overlapped to generate the electronic map, so that the loading efficiency of the electronic map in the map visual area is improved, and blank holes caused by the low loading speed of the electronic map are effectively avoided. In addition, because the text layer is rendered by the terminal, namely, the text layer corresponding to a group of fragments can be generated after the terminal acquires the group of fragments, the text layer is always in a result state without an intermediate state. In the process of zooming the electronic map, the terminal may obtain fragments in the base map layers of different display levels from the server, however, as long as the terminal obtains a group of fragments from the base map layer of a certain display level, a text layer corresponding to the group of fragments at the display level is generated, that is, as long as the display level changes, the text layer and the base map layer change along with the change, so that the display level, the text layer and the base map layer are kept highly synchronous. Therefore, in the process of zooming the electronic map, the geographical name information of some regions, the position of the actual region can be effectively prevented from being displayed in a fuzzy mode, and blank holes can be effectively avoided. Thereby improving user experience.
It is understood that the place name in this embodiment may be a Point of Interest (POI), or the location Point where the place name is located is a POI. By the method of the embodiment, the information such as the place name, the POI and the like with higher fineness 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 each of the width and the height), the larger the number of slices (also called slices) obtained by dividing the base map layer, 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 is understood that fig. 7 only shows a part of data when the display levels are 0, 1 and 2, but the corresponding data is continuously changed as the display level is gradually increased. Where the size of each tile is fixed, e.g. 256x256 pixels. That is to say, 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 each display level may form a tile pyramid, and each tile in the tile pyramid may be marked as a tile map. The tile pyramid includes a plurality of levels of tile maps, each level corresponding to a display level of the electronic map, and a next level includes 4 times as many tile maps as a previous level. 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, and 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 a corresponding base map layer when the display level of the electronic map is 0. 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 a method of 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 upper left corner of the base map layer of the 1 st layer, cutting is performed in the order from left to right and from top to bottom, so that 4 tile maps with the same size as the 0 th layer are divided. The same approach can be used to generate 16 tile maps for layer 3. If there are N display levels of the electronic map, and so on until a tile map for layer N-1 is generated. In addition, the geographic extent represented by each layer is invariant from layer 0 to layer N-1 of the tile pyramid. In addition, in some embodiments, the set of multiple tile maps in a level is denoted as the tile matrix for that level.
Specifically, the server 32 may store a tile pyramid, i.e., a tile map of each level in advance. Or, 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 0 by default, and after the browser visual 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 slice in the bottom map layer at the display level to the terminal 31.
In this embodiment, the terminal 31 may draw tile areas at different display levels according to different display levels of the electronic map, the tile areas and the tile maps may be in a one-to-one correspondence, and a data source corresponding to one tile area includes the tile map corresponding to the tile area and a json file corresponding to the tile map. For example, when the terminal 31 loads an electronic map for the first time, assuming that the display level of the electronic map is 0, the terminal 31 can draw a 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 area, for example, the terminal 31 may draw 4 tile areas according to the table contents shown in fig. 7. In particular, the present embodiment may assign a number to each tile area using a ZXY-based specification. Where Z denotes the several levels or display levels, if there are a plurality of tile regions at the Z-th level, then as shown in fig. 9, one coordinate in the X-axis direction and one coordinate in the Y-axis direction are assigned to each tile region in order from left to right, from top to bottom. So that each tile area under each level drawn by the terminal 31 corresponds to a unique number, ZXY. In addition, the origin of coordinates of 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 maps of each hierarchy stored in the server 32, so that the numbers of the tile areas and the tile maps having the corresponding relationship are the same. In addition, the size of the tile area and the size of the tile map may be the same, except that the tile area is equivalent to a blank area, and the tile map is data to be added to the tile area, and a place name generated according to a json file needs to be added to the tile area. In addition, the terminal 31 can determine the latitude and longitude range occupied by each tile area in the electronic map according to the coordinate origin shown in fig. 9 and the specific numerical value shown in fig. 7. For example, the terminal 31 may determine the respective longitude and latitude of 4 vertices at 4 corners of each tile area at each level.
In some other embodiments, when the terminal 31 acquires the plurality of tile maps, the place name pictures corresponding to the plurality of tile maps may also be generated 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 disclosure. According to a map visual area and a 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, comprising the following steps:
s1001, 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, determining the identification information of at least one segment at the display level required in the map visual area.
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, that is, the current display level of the electronic map. Second, the terminal 31 needs to draw the tile area at the display level, or the terminal 31 needs to query the pre-drawn tile area at the display level. Further, 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 are determined from the tile areas under the display level, so as to determine which tile maps need to be obtained from the server 32. Coverage herein includes full coverage and partial coverage.
For example, as shown in fig. 11, assuming that the current display level of the electronic map is 3, the terminal 31 is drawn with a plurality of tile areas with the display level of 3, and the tile area 110 is a schematic diagram of a certain tile area. In addition, the numbers of the respective tile areas of display level 3 are as shown in fig. 11, for example, the number of the tile area 110 is Z:3, X0, Y. Further, the terminal 31 may 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, tile areas that can be covered by the browser visual area 41 are determined 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, for example, the browser visual area 41 covers several tile areas in the box 111. Although the browser visible area 41 is partially covered for several tile areas in the frame 111, the terminal 31 needs to completely acquire the tile map corresponding to each tile area in the frame 111 since the base map layer is stored in units of tile maps. Since the tile areas correspond to the tile maps one by one, and the numbering rules of the tile areas are consistent with the numbering rules of the tile maps, the identification information of the tile map with the display level 3 required in the browser visual area 41 is the number of each tile area in the frame 111. In some embodiments, the area shown in the block 111 may be referred to as a data rendering area, that is, for each tile area in the block 111, a tile map and a json file corresponding to the tile area need to be acquired, and a corresponding place name picture needs to be rendered according to the json file.
It is understood that the tile area covered by the browser viewing area 41 can be determined by unifying the coordinates of the upper left corner 42, the coordinates of the boundary of the browser viewing area 41, and the coordinates of the vertices of the tile areas in the same coordinate system. The coordinate system may be a coordinate system identified in latitude and longitude as described above, or may be a pixel coordinate system with the upper left corner 42 as the origin of coordinates, or may be another type of coordinate system.
S1002, according to the identification information of the at least one fragment, acquiring the at least one fragment from the base map layer corresponding to the display level and acquiring text information corresponding to the at least one fragment.
For example, as shown in fig. 11, a total of 4 × 2=8 tile areas is included in the block 111, which indicates that the terminal 31 needs to request to obtain 8 tile maps and 8 json files from the 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 the server 32 can query the tile map and json file corresponding to the number according to the number of the tile area.
In a possible implementation, the terminal 31 may send 8 request messages to the server 32, each request message including a number of a tile area. And one request message is used for requesting to acquire a tile map and a 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, the obtaining text information corresponding to each of the at least one segment 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; and receiving text information respectively corresponding to the at least one fragment fed back by the server.
For example, the terminal 31 may transmit 8 file request information to the server 32, each file request information including a number of one tile area. So that the server 32 can feed back 8 json files to the terminal 31.
Optionally, the method further includes: caching the at least one acquisition request.
For example, after the terminal 31 sends 8 pieces of file request information to the server 32, the 8 pieces of file request information may be cached, for example, in a memory. When the terminal 31 needs to acquire a json file from the server 32, it directly checks whether there is file request information corresponding to the json file from the cache, and if so, it directly sends the file request information, so as to reduce the number of hypertext Transfer Protocol (HTTP) requests and further improve the loading efficiency of the electronic map.
Optionally, after generating the place name picture corresponding to the segment according to the text information corresponding to the segment, the method further includes: and caching the place name picture.
For example, after the terminal 31 acquires the tile map and the json file corresponding to each tile area in the box 111 from the server 32, by using the method described above, the text map layer and the base map layer corresponding to the box 111 may be generated, so as to generate the electronic map in the box 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 the location name picture according to a json file, the location name picture may be cached, for example, in a memory. Therefore, when the terminal 31 subsequently needs a place name picture corresponding to a certain tile map, the place name picture is directly extracted from the memory, and the processes of obtaining the json file from the server 32 and generating the place name picture according to the json file do not need to be repeatedly executed, so that repeated calculation is reduced, and the loading efficiency of the electronic map is further improved.
It can be understood that if the terminal 31 simultaneously starts the caching for the file request information and the caching for the picture of the place name that has been generated, that is, simultaneously starts the two-level caching, the rendering effect can be greatly optimized.
In addition, in this embodiment, the location name pictures cached in the memory may be eliminated by a Least Recently Used (LRU) algorithm, so as to optimize the computing performance of the terminal 31. As shown in fig. 12, the plurality of location name pictures are cached location name pictures in the memory, each location name picture corresponds to a sequence number, and the plurality of location name pictures can be sorted according to time information when each location name picture is cached. Assuming that the direction from 01 to 32, the use rate of the place name picture is higher and higher. Then the place name picture 0 may be deleted from memory if a place name picture, such as place name picture 0, was least recently used. If a certain place name picture, such as the place name picture 3, is used recently, it is indicated that the probability that it is used in the future is also high, and therefore, the 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 disclosure. Optionally, the text information corresponding to the fragment includes at least one of the following: the geographical area names in the segments, the identifications of the place names, the levels of the place names, the positioning information of the place names in the electronic map and the display sizes of the place names. Such as the text information in the json file described above.
Optionally, generating the place name picture corresponding to the segment according to the text information corresponding to the segment includes 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 visual area.
Assume that the terminal 31 acquires the tile map and the json file corresponding to each tile area in the block 111 from the 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 a canvas (canvas), the place name pictures may also be referred to as canvas images. Or, the text layer as described above is referred to as canvas image. Since each json file contains the latitude and longitude of the place name, the latitude and longitude of the place name can be converted into pixel coordinates in a pixel coordinate system with the upper left corner 42 of the browser visible area 41 as the origin of coordinates, assuming that the pixel coordinates are recorded as first pixel coordinates.
S1302, determining a second pixel coordinate of the upper left corner of the segment in the map visual 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 as described above, so as 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 can determine the target position of the place name in the json file in the place name picture.
And S1304, generating the place name picture corresponding to the fragment, 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 the json file contains the display size of the place name, that is, the size of the minimum 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 for "B city". 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 frame 141 in the electronic map. The latitude and longitude of "B" on the electronic map may be appropriately shifted with reference to the center of the frame 141, and the latitude and longitude of "city" on the electronic map may be appropriately shifted with reference to the center of the frame 141.
Optionally, the method further includes: and determining whether the place name is displayed in a line feed manner in the place name picture or not according to the display size of the place name and the size of each word in the place name.
As shown in fig. 14, the display size of "B city" 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 sum of the size of the "B" and the size of the "city" is smaller than or equal to the display size of the "B city", it indicates that the "B city" does not need to be displayed in a new line in the place name picture. If the sum of the size of the 'B' and the size of the 'city' is larger than the display size of the 'B city', the 'B city' is indicated to need to be displayed in a new line in the place name picture.
Optionally, after generating the electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment, the method further includes: and responding to an operation instruction aiming at any place name in the map visual area, and performing enhancement processing on the display attribute of the 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 may operate the place name displayed in the browser view 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 of the user for the place name. 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 a place name may also be added to the json file, such as whether the place name can be clicked, the color of the place name, etc. In addition, in order to avoid the main thread from being blocked, 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 visual area, performing enhancement processing on a display attribute of the place name, including: and in response to an operation instruction for any place name in the map visual area, modifying the style, name and position of the place name in the electronic map.
For example, when the user touches a finger or clicks a place name displayed in the browser visual area 41 with a mouse, the terminal 31 may modify the style of the place name on the electronic map in response to an operation instruction of the user for the place name, for example, the place name is displayed in a darkened, bolded manner after the modification. Alternatively, the place names are displayed in a horizontal row before modification, and the place names are displayed in a vertical row after modification, so that the place names designated by the user are highlighted from a plurality of place names. Alternatively, in another embodiment, the location name of a certain geographic area is changed, and in this case, the terminal 31 may modify the location name into an updated name in response to a modification instruction for the location name by the user. Still alternatively, the terminal 31 may move the place name of the certain geographical area from the a position in the geographical area to the B position in the geographical area in response to a user operation instruction for the place name, such as a move instruction, thereby making the place name position flexibly movable.
In addition, it is understood that, in some embodiments, the electronic map processing method described in this embodiment may also be executed by a machine learning model, and in this case, the modification result 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 is more suitable for the actual application requirement.
Fig. 15 is a flowchart of an electronic map processing method according to another embodiment of the disclosure. For example, the method includes 3 phases, the first phase being an initial drawing 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 comprises a step 1 and a step 2, wherein the step 1: 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 0, and at this time, the terminal 31 may draw a tile area conforming to the ZXY standard tile at the display level. When the user adjusts the size of the electronic map, the terminal 31 may draw tile areas at different display levels according to the different display levels of the electronic map. Step 2: the terminal 31 may determine a map visible area, i.e., a browser visible area 41, determine which tile areas are covered by the browser visible area 41 from tile areas under the current display level according to the size of the browser visible area 41 and the longitude and latitude of the upper left corner 42 of the browser visible area 41 in the electronic map, and use a larger area formed by splicing the tile areas covered by the browser visible area 41 as a data rendering area.
The second stage comprises step 3, step 3: for example, the terminal 31 may send a request to the server 32 as needed to obtain the tile map and the json file respectively corresponding to each tile area in the data rendering area, and meanwhile, the terminal 31 may also cache the requested data.
The third stage comprises a 4 th step and a 5 th step, wherein the 4 th step: the terminal 31 may render a corresponding place name picture according to a json file, that is, perform canvas rendering according to the json file, and the terminal 31 may also eliminate the place name picture cached in the memory by an LRU algorithm. Further, the place name pictures respectively corresponding to each tile area in the data rendering area are spliced into text layers, the tile maps respectively corresponding to each tile area in the data rendering area are spliced into base map layers, then the text layers and the base map layers are superposed to form 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 part of the electronic map displayed in the browser visual area 41 can be intercepted from the electronic map according to the size of the browser visual area 41, for example, in the intercepting process, the center point of the electronic map can be kept to be overlapped or consistent with the center point of the browser visual area 41. And 5, step 5: when a corresponding electronic map is displayed in the browser visual area 41 and a place name is displayed in the electronic map, the user may perform an operation on the place name displayed in the browser visual area 41, such as a finger touch, a mouse click, and 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 of the user for the place name. For example, the display color of the place name is adjusted, or the place name is highlighted. In order to avoid the blocking of the main thread, the embodiment may monitor the operation on the place name through an auxiliary thread (worker thread) and respond to the operation, that is, the logic that the place name is selected is processed in the worker thread, so that a smooth interaction effect may be achieved.
In the prior art, the server usually generates the place name slice (i.e. picture data) corresponding to each tile, but the data size of the place name slice is large (for example, the data size of one place name slice is more than 3 KB), while in the embodiment of the present application, the place name slice 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 slice), so that the Object Storage Service (OSS) cost on the server side can be significantly reduced, for example, the Storage cost is reduced by 90%. In addition, the method described in this embodiment can also reduce the maintenance cost of data, for example, in the prior art, updating the place name requires first generating new tile data, and then storing the place name composite tile map. By the method, the place name in the json file can be directly modified.
Fig. 16 is a schematic structural diagram of an electronic map processing apparatus according to an embodiment of the present disclosure. The electronic map processing apparatus provided in the embodiment of the present disclosure may execute the processing procedure provided in the embodiment of the electronic map processing method, as shown in fig. 16, the electronic map processing apparatus 160 includes:
an obtaining module 161, configured to obtain, according to a map visual area and a position of a preset point in the map visual area in an electronic map, at least one segment from a base map layer corresponding to the electronic map and text information corresponding to each of the at least one segment;
a first generating module 162, configured to generate, for each segment 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 the electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment respectively.
Optionally, the obtaining module 161 includes: a determining unit 1611 and an obtaining unit 1612, where the determining unit 1611 is configured to determine, according to a current display level of the electronic map, a size of the map visual area, and a position of an upper left corner of the map visual area in the electronic map, identification information of each of at least one segment at the display level required in the map visual area; the obtaining unit 1612 is configured to obtain, according to the identification information of each of the at least one segment, the at least one segment from the base map layer corresponding to the display level and obtain text information corresponding to each of the at least one segment.
Optionally, when the obtaining module 161 obtains the text information corresponding to each of the at least one segment, 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;
and receiving text information respectively corresponding to the at least one fragment fed back by the server.
Optionally, the electronic map processing apparatus 160 further includes: a first caching module 164, configured to cache the at least one obtaining request.
Optionally, the electronic map processing apparatus 160 further includes: the second caching module 165 is configured to cache 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 fragment includes at least one of the following:
the geographical names of the geographical areas included in the segments, the identifications of the geographical names, the levels of the geographical names, the positioning information of the geographical names in the electronic map and the display sizes of the geographical names.
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 first generating module is specifically configured to:
converting the positioning information of the place name in the electronic map into a first pixel coordinate of the place name in the map visual area;
determining second pixel coordinates of the upper left corner of the sliced piece in the visible area of the map;
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;
and generating the place name picture corresponding to the fragment, wherein the place name is displayed on the target position of the place name picture.
Optionally, the electronic map processing apparatus 160 further includes: the determining module 166 is configured to determine whether the place name is displayed in a line feed manner in the place name picture according to the display size of the place name and the size of each word in the place name.
Optionally, the electronic map processing apparatus 160 further includes: the enhancement processing module 167 is configured to, after the second generating module 163 generates the electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment, perform enhancement processing on the display attribute of any place name in the map visual area in response to an operation instruction for the place name in the map visual area.
The electronic map processing apparatus in the embodiment shown in fig. 16 can be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, and are not described herein again.
In addition, this embodiment further provides a navigation method, as shown in fig. 17, the method includes the following steps:
s1701, a navigation start point position and a navigation end point position are acquired.
As shown in fig. 18, in a browser visual area 1800, a 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 starting point position (e.g. longitude and latitude of the navigation starting point) according to the navigation starting point name, and determines a navigation end point position (e.g. longitude and latitude of the navigation end point) according to the navigation end point name.
S1702, according to a map visual area to which the navigation start position and the navigation end position belong together and a position of a preset point in the map visual area in an electronic map, acquiring at least one segment from a base map layer corresponding to the electronic map and acquiring text information corresponding to the at least one segment respectively.
As shown in fig. 18, the navigation start position and the navigation end position are both in the browser visual area 1800, further, the terminal may obtain one or more tiles (for example, the tile map as described above) corresponding to the browser visual area 1800 from the server 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 text information, for example, a json file as described above, corresponding to each of the one or more tiles from the server.
S1703, aiming at each fragment of the at least one fragment, generating a place name picture corresponding to the fragment according to the text information corresponding to the fragment, wherein the place name presented in the place name picture is related to the text information.
For example, after acquiring one or more segments corresponding to the browser visual area 1800 and json files corresponding to the one or more segments, the terminal generates a place name picture corresponding to each segment according to the json file corresponding to each segment, where the place name picture may display the place name of each geographic area in the segment.
S1704, generating the electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment.
For example, the terminal may form an underlying image layer according to one or more tiles corresponding to the browser visual area 1800, and form a text image layer by using place name pictures corresponding to the one or more tiles respectively. Further, the text layer and the bottom map layer are superimposed, so as to obtain an electronic map in the browser visual area 1800.
And S1705, planning a navigation path from the navigation starting position to the navigation end position according to the electronic map in the map visual 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 photograph or a satellite photograph.
Optionally, after planning a navigation path from the navigation start position to the navigation end position according to the electronic map in the map visual area, the method further includes: displaying the electronic map and the navigation path in the map visual area; and carrying out automatic driving control according to the navigation path.
As shown in fig. 18, the terminal may display the electronic map in the browser visual area 1800 it generates and the navigation path from the navigation start position to the navigation end position in the browser visual area 1800. In some embodiments, the terminal may be a car machine, so that the car machine may implement automatic driving according to the navigation path. Or, in some other embodiments, the terminal may be a mobile phone, and at this time, the mobile phone may broadcast navigation information in real time, such as a current location of the user, and a next driving direction and a next road length of the user, so as to guide the user to drive according to the navigation path.
According to the embodiment, the navigation path from the navigation starting 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, the travel of the user is facilitated, and the user experience is improved.
The internal functions and structure of the electronic map processing apparatus, which can be implemented as one type of electronic device, are described above. Fig. 19 is a schematic structural diagram of an embodiment of an electronic device provided in the embodiment of the present 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 above programs, the memory 191 may also be configured to store other various 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 so forth.
The memory 191 may be implemented by any type or combination of volatile or non-volatile storage 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 disks.
The processor 192 is coupled to the memory 191 to execute programs stored in the memory 191 for:
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;
for each fragment of the at least one fragment, generating a place name picture corresponding to the fragment according to text information corresponding to the fragment, wherein a place name presented in the place name picture is related to the text information;
and generating the electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment.
Further, as shown in fig. 19, the electronic apparatus may further include: communication components 193, power components 194, audio components 195, a display 196, and the like. Only some of the components are schematically shown in fig. 19, and it is not meant that the electronic device includes only the components shown in fig. 19.
The communication component 193 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 193 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication 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.
The power supply unit 194 supplies power to various components of the electronic device. The 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 an electronic device.
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 further be stored in the memory 191 or transmitted via the communication component 193. In some embodiments, 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect 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, on which a computer program is stored, the computer program being executed by a processor to implement the electronic map processing method described in the above embodiment.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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. Also, 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description is only for the purpose of describing particular embodiments of the present disclosure, so as to enable those skilled in the art to understand or implement the present 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 herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. An electronic map processing method, wherein the method comprises:
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;
for each fragment of the at least one fragment, generating a place name picture corresponding to the fragment according to text information corresponding to the fragment, wherein a place name presented in the place name picture is related to the text information;
and generating the electronic map in the map visual area according to the at least one segment and the place name picture corresponding to the at least one segment.
2. The method of claim 1, wherein obtaining at least one segment from a bottom map layer corresponding to the electronic map and text information corresponding to the at least one segment according to a map visual area and a position of a preset point in the map visual area in the electronic map comprises:
determining the respective identification information of at least one segment at 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;
and acquiring the at least one fragment and text information corresponding to the at least one fragment from a base map layer corresponding to the display level according to the identification information of the at least one fragment.
3. The method according to claim 1, wherein obtaining the text information corresponding to each of the at least one segment 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;
and receiving text information respectively corresponding to the at least one fragment fed back by the server.
4. The method of claim 1, wherein the textual information corresponding to the segment comprises at least one of:
the geographical names of the geographical areas included in the segments, the identifications of the geographical names, the levels of the geographical names, the positioning information of the geographical names in the electronic map and the display sizes of the geographical names.
5. The method according to claim 4, wherein generating the place name picture corresponding to the segment according to the text information corresponding to the segment 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 visual area;
determining a second pixel coordinate of an upper left corner of the tile in the map viewable area;
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;
and generating the place name picture corresponding to the fragment, wherein the place name is displayed on the target position of the place name picture.
6. The method according to claim 1, wherein after generating the electronic map in the map visual area according to the at least one tile and the place name picture corresponding to the at least one tile, the method further comprises:
and responding to an operation instruction aiming at any place name in the map visual area, and performing enhancement processing on the display attribute of the any place name.
7. The method of claim 6, wherein the enhancing the display attribute of any place name in the map visual area in response to the operation instruction for the place name comprises the following steps:
and in response to an operation instruction aiming at any place name in the map visual area, modifying the style, name and position of the place name in the electronic map.
8. A method of navigation, wherein the method comprises:
acquiring a navigation starting point position and a navigation end point position;
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 according to a map visual area to which the navigation starting point position and the navigation end point position belong together and the position of a preset point in the map visual area in the electronic map;
for each fragment of the at least one fragment, generating a place name picture corresponding to the fragment according to text information corresponding to the fragment, wherein the place name presented in the place name picture is related to the text information;
generating an electronic map in the map visual area according to the at least one fragment and the place name picture corresponding to the at least one fragment respectively;
and planning a navigation path from the navigation starting position to the navigation end position according to the electronic map in the map visual area.
9. The method of claim 8, wherein the base map layer is a remote sensing image.
10. The method of claim 8, wherein after planning a navigation path from the navigation start position to the navigation end position according to the electronic map in the map view area, the method further comprises:
displaying the electronic map and the navigation path in the map visual area;
and carrying out automatic driving control according to the navigation path.
11. 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-10.
12. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN202211415905.6A 2022-11-11 2022-11-11 Electronic map processing and navigation method, device, equipment and storage medium Active CN115451943B (en)

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 true CN115451943A (en) 2022-12-09
CN115451943B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116700939A (en) * 2023-08-08 2023-09-05 腾讯科技(深圳)有限公司 Map data processing method, device and system, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
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
US20050270299A1 (en) * 2004-03-23 2005-12-08 Rasmussen Jens E 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
US20210199444A1 (en) * 2019-12-30 2021-07-01 Gm Cruise Holdings Llc Dynamic map rendering
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
US20050270299A1 (en) * 2004-03-23 2005-12-08 Rasmussen Jens E 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
US20210199444A1 (en) * 2019-12-30 2021-07-01 Gm Cruise Holdings Llc Dynamic map rendering
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116700939A (en) * 2023-08-08 2023-09-05 腾讯科技(深圳)有限公司 Map data processing method, device and system, electronic equipment and storage medium
CN116700939B (en) * 2023-08-08 2024-03-15 腾讯科技(深圳)有限公司 Map data processing method, device and system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115451943B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US11132377B2 (en) Server implemented geographic information system with graphical interface
US9110573B2 (en) Personalized viewports for interactive digital maps
US9542723B2 (en) Architectures and methods for creating and representing time-dependent imagery
US20080109159A1 (en) Method of client side map rendering with tiled vector data
US20150178257A1 (en) Method and System for Projecting Text onto Surfaces in Geographic Imagery
US20070064018A1 (en) Detail-in-context lenses for online maps
EP1426876A1 (en) Geographical information system
US9123178B2 (en) Updating map tiles
CN112069285B (en) Map generation method and device based on three-dimensional high-precision map slice and electronic equipment
CN106611056B (en) Method and device for cutting three-dimensional simulation map
US20160116296A1 (en) Providing instant routing options
CN115451943B (en) Electronic map processing and navigation method, device, equipment and storage medium
EP3782037B1 (en) Off-viewport location indications for digital mapping
JP2003005632A (en) Map and photograph image delivery system and its client system
EP3488355A1 (en) Point of interest selection based on a user request
KR20130080163A (en) Method for displaying digital map in client and apparatus thereof
US20170011064A1 (en) Methods and Apparatus for Sending or Receiving an Image
KR100594598B1 (en) Method for constructing private gps geographic information by real-time update of geographic information
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
KR101662214B1 (en) Method of providing map service, method of controlling display, and computer program for processing thereof
US20160085427A1 (en) System and method of sharing spatial data
CN111966853A (en) Management method of remote sensing image
CN106776807B (en) Map display method and system and electronic equipment
JP2015034847A (en) Map displaying apparatus, program, system, and method for controlling reduction scale of map images according to distribution of objects

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