CN110019584B - Map data generation method, map display method, server and terminal - Google Patents

Map data generation method, map display method, server and terminal Download PDF

Info

Publication number
CN110019584B
CN110019584B CN201710763833.7A CN201710763833A CN110019584B CN 110019584 B CN110019584 B CN 110019584B CN 201710763833 A CN201710763833 A CN 201710763833A CN 110019584 B CN110019584 B CN 110019584B
Authority
CN
China
Prior art keywords
aoi
main
sub
scale level
scale
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
Application number
CN201710763833.7A
Other languages
Chinese (zh)
Other versions
CN110019584A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710763833.7A priority Critical patent/CN110019584B/en
Publication of CN110019584A publication Critical patent/CN110019584A/en
Application granted granted Critical
Publication of CN110019584B publication Critical patent/CN110019584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The embodiment of the invention provides a map data generation method, a map display method, a server and a terminal, wherein the map data generation method comprises the following steps: defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is; after the base map displays a first scale grade of a main AOI name label of a main AOI of a set place, judging whether a display range of a sub-AOI of a sub-place of the set place can accommodate the sub-AOI name label of the sub-AOI or not by scale grade; if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed by the sub-AOI name label as the second scale grade to obtain first information; and writing the first information into the map data. The embodiment of the invention can improve the identification clarity of the sub-area in the AOI and provide possibility for improving the display effect of the map.

Description

Map data generation method, map display method, server and terminal
Technical Field
The invention relates to the technical field of maps, in particular to a map data generation method, a map display method, a server and a terminal.
Background
The map is widely applied in the fields of navigation and the like, the map data is used as the basis of map display, the map data is generated by a reasonable and accurate scheme, and the method has important significance for improving the display effect of the map when the map is applied in the fields of navigation and the like.
The base map is used as a basic frame of the map, and information displayed by the base map can be gradually refined in the process of amplifying the base map according to the scale, so that an important task of generating map data is how to set necessary information displayed by the base map on different scales; for example, a scale corresponding to the display Of POI (Point Of Interest), AOI (Area Of Interest), AOI name labels on the base map is set.
After the base map is enlarged along with a scale, the AOI is enlarged along with the base map, the sub-area surface with a smaller range in the AOI is displayed on the base map (for example, the sub-area surface such as a college dining hall is displayed in the AOI of a university in the process that the AOI of a university is enlarged along with the scale on the base map), and the sub-area surface in the AOI has an important significance for layout refinement display of the AOI, so that the sub-area surface in the AOI is very necessary to be identified. However, under what conditions, the sub-area in the AOI is identified to improve the identification clarity of the sub-area in the AOI, so that the possibility of improving the display effect of the map is provided, and the problem that needs to be considered when generating map data by a person skilled in the art becomes.
Disclosure of Invention
In view of this, embodiments of the present invention provide a map data generation method, a map display method, a server and a terminal, so as to identify a sub-area in AOI in map data, improve the identification clarity of the sub-area in AOI, and provide a possibility for improving the display effect of a map.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a map data generation method, comprising:
defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
after the base map displays a first scale grade of a main AOI name label of a main AOI of a set place, judging whether a display range of a sub-AOI of a sub-place of the set place can contain the sub-AOI name label of the sub-AOI or not by scale grade;
if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed at the beginning of the sub-AOI name label as the second scale grade to obtain first information;
and writing the first information into map data.
The embodiment of the invention also provides a map display method, which comprises the following steps:
loading map data;
amplifying the base map step by step according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment on the base map is;
according to first information in map data, if the current scale level is determined to reach a second scale level, displaying sub-AOI name labels of the sub-AOI in a display range of the sub-AOI in a sub-place of a set place; and the second scale level is the scale level at which the display range of the sub-AOI can initially accommodate the sub-AOI name label.
An embodiment of the present invention further provides a server, including:
the scale grade defining module is used for defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
the first judging module is used for judging whether the display range of the sub-AOI of the sub-site of the set site can accommodate the sub-AOI name label of the sub-AOI or not in a scale level by scale level after the base map displays the first scale level of the main AOI name label of the main AOI of the set site;
a first information obtaining module, configured to, if starting from a second scale level, a display range of the sub-AOI can accommodate a sub-AOI name label of the sub-AOI, and set the scale level at which the sub-AOI name label starts to be displayed as the second scale level, to obtain first information;
and the first information write-back module is used for writing the first information into the map data.
An embodiment of the present invention further provides a terminal, including:
the map data loading module is used for loading map data;
the base map amplifying module is used for amplifying the base map step by step according to the scale grade of the base map, and the higher the scale grade is, the larger the corresponding line segment length of the solid line segment on the base map is;
the first display module is used for displaying sub-AOI name labels of the sub-AOI in the sub-places of the set place in the display range of the sub-AOI if the current scale level is determined to reach the second scale level according to the first information in the map data; and the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label.
An embodiment of the present invention further provides a server, including: a memory storing an executable program for:
defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
after the base map displays a first scale grade of a main AOI name label of a main AOI of a set place, judging whether a display range of a sub-AOI of a sub-place of the set place can contain the sub-AOI name label of the sub-AOI or not by scale grade;
if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed by the sub-AOI name label as the second scale grade to obtain first information;
and writing the first information into map data.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a program, the program is suitable for a processor of a server to perform loading execution, and the program is configured to:
defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
after the base map displays a first scale grade of a main AOI name label of the AOI of a set place, judging whether a display range of a sub-AOI of a sub-place of the set place can accommodate the sub-AOI name label of the sub-AOI or not by scale grade;
if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed by the sub-AOI name label as the second scale grade to obtain first information;
and writing the first information into the map data.
An embodiment of the present invention further provides a terminal, including: a memory storing an executable program for:
loading map data;
amplifying the base map step by step according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment on the base map is;
according to first information in the map data, if the current scale level is determined to reach a second scale level, displaying sub-AOI name labels of the sub-AOI in the display range of the sub-AOI of the sub-site of the set site; and the second scale level is the scale level at which the display range of the sub-AOI can initially accommodate the sub-AOI name label.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a program, the program is suitable for a processor of a terminal to perform loading execution, and the program is configured to:
loading map data;
amplifying the base map step by step according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
according to first information in the map data, if the current scale level is determined to reach a second scale level, displaying sub-AOI name labels of the sub-AOI in the display range of the sub-AOI of the sub-site of the set site; and the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label.
Based on the technical scheme, the map data generation method provided by the embodiment of the invention can define the scale grade of the base map, and the base map can be amplified step by step along with the scale grade; after the base map displays the first scale level of the main AOI name label of the main interest surface AOI of the set place, the embodiment of the invention can judge whether the display range of the sub-AOI of the sub-place of the set place can accommodate the sub-AOI name label of the sub-AOI or not by scale levels, so that the scale level of the sub-AOI name label which can accommodate the sub-AOI at the beginning of the display range of the sub-AOI is determined as the second scale level, and the map data is generated by setting the scale level of the sub-AOI name label which is displayed at the beginning of the sub-AOI name label as the second scale level, so that the base map can identify the sub-AOI at the proper scale level in the process of amplifying along with the scale level, the sub-AOI is identified in the mode of displaying the sub-AOI name label, the identification clarity of the sub-area in the AOI is improved, and the display effect of the map is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a map data generation method according to an embodiment of the present invention;
FIG. 2 is a schematic view of the base map, enlarged in scale;
fig. 3 is another flowchart of a map data generation method according to an embodiment of the present invention;
FIG. 4 is another schematic view of the base map at a scale magnification;
FIG. 5 is a flowchart of a method for determining whether the display range of the sub-AOI can accommodate the sub-AOI name label;
FIG. 6 is a further flowchart of a map data generating method according to an embodiment of the present invention;
FIG. 7 is a flowchart of a method for determining the location of each primary AOI name label;
FIG. 8 is a schematic diagram illustrating the determination of the location of each primary AOI name label;
FIG. 9 is a schematic diagram of avoidance for a new main AOI name label and a sub-AOI name label;
fig. 10 is a flowchart of a map data generation method according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of different adjacent AOI of the same type rendered using different colors;
fig. 12 is a flowchart of a map display method according to an embodiment of the present invention;
fig. 13 is another flowchart of a map display method according to an embodiment of the present invention;
FIG. 14 is a flowchart of a map displaying method according to an embodiment of the present invention;
fig. 15 is a block diagram of a server according to an embodiment of the present invention;
fig. 16 is another block diagram of a server according to an embodiment of the present invention;
fig. 17 is a further block diagram of a server according to an embodiment of the present invention;
FIG. 18 is a block diagram of a hardware configuration of a server;
fig. 19 is a block diagram of a terminal according to an embodiment of the present invention;
fig. 20 is another block diagram of a terminal according to an embodiment of the present invention;
fig. 21 is a block diagram of another structure of the terminal according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The map data generation method provided by the embodiment of the invention can be applied to a server (such as a map server), and the server performs map making and map data generation; the terminal can realize map display on the terminal side based on the map data by loading the map data generated by the server.
In order to make the map data generation method provided by the embodiment of the present invention described later more understandable, the following describes related concepts related to the embodiment of the present invention:
a main POI (Point Of Interest) is associated with a POI at a certain set Point in the base map (e.g., an important Point with a large area range set in the base map), and the set Point is labeled by the POI, for example, a university, a residential district, an industrial park, and other set points with a large area range in the base map are associated with POIs; the main POI referred to herein may be understood as a POI that marks a set point of a university, a residential district, an industrial park, or the like in the base map, which has a large area;
the sub-POIs are subordinate to the main POI, one main POI can correspond to a plurality of subordinate sub-POIs, and the sub-POIs can be understood as POIs for labeling sub-places inside the marked place of the main POI; for example, after the place of the university of Qinghua is labeled by the main POI, the subsidiary middle school of the university of Qinghua as a sub-place in the university of Qinghua can be labeled by the sub-POI subordinate to the main POI; namely, the POI labeling the subsidiary middle school of the university of Qinghua can be regarded as a sub-POI of the main POI labeling the university of Qinghua; in the embodiment of the invention, in the process of amplifying the base map along with the scale, the main POI is displayed firstly, and then the sub POI subordinate to the main POI is displayed on the base map along with the amplification of the scale;
the method comprises the following steps that (1) a main AOI (Area Of Interest, an AOI refers to a regional geographic entity with a contour in a base map, the base map is generally called a named Area, and in the process that the base map is amplified along with a scale, the Area Of the AOI is gradually amplified, so that the Area information in the AOI is displayed more clearly; the main AOI may consider that an area plane corresponding to a set place, for example, a place of the university of qinghua, corresponds to a main POI, and an area plane corresponding to a base map of the university of qinghua may be referred to as a main AOI;
the sub-AOI is a sub-AOI of the main AOI in the sub-area corresponding to the sub-location in the main AOI, for example, the sub-area corresponding to the base map in the subsidiary middle school of Qinghua university; after the main AOI is displayed, along with the process that the base map is amplified according to a scale, the outline area of the sub AOI is also amplified;
marking the AOI name, namely displaying the name of the area surface on the area surface of the AOI, wherein the AOI name is marked to be a pure character style generally; the embodiment of the invention can be divided into main AOI name marking and sub-AOI name marking, namely the main AOI name marking is the name marking of the main AOI, and the sub-AOI name marking is the name marking of the sub-AOI.
It should be noted that, where the condition allows, each AOI should be able to calculate the corresponding AOI label. Except for the difference of the character names among the AOI labels, the biggest difference is the place type represented by the AOI; the AOI indicates location categories such as: schools, communities, hospitals, scenic spots, and the like.
In the embodiment of the present invention, some set locations with a large area range may be represented by a main POI, and the main POI may be associated with a main AOI of the set location, and an area plane of the set location is represented by the main AOI, a sub-location in the set location may be represented by a sub-POI subordinate to the main POI, and a sub-area plane of the sub-location may be represented by a sub-AOI included in the main AOI; and then, the relationship between the sub-AOI and the main AOI can be determined through the association relationship between the main POI and the main AOI and the association relationship between the sub-POI and the sub-AOI, for example, the main AOI of the university of Qinghua is the main area surface of the sub-AOI of the affiliated university of Qinghua university.
Fig. 1 is a flowchart of a map data generation method provided in an embodiment of the present invention, where the map data generation method is applicable to a server, such as a map server, and referring to fig. 1, the method may include:
s100, defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is.
The scale of the base map is a ratio of the length of the unit line segment to the length of the solid line segment on the base map, and the scale of the base map may indicate a degree of reduction of the base map.
The scale of the base map may have multiple levels, such as a 2 kilometer (kilometer) level (one centimeter line length on the base map corresponds to a 2 kilometer line length in the field), a 500 meter level (one centimeter line length on the base map corresponds to a 500 meter line length in the field), a 200 meter level (one centimeter line length on the base map corresponds to a 200 meter line length in the field), and so forth; the scale levels of the base map are only exemplary, and the setting of the scale levels of the base map may be different according to the manufacturing requirements of the base map, and may be determined according to the actual situation.
Optionally, the base map may be enlarged step by step according to the scale level of the base map, so that the length of the solid line segment on the base map is increased, that is, the range of the base map in the area displayed on the screen is enlarged; the higher the scale level of the base map is, the larger the corresponding line segment length of the solid line segment length on the base map is, and the higher the enlargement degree of the base map in the range of the area displayed on the screen is; therefore, the base map is enlarged step by step according to the scale level of the base map, so that the base map is enlarged along with the scale level, and the range of the area displayed on the screen by the base map is enlarged.
Step S110, after the first scale level, determining, by scale level, whether the display range of the sub-AOI of the sub-location in the set location can accommodate the sub-AOI name label of the sub-AOI.
Alternatively, the first scale level may be a scale level to which a base map shows a primary AOI name label of the primary AOI of the set location.
In the process of amplifying the bottom map, the bottom map displays the main POI of the set place; after the main POI of the set place is displayed on the bottom map, the scale of the bottom map is further enlarged step by step, and the main AOI of the set place is displayed on the bottom map; after the main AOI of the set place is displayed on the base map, the scale of the base map is enlarged step by step, and the name label of the main AOI is displayed on the base map;
as shown in fig. 2, for the urban base map of beijing, under a smaller scale (the solid line length is smaller than the corresponding line length on the base map), the base map can display the major administrative regions of beijing (for example, under a scale of 10 km, the base map can display the major administrative regions of beijing, such as the hail region, the western region, the mountain region, and the like);
in the process of amplifying the base map step by step according to the scale level (in the process of amplifying the base map step by step, the corresponding line length of the solid line length on the base map is gradually increased), the Beijing urban base map is amplified, a main POI of a set place in Beijing City (for example, under the level of 2 kilometers of the scale, the base map can display a main POI of the set place of Qinghua university) can be displayed on the base map, then a main AOI of the set place (for example, under the level of 1 kilometer of the scale, the base map can display a main AOI of the set place of Qinghua university) can be displayed on the base map, and then the base map is amplified by step, and then a main AOI name label of the main AOI of the set place can be displayed (for example, under the level of 200 kilometers of the scale, the base map can display a main AOI name label of the main AOI of the set place of Qinghua university);
optionally, when the base map displays the main AOI name label of the main AOI at the set location, the main AOI has a larger screen enlargement range, and at this time, the sub-POIs of some important sub-locations (which can be set in advance) in the set location can be displayed synchronously, as shown in fig. 2, the sub-POIs of some set sub-locations (such as the qing hua lotus pond, the qing hua university department sports history research center, and the like) in the qing hua university can be displayed at the level of the scale of the main AOI name label of the main AOI at the base map.
Optionally, since the number of the sub-POIs may be large, it may be set that the location type of the sub-POI displayed in synchronization with the main AOI name label may be the same as the location type of the main POI, that is, for the sub-POI of the sub-location having the same location type as the set location, the sub-POI may be preferentially displayed in synchronization with the main AOI name label; when the main AOI name of the main AOI is marked and displayed, sub POIs of some sub-sites can be synchronously displayed, and sub POIs of other sub-sites can be displayed at a higher scale level; at this time, the sub-POIs can be classified, for example, the main AOI of the university of qinghua, and the sub-POIs of a teaching building, an office building, a research institute and the like can be synchronously displayed with the main AOI label.
Optionally, when the base map displays the primary AOI name label of the primary AOI of the set location, the primary POI of the set location may not be displayed.
The corresponding contents in the above part of fig. 2 are only exemplary descriptions, so as to facilitate understanding of the process of enlarging the base map along with the scale level, the base map displays the contents labeled from the main POI to the main AOI name of the set location;
optionally, the scale level displayed by the main POI in the set location may be preset, and the scale levels displayed by the main POI in different set locations may be different, and may be set according to the importance degree and the actual situation of the set location;
optionally, the scale level displayed by the main AOI at the set location may be preset, and the scale level displayed by the main AOI at the set location is higher than the scale level displayed by the main POI at the set location (that is, in the process of gradually enlarging the base map according to the scale level, the display of the main AOI at the set location is later than the main POI), and the scale levels displaying the main AOI at different set locations may be different, and may be set according to the importance degree and the actual situation of the set location.
After the base map displays the main AOI name label of the main AOI of the set place, the base map is enlarged step by step, the sub POI and the sub AOI of the sub-place of the set place are displayed in the base map, and in order to enable the sub AOI of the sub-place in the main AOI to be identified more clearly, the sub AOI name label is considered to be used for labeling the sub AOI (sub area surface) of the sub-place in the embodiment of the invention; and at what scale level to start with, displaying the sub-AOI name label of the sub-AOI of the sub-site on the base map becomes a problem to consider.
According to the embodiment of the invention, after the base map is set to display the first scale level marked by the main AOI name of the main AOI in the set place, at each scale level behind the first scale level, whether the sub-AOI in the sub-place of the set place can accommodate the sub-AOI name marking of the sub-AOI in the display range of the screen is calculated by scale levels;
optionally, to determine the display range of the sub-AOI on the screen, the embodiment of the present invention may involve converting the geographic coordinates of the sub-AOI on the base map into screen pixel coordinates, where, because the ratio of the length of the unit line segment on the base map, which is represented by the scales of different levels, to the length of the corresponding line segment in the field is different, the screen pixel coordinates obtained by converting the sub-AOI on the scales of different levels are also different, which also makes the display range of the sub-AOI on the screen different on the scales of different levels;
the sub-AOI name label of the sub-AOI can be regarded as the display range of a character string, and the range of the sub-AOI name label is mainly determined by the size and the font of the character adopted by the sub-AOI name label;
after the display range of the sub-AOI on the screen under the scales of different levels and the display range of the sub-AOI name label are determined, the display range of the sub-AOI on the screen under the scales of different levels and the display range of the sub-AOI name label can be matched, so that whether the display range of the sub-AOI of the sub-site of the set site can accommodate the sub-AOI name label of the sub-AOI is judged by scale levels.
Step S120, if the display range of the sub AOI can contain the sub AOI name label of the sub AOI from the second scale grade, the scale grade displayed by the sub AOI name label is set as the second scale grade, and the first information is obtained.
The second scale level may be a scale level at which display of sub-AOI name labels of the sub-AOI starts on the base map, after the first scale level at which display of the main AOI name label of the main AOI of the set location starts on the base map is set, whether the display range of the sub-AOI of the sub-location of the set location matches with the display range of the sub-AOI name labels of the sub-AOI may be determined scale level by scale level, and when it is determined for the first time that the display range of the sub-AOI matches with the display range of the sub-AOI name labels of the sub-AOI at a certain scale level, the scale level determined for the first time may be determined as the second scale level, so that the scale level at which display of the sub-AOI name labels starts is set as the second scale level to obtain the first information; here, the first information is used to indicate setting information for setting the scale level at which the sub-AOI name label starts to be displayed as the second scale level.
And step S130, writing the first information into the map data.
After the first information is written into the map data, the map data is loaded to the terminal, and when the terminal calls the map data to display a base map, the sub-AOI names of the sub-AOI are marked in the display range of the sub-AOI to be displayed when the scale level of the base map is enlarged to a second scale level according to the first information, so that the sub-AOI names are marked in the second scale level to the highest scale level to be displayed, and the sub-AOI is marked and identified on the base map through the displayed sub-AOI names.
The map data generation method provided by the embodiment of the invention comprises the following steps: defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is; after the first scale level, judging whether the display range of the sub-AOI of the sub-site of the set site can accommodate the sub-AOI name label of the sub-AOI or not by the scale level; when the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from the second scale level, setting the scale level displayed by the sub-AOI name label as the second scale level to obtain the first information; by writing the first information back to the map data, the terminal can mark the sub-AOI in a mode of displaying the sub-AOI name label when performing base map display based on the map data at the level of the second scale, and the mark clarity of the sub-area surface in the AOI is improved.
According to the map data generation method provided by the embodiment of the invention, the scale grade of the base map can be defined; after the base map displays the first scale level of the main AOI name label of the main interest surface AOI of the set place, the embodiment of the invention can judge whether the display range of the sub-AOI of the sub-place of the set place can accommodate the sub-AOI name label of the sub-AOI or not by scale levels, so that the scale level of the sub-AOI name label which can accommodate the sub-AOI at the beginning of the display range of the sub-AOI is determined as the second scale level, and the map data is generated by setting the scale level of the sub-AOI name label which is displayed at the beginning of the sub-AOI name label as the second scale level, so that the base map can identify the sub-AOI at the proper scale level in the process of amplifying along with the scale level, the sub-AOI is identified in the mode of displaying the sub-AOI name label, the identification clarity of the sub-area in the AOI is improved, and the display effect of the map is improved.
It should be noted that, the sub-location pointed by step S110 shown in fig. 1 may be associated with a sub-POI, and for the sub-location associated with the sub-POI, the sub-POI of the sub-location may be displayed while the base map displays the main AOI name label, or the sub-POI of the sub-location is displayed first in the process of scaling up the base map; then, displaying the child AOI of the child site; determining the scale grade of sub-AOI name marking display of the sub-AOI of the sub-site in the modes of step S110 and step S120;
in some cases, the sub-site pointed by step S110 shown in fig. 1 may not be associated with a sub-POI, and for the sub-site not associated with the sub-POI, the bottom graph may display the name label of the main AOI, and the bottom graph displays the sub-AOI of the sub-site first in the process of scaling up; determining the scale level of sub-AOI name marking display of the sub-AOI of the sub-site in the manner of step S110 and step S120;
for the sub-site associated with the sub-POI, the embodiment of the invention can mark the sub-site by using the sub-POI, and can mark the sub-site by using the sub-AOI name of the sub-AOI after the base map is amplified in scale level by scale level, so that the mark of the sub-area in the main AOI is clearer; for the sub-sites not associated with the sub-POIs, after the base map is amplified by the scale levels, the embodiment of the invention can start to mark the sub-AOI with the sub-AOI name label at the second scale level capable of accommodating the sub-AOI name label in the display range of the sub-AOI, so that the identification clarity of the sub-area surface in the main AOI is improved.
Optionally, as an optional manner, in the process of amplifying the base map along with the scale level, the main POI, the main AOI name label (a sub-POI of an important sub-location can be synchronously displayed), the sub-POI, the sub-AOI, and the sub-AOI name label (in a case that the sub-AOI is associated with the sub-POI) of the set location can be displayed in sequence; the display information successively indicates that the scale level of the information displayed later is higher than that of the information displayed earlier (the higher the scale level is, the smaller the solid line segment length corresponding to the line segment length of the base map is);
optionally, fig. 3 shows another flowchart of a map data generation method provided in an embodiment of the present invention, where the method is applicable to a server, such as a map server, and referring to fig. 3, the method may include:
and S200, defining the scale level of the base map, and setting the scale level of the main POI and the main AOI on the base map display set place, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI.
In the process of enlarging the base map step by step according to the scale level of the base map so that the base map is enlarged according to the scale level, the base map may first display the main POI of the set location, and then display the main AOI of the set location after being enlarged to a certain level at the scale level (for example, the corresponding part of fig. 2).
Optionally, the scale level displayed by the main POI in the set location and the scale level displayed by the main AOI may be set according to actual conditions and written into the map data, but the scale level displayed by the main AOI in the set location should be higher than the scale level displayed by the main POI.
Step S210, judging whether the display range of the main AOI can contain the main AOI name label of the main AOI or not by scale grade.
After the scale grade displayed by the main AOI, the embodiment of the invention can judge whether the display range of the main AOI can accommodate the name marking of the main AOI or not by the scale grade.
Step S220, if the display range of the main AOI can contain the name label of the main AOI from the first scale level, setting the scale level displayed by the name label of the main AOI as the first scale level to obtain second information, and writing the second information into map data.
In the process of judging whether the display range of the main AOI can accommodate the main AOI name label or not according to the scale grades, determining the scale grade which can accommodate the main AOI name label from the display range of the main AOI as a first scale grade, and setting the scale grade which is displayed at the beginning of the main AOI name label as the first scale grade (namely the scale grade displayed by the main AOI name label is from the first scale grade to the highest scale grade) to obtain second information; by writing the second information into the map data, the terminal can start to display the main AOI name label in the main AOI when the scale level of the base map reaches the first scale level in the process of map display based on the map data.
It will be appreciated that the first scale level should be higher than the scale level displayed by the primary AOI.
Alternatively, the main POI avoidance may be set to not be displayed after the main AOI name label is displayed (i.e., starting at the first scale level).
And step S230, setting the scale level not lower than the first scale level, and displaying the sub POI of the sub point of the set point.
The scale level of the sub-POI display of the sub-site may be higher than or equal to the first scale level; the specific scale level of the sub-POI display of each sub-site can be set according to actual conditions.
Step S240, judging whether the display range of the sub-AOI associated with the sub-POI can accommodate the sub-AOI name label of the sub-AOI or not by scale level.
Alternatively, fig. 3 shows a case where the sub-AOI is associated with a sub-POI, but in a case where the sub-AOI is not associated with a sub-POI, it may be determined whether the sub-AOI is displayed and the display range of the sub-AOI can accommodate the sub-AOI name label after the main AOI name label is displayed in the base diagram.
Step S250, if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from the second scale level, setting the scale level on which the sub-AOI name label starts to be displayed as the second scale level to obtain the first information.
And step S260, writing the first information into map data.
At the same time, it may be set to start at the second scale level, and the sub-POIs of the sub-location are no longer displayed.
As an alternative example, in the case that a sub-AOI is associated with a sub-POI, fig. 4 shows an alternative illustration of the base diagram showing the main POI to sub-AOI name labels; as shown in fig. 4, during the enlargement of the base map along with the scale, at the scale of 2 km on the scale, the base map may display the master POI of the designated place of the university of qinghua; the base map is enlarged according to the scale level, and the base map can display the main AOI of the set place of Qinghua university under the scale level of 1 kilometer; amplifying the base map by scale level, wherein the base map can display the main AOI name label of the main AOI of the set place of Qinghua university and the sub-POIs (such as subsidiary student POIs of Qinghua university) of some important sub-places under the scale level of 200 m, and the main POI is avoided and not displayed any more (the scale level is started, the display range of the main AOI can contain the main AOI name label, and the subsequent high scale level can maintain the display of the main AOI name label);
and amplifying the base map by scale grade, judging a sub AOI surface associated with the sub POI of the subsidiary middle school of the Qinghua university in the base map at the scale grade of 100 meters, and starting to accommodate the sub AOI name label of the subsidiary middle school of the Qinghua university, so that the sub AOI name label of the subsidiary middle school of the Qinghua university is started to be displayed on the sub AO at the scale grade of 100 meters, and the sub POI is set to avoid and not to be displayed.
Optionally, to determine the display range of the sub-AOI on the screen, an embodiment of the present invention may involve the conversion of the geographic coordinates of the sub-AOI on the base map to the pixel coordinates of the screen, and fig. 5 illustrates an optional method for determining whether the display range of the sub-AOI can accommodate the name label of the sub-AOI, where the method may be applied to a server, and referring to fig. 5, the method may include:
and step S300, converting the geographical coordinates of the sub-AOI base map of the sub-site into screen pixel coordinates according to the current scale grade.
According to the embodiment of the invention, the conversion from the geographical coordinates of the sub-AOI in the base map of the sub-site to the screen pixel coordinates can be carried out at each scale level after the first scale level; (ii) a
Optionally, the current scale level may represent a solid line segment length corresponding to the current bottom line segment length, so that the screen pixel coordinate converted from each geographic coordinate of the sub-AOI in the bottom map may be determined according to the solid line segment length corresponding to the current bottom line segment length represented by the current scale level.
And S310, determining the display range of the sub-AOI on the screen according to the screen pixel coordinates.
Step S320, judging whether the display range of the sub-AOI on the screen is matched with the display range marked by the sub-AOI name of the sub-AOI, if so, executing step S330, and if not, executing step S340.
Optionally, the sub-AOI name is labeled as a string of character strings, and the display range of the sub-AOI name label can be determined according to the font size and font (such as font type) of the character used by the sub-AOI name label.
Optionally, the display range of the sub-AOI on the screen is matched with the display range of the sub-AOI name label, that is, the display range of the sub-AOI on the screen is not less than the display range of the sub-AOI name label.
And step S330, determining the current scale level as a second scale level.
Step S340, the process proceeds to the next scale, and the process returns to step S300.
Alternatively, the manner of determining the first scale level at which the primary AOI name label of the primary AOI begins to be displayed may be similar to that shown in fig. 5, and may be cross-referenced.
Further, the inventors of the present invention have also found that another problem in the map data generation process is: at a high-level scale, only one primary AOI label is displayed on the base map, and the primary AOI label is displayed at the center of the range of the primary AOI, while at the high-level scale, the display range of the amplified primary AOI is larger; when a user drags the base map, so that the display range of the screen is not in the center of the range of the main AOI displayed by the main AOI label, when the other non-range centers of the main AOI are displayed on the screen, the user cannot know whether the currently displayed range of the screen still belongs to the main AOI, and the difficulty of the user in identifying the main AOI range displayed on the screen is increased; therefore, the embodiment of the invention considers how to reduce the difficulty of the user in identifying the main AOI range displayed on the screen;
optionally, fig. 6 shows another flowchart of a map data generation method provided in an embodiment of the present invention, where the method is applicable to a server, and referring to fig. 6, the method may include:
step S400, starting from the setting of the scale grade below the first scale grade, determining the position of each main AOI name marked in the display range of the main AOI one by one; wherein the number of the main AOI name labels is at least two.
Optionally, the scale level set below the first scale level may be, for example, the next scale level of the first scale level, or the next second scale level of the first scale level, and the like, and may be specifically set according to an actual situation;
starting with setting a scale level below a first scale level, the embodiment of the present invention may label a primary AOI with a plurality of primary AOI name labels within a display range of the primary AOI; therefore, starting from the scale level set below the first scale level, the embodiment of the present invention may determine, on a scale level-by-scale level basis, the position of each main AOI name label within the display range of the main AOI, so as to set, in the map data, each scale level after the display of the main AOI name label is started, and the main AOI name label is at the position within the display range of the main AOI.
And step S410, marking the name of each main AOI at the position in the display range of the main AOI in each scale level starting from the lower set scale level to obtain third information.
After determining that each main AOI name is marked at a position within the display range of the main AOI in each scale level starting from the lower set scale level, the embodiment of the present invention may obtain third information, where the third information may indicate that each main AOI name is marked at a position within the display range of the main AOI in each scale level starting from the lower set scale level;
by writing the third information into the map data, the embodiment of the present invention can set the scale level below after the main AOI name label (first scale level) is displayed from the base map, and in each scale level at which the scale level is set below, the main AOI name label indicated in the third information is at a position within the display range of the main AOI, and the main AOI is identified using a plurality of main AOI name labels; therefore, the user can identify the main AOI range displayed on the screen through the main AOI name label displayed in the center of the range of the non-main AOI, and the difficulty of identifying the main AOI range displayed on the screen by the user is reduced.
And step S420, writing the third information into the map data.
Optionally, at each scale level starting from the scale level set below, the embodiment of the present invention may start from the main AOI name label displayed in the center of the range of the main AOI, and determine a position of a new main AOI name label surrounding the center of the range of the main AOI and within the range of the main AOI; and then respectively taking the position of each new main AOI name label determined at the last time as the center, and determining the position of the next determined new main AOI name label which expands outwards relative to the center of the range of the main AOI until the position of the determined new main AOI name label exceeds the display range of the main AOI, wherein the position of the next determined new main AOI name label surrounds the position of the last determined new main AOI name label.
Optionally, further, fig. 7 shows a flow of an optional method for determining a position of each primary AOI name label within a display range of the primary AOI, which is provided by an embodiment of the present invention, and the method is applicable to a server, and referring to fig. 7, the method may include:
s500, marking the name of the main AOI displayed in the center of the range of the main AOI as a center, and constructing a polygon according to a set side length; and taking the positions of the vertexes of the polygon in the display range of the main AOI as the positions marked by the names of the new main AOI around the range center of the main AOI respectively.
And step S510, marking the new main AOI name determined at the previous time as the center, constructing a polygon according to the set side length, and respectively taking the vertex of the polygon which is expanded outwards relative to the range center of the main AOI and is positioned in the display range of the main AOI as the position of each new main AOI name mark determined at the next time until the position of the new main AOI name mark exceeds the display range of the main AOI.
Optionally, the polygon may be a square, and the set side length may be set according to practical situations, such as 2 × density (density may be defined as 500 pixels); exemplarily, as shown in fig. 8, the embodiment of the present invention may start to expand with the main AOI name mark displayed in the center of the range of the main AOI as the center outwards, and determine the position of the new main AOI name mark within the display range of the main AOI; marking the new main AOI name as a central point, constructing a square with the side length of 2 × dense, and determining the position of the vertex, which is expanded outwards relative to the range center of the main AOI and is positioned in the display range of the main AOI, of the square as the position marked by the new main AOI name if the vertex of the square is in the display range of the main AOI and has a vertex expanded outwards relative to the range center of the main AOI; and recursion is carried out until the position of the determined new main AOI name label is beyond the display range of the AOI.
Further, the determined position of the new main AOI name label in the display range of the main AOI may be in the sub-AOI identified with the sub-AOI name label, and since the sub-AOI identified with the sub-AOI name label can perform area surface representation through the sub-AOI name label, the embodiment of the present invention can set the new main AOI name label in the sub-AOI identified with the sub-AOI name label to be deleted and not displayed any more.
As shown in fig. 9, after determining the position of each new primary AOI name label around the center of the range of the primary AOI within the display range of the primary AOI, the position of the new primary AOI name label above and to the left is found to be within the sub-AOI identified with the sub-AOI name label; the display priority of the sub-AOI name label at the same position can be set to be higher than that of the new main AOI name label, so that the new main AOI name label in the sub-AOI marked with the sub-AOI name label is deleted, and the sub-AOI name label is only displayed in the sub-AOI; that is, when a child AOI label is displayed in a child AOI, no new primary AOI name label may be displayed within that child AOI.
Optionally, when the base graph displays the main AOI name label and the sub-AOI name label at the same time, in order to enable the main AOI name label and the sub-AOI name label to be better distinguished by a user, the embodiment of the present invention may set display styles of the main AOI name label and the sub-AOI name label to be different, and if the main AOI name label is subjected to ashing processing to be distinguished from the display style of the sub-AOI name label, avoid confusion between the main AOI name label and the sub-AOI name label displayed by the base graph.
Further, the inventors of the present invention have also found that still another problem in the map data generation process is: after the base map displays the main AOI or the sub-AOI, because the display styles of the main AOI or the sub-AOI all use a uniform style, the boundaries of adjacent different main AOIs or sub-AOIs of the same type in the base map cannot be clearly displayed, and certain influence is brought to the display effect of the map.
Based on this, the embodiment of the invention can display the adjacent main AOI or sub-AOI of the same type in different modes, so that the adjacent different main AOI or sub-AOI of the same type in the main AOI or sub-AOI of the base map can be rendered by using different display modes, and the outlines of the adjacent different main AOI or sub-AOI of the same type are clearly shown;
alternatively, fig. 10 shows still another flowchart of a map data generation method, which is applicable to a server, and referring to fig. 10, the method may include:
and step S600, determining adjacent main AOIs or sub-AOIs of the same type.
Alternatively, the contiguous AOIs may be considered to be continuous range AOIs in the bottom graph, such as continuous range main AOIs in the bottom graph, or continuous range sub-AOIs in the bottom graph; adjacent primary AOIs of the same type may be considered to be contiguous primary AOIs of the same type in the base map; adjacent sub-AOIs of the same type can be considered as sub-AOIs of the same type with continuous ranges in the base graph; when the embodiment of the invention processes the pattern, only the main AOI is processed by the main AOI, and only the sub-AOI and the sub-AOI are processed.
Alternatively, the embodiment of the present invention may determine the neighboring primary AOI through a primary AOI adjacency list (recorded with primary AOIs with continuous range in the base map), and determine the neighboring sub-AOIs through a sub-AOI adjacency list (recorded with sub-AOIs with continuous range in the base map).
The types of AOI can be divided into: medical care (hospital), tourist attractions, educational schools, housing estate, etc.; the type of AOI can be determined by actual situation classification, and is not limited to the above description. The type of each primary AOI and sub-AOI may be predefined at the time of charting.
And step S610, setting the adjacent same type of main AOI or sub-AOI to use a plurality of display styles so as to enable the display styles of the adjacent same type of AOI to be different.
Optionally, multiple patterns may be used in the embodiments of the present invention, and after adjacent AOIs of the same type (primary AOI or sub-AOI) are determined, the multiple patterns may be used to render the adjacent AOIs of the same type, so that the display patterns of the adjacent AOIs of the same type are different.
Optionally, the multiple styles may be multiple rendering colors, for example, four colors may be used to perform adjacent rendering of different main AOIs or sub-AOIs of the same type (four-color principle for short); for example, as shown in fig. 11, in a certain residential area, there are a, B, C, D, and E5 cells, where the 5 cells are all adjacent in space and belong to adjacent AOIs of the same type (the 5 cells may correspond to 5 main AOIs, and may also be 5 sub-AOIs of the same type as the cell in one main AOI); if one color is used for rendering uniformly, different cells cannot be distinguished, so that different adjacent AOIs of the same type can be rendered and displayed by adopting different colors, so that different adjacent cells belonging to the same house cell type can be distinguished.
It should be noted that the above-described settings are all set in the map data, and belong to a part of map data generation.
As a preferred scheme, the embodiment of the present invention may set a scale level displayed by the main POI in the map data, and set a scale level displayed by the main AOI, where the scale level displayed by the main AOI is higher than the scale level displayed by the main POI;
after the scale grade displayed by the main AOI, judging whether the display range of the main AOI can accommodate the display range marked by the name of the main AOI or not by the scale grade;
when the display range of the main AOI is determined to be capable of containing the main AOI name label at the beginning of the first scale level, setting the scale level displayed by the main AOI name label to start from the first scale level (namely the scale level displayed by the main AOI name label is from the first scale level to the highest scale level), obtaining second information, and writing the second information back to map data; meanwhile, a sub POI which is displayed at the same scale level as the main AOI name is marked is set in the base map data, and the main POI starts to avoid at the first scale level and is not displayed any more;
starting at a scale level next to the first scale level (the scale level is higher the lower the scale level is), marking the main AOI by using a plurality of main AOI name labels in the range of the main AOI; determining the position of each main AOI name marked in the main AOI range according to the scale grades under the first scale grade to obtain third information, and writing the third information back to map data; at this time, the display level of the plurality of main AOI names can be set to be the next scale level of the first scale level until the highest scale level;
when there is a sub-POI and sub-AOI of a sub-site, the scale levels displayed by the sub-POI and sub-AOI may be set after the first scale level; then, judging whether the display range of the sub AOI can accommodate the sub AOI name label or not according to the scale grade;
if the fact that the display range of the sub-AOI can contain the sub-AOI name label is determined to be started from a second scale grade (the first scale grade is higher than the first scale grade), setting the scale grade displayed by the sub-AOI name label to be started from the second scale grade (the scale grade displayed by the sub-AOI name label is from the second scale grade to the highest scale grade), obtaining first information, and writing the first information back to map data; meanwhile, the sub POI is set to avoid from the second scale level and is not displayed any more;
and if the sub-AOI displaying the sub-AOI name label is just corresponding to the main AOI name label, setting the main AOI name label in the sub-AOI displaying the sub-AOI name label to avoid displaying.
According to the scheme, along with the amplification of the scale grade, the embodiment of the invention can gradually display the main POI, the main AOI name label (synchronously displaying the sub POI of the important sub-site and avoiding the main POI from being displayed any more), the plurality of main AOI name labels and the sub AOI, the sub AOI label (under the condition that the sub POI exists, avoiding the sub POI from being displayed any more) on the base map along with the increase of the scale grade;
further, a plurality of display patterns may be set for adjacent same-type main AOIs or sub-AOIs in the base map so that the display patterns of adjacent same-type AOIs are different.
According to the map data generation method provided by the embodiment of the invention, the scale grade of the sub-AOI name label which can be contained in the display range of the sub-AOI in the base map can be set as the scale grade of the sub-AOI name label which can be displayed, so that the sub-AOI can be identified in a mode of displaying the sub-AOI name label in the base map at the proper scale grade in the process of amplifying the base map along with the scale grade, the identification clarity of the sub-area in the AOI is improved, and the possibility is provided for improving the display effect of the map.
Furthermore, the embodiment of the invention can determine the relationship between the sub-AOI and the main AOI by setting the main and sub-POIs and the main and sub-AOI, and the association between the main POI and the main AOI and the association between the sub-POI and the sub-AOI, so that the display strategies of the main AOI and the sub-AOI are clear and the main and sub concepts are clear in the process of displaying the base map; the main AOI surface is displayed under a low-level scale through the setting of the main sub-AOI, and when the main sub-AOI surface is enlarged to a high-level scale, the sub-AOI surface is displayed, so that clear layering can be provided for a user, and misleading to the user is reduced.
Further, the embodiment of the present invention may use multiple primary AOI name labels to perform the identification of the primary AOI at different positions within the primary AOI range, so that when the screen display range is not located at the center of the primary AOI range, the user may also recognize the range of the primary AOI displayed on the screen through the primary AOI name labels displayed at other positions of the primary AOI range, thereby reducing the difficulty of the user in recognizing the primary AOI range displayed on the screen.
Furthermore, the embodiment of the invention can use different styles to render the adjacent main AOI or sub-AOI of the same type, so that the boundaries of the adjacent main AOI or sub-AOI of the same type in the base map can be well distinguished, and the display effect of the map is improved.
The map display method provided by the embodiment of the invention is introduced below, and the map display method described below can be applied to a terminal; optionally, the terminal may load the map data generated by the server by installing a map APP (application program), and perform map display.
Optionally, fig. 12 is a flowchart illustrating a map display method provided in an embodiment of the present invention, where the method is applicable to a terminal, and referring to fig. 12, the method may include:
and step S700, loading map data.
Optionally, the map data may be a base map as a basic frame, and the base map is provided with different scale levels; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is when the base map is displayed; the map data may also have recorded therein information displayed on the base map at different scale levels.
And step S710, gradually amplifying the base map according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is.
Optionally, the map data may record an enlarged relationship of the base map at different scale levels; and when the base map is amplified step by step according to the scale level of the base map, gradually amplifying the display information of the base map, and displaying the main POI and the main AOI of the set place on the base map in sequence, wherein the name of the main AOI is labeled.
Step S720, according to the first information in the map data, if the current scale level is determined to reach a second scale level, displaying the sub-AOI name label of the sub-AOI in the display range of the sub-AOI of the sub-site of the set site; and the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label.
Optionally, the scale levels displayed by the sub-AOI name labels may start from the second scale level up to the highest scale level.
According to the embodiment of the invention, in the process of generating map data, first information can be written in the map data, wherein the first information represents the scale level of the display range of the sub-AOI which can accommodate the sub-AOI name label of the sub-AOI; after the base map displays the main AOI name label of the main AOI of the set place, the base map is amplified by scale levels, if the current scale level is detected to reach a second scale level, the sub-AOI name label of the sub-AOI can be displayed in the display range of the sub-AOI of the sub-place of the base map; the sub-AOI is identified in a mode of displaying sub-AOI name labels, identification clarity of sub-area surfaces in the AOI is improved, and possibility is provided for improving display effect of the map.
Optionally, fig. 13 shows another flowchart of the map display method provided in the embodiment of the present invention, in the method shown in fig. 13, during the process that the base map is enlarged along with the scale level, a main POI, a main AOI name label (a sub-POI which is an important sub-location can be synchronously displayed), a sub-POI, a sub-AOI, and a sub-AOI name label (a sub-AOI is associated with a sub-POI) of a set location can be sequentially displayed;
the method shown in fig. 13 is applicable to a terminal, and referring to fig. 13, the method may include:
and step S800, loading map data.
Step S810, amplifying the base map step by step according to the scale grade of the base map; and displaying the main POI and the main AOI of the set place on a base map according to the scale levels of the main POI and the main AOI of the set place, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI.
In the process of amplifying the base map along with the scale level, according to the setting of map data, the base map can display the main POI of a set place firstly, and then display the main AOI; and the primary AOI displays a higher scale level than the primary POI displays.
Step S820, according to second information in the map data, if it is determined that the current scale level reaches the first scale level, displaying a main AOI name label in a display range of the main AOI; and the first scale level is the scale level at which the display range of the primary AOI can accommodate the primary AOI name label.
According to the embodiment of the invention, in the process of generating the map data, second information can be written in the map data, wherein the second information represents the scale level of the display range of the main AOI which can accommodate the name label of the main AOI; after the base map displays the main AOI of the set place, the base map is amplified in scale levels, and if the fact that the current scale level reaches a first scale level is detected, the name marking of the main AOI can be displayed within the display range of the main AOI of the base map;
optionally, the scale level displayed by the primary AOI name label may start from the first scale level up to the highest scale level.
Alternatively, the first scale level may be higher than the scale level displayed by the primary AOI.
Step S830, according to the first information in the map data, if it is determined that the current scale level reaches a second scale level, starting to display sub-AOI name labels of the sub-AOI in the display range of the sub-AOI of the sub-site of the set site; and the second scale grade is the scale grade at which the display range of the sub-AOI can accommodate the sub-AOI name label, and the second scale grade is higher than the first scale grade.
Optionally, the terminal may start at the first scale level according to the setting of the map data, so that the main POI is no longer displayed;
optionally, the terminal may further display the sub-POI of the sub-location of the set location at a scale level not lower than the first scale level according to the setting of the map data;
optionally, the terminal may further start at the second scale level according to the setting of the map data, so that the sub-POI of the sub-location is no longer displayed.
Optionally, in the process of displaying the map, the embodiment of the present invention further uses a mode of labeling the names of the multiple main AOIs within the main AOI range, so as to reduce the difficulty of the user in identifying the main AOI range;
optionally, fig. 14 shows another flowchart of a map display method provided in an embodiment of the present invention, where the method is applicable to a terminal, and referring to fig. 14, the method may include:
step S900, starting from the scale level set below the first scale level, determining the position of each main AOI name marked in the display range of the main AOI in each scale level starting from the scale level set below according to third information in the map data; wherein the number of the primary AOI name labels is at least two.
Optionally, in a process of generating map data, in the embodiment of the present invention, third information may be written in the map data, where the third information may indicate that, starting from a scale level set below the first scale level, in each scale level, each primary AOI name is marked at a position within a display range of the primary AOI.
Step S910, at each scale level starting from the lower set scale level, displaying each main AOI name label in the display range of the main AOI according to the position of each corresponding main AOI name label in the display range of the main AOI recorded by the third information.
And setting any scale grade starting from the scale grade (for example, any scale grade starting from the next scale grade of the first scale grade), wherein the terminal can mark the position of each main AOI name in the display range of the main AOI according to the current scale grade recorded in the third information, and display each main AOI name mark in the display range of the main AOI, so that the main AOI range is identified by adopting a multi-main-AOI name mark mode in the main AOI range, and the difficulty of identifying the main AOI range by a user is reduced.
Optionally, the terminal may further enable, according to the setting of the map data, the new main AOI name label in the sub-AOI identified with the sub-AOI name label to be not displayed any more.
Optionally, the terminal may further make the display styles of the main AOI name label and the sub AOI name label different when the base map simultaneously displays the main AOI name label and the sub AOI name label according to the setting of the map data.
Optionally, in order to make the boundary of adjacent different main AOIs or sub-AOIs of the same type in the base map clearer so as to reduce the confusion of users, the terminal may further use multiple display styles for the adjacent main AOIs or sub-AOIs of the same type according to the setting of the map data, so that the display styles of the adjacent AOIs of the same type are different.
In the following, the server provided in the embodiment of the present invention is described, and the server described below may be considered as a program module that is required by the server to implement the map data generation method provided in the embodiment of the present invention. The contents of the server described below may be referred to in correspondence with the contents of the method described above.
Fig. 15 is a block diagram of a server according to an embodiment of the present invention, and referring to fig. 15, the server may include:
a scale level defining module 100 for defining a scale level of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
the first judging module 110 is configured to, after the base map displays a first scale level of a main AOI name label of an AOI of a set location, judge, by scale level, whether a display range of a sub-AOI of a sub-location of the set location can accommodate the sub-AOI name label of the sub-AOI;
a first information obtaining module 120, configured to, if starting from a second scale level, a display range of the sub-AOI can accommodate the sub-AOI name label of the sub-AOI, and set the scale level at which the sub-AOI name label starts to be displayed as the second scale level, to obtain first information;
the first information write-back module 130 is used for writing the first information into the map data.
Optionally, the first determining module 110 is configured to determine, in a scale-by-scale manner, whether the display range of the sub-AOI of the sub-location of the set location can accommodate the sub-AOI name label of the sub-AOI, and specifically includes:
converting the geographical coordinates of the sub-AOI of the sub-site in the base map into screen pixel coordinates according to the current scale grade;
determining the display range of the sub-AOI on a screen according to the screen pixel coordinates;
judging whether the display range of the sub-AOI on the screen is matched with the display range of the sub-AOI name label of the sub-AOI; and the display range of the sub-AOI name label is determined according to the font size and the font type of the sub-AOI name label.
Optionally, fig. 16 shows another structural block diagram of the server according to the embodiment of the present invention, and in combination with fig. 15 and fig. 16, the server may further include:
a first setting module 140, configured to set a base map to display scale levels of a main POI and a main AOI at a set location, where the main AOI displays a scale level higher than that of the main POI;
a second determining module 150, configured to determine, scale by scale, whether the display range of the primary AOI can accommodate the primary AOI name label of the primary AOI;
a second information obtaining write-back module 160, configured to, if starting from a first scale level, enable the display range of the primary AOI to accommodate the primary AOI name label, set the scale level at which the primary AOI name label starts to be displayed as the first scale level, obtain second information, and write the second information into map data; wherein the second scale level is higher than the first scale level.
Optionally, the server may be further configured to:
setting to start at a first scale level, the primary POI no longer being displayed;
setting a scale level not lower than a first scale level, and displaying a sub-POI of a sub-location of the set location;
setting to start at the second scale level, the sub-POIs of the sub-location are no longer displayed.
Optionally, fig. 17 shows a further structural block diagram of the server provided in the embodiment of the present invention, and in combination with fig. 15 and fig. 17, the server may further include:
a name marking position determining module 170, configured to determine, from a scale level set below the first scale level, a position where each main AOI name is marked in a display range of the main AOI, scale level by scale level; the number of the main AOI name labels is at least two;
a third information obtaining write-back module 180, configured to obtain third information according to a position, in each scale level starting from the lower set scale level, where each main AOI name is marked in a display range of the main AOI; and writing the third information into the map data.
Optionally, the name labeling position determining module 170 is configured to determine, in a scale-by-scale manner, a position of each primary AOI name labeled in the display range of the primary AOI, and specifically includes:
determining the position of a new main AOI name label which surrounds the range center of the main AOI and is in the range of the main AOI from the main AOI name label displayed in the range center of the main AOI at each scale level starting from the scale level set below;
and respectively taking the position of each new main AOI name label determined at the previous time as the center, determining the position of the next determined new main AOI name label expanded outwards relative to the range center of the main AOI until the position of the determined new main AOI name label exceeds the display range of the main AOI, wherein the position of the next determined new main AOI name label surrounds the position of the last determined new main AOI name label.
Optionally, the name labeling position determining module 170 is configured to determine, starting from the primary AOI name label displayed at the center of the range of the primary AOI, a position of a new primary AOI name label surrounding the center of the range of the primary AOI and located within the range of the primary AOI, and specifically includes:
marking the main AOI name displayed in the range center of the main AOI as the center, and constructing a polygon according to the set side length; and taking the positions of the vertexes of the polygon in the display range of the main AOI as the positions marked by the names of the new main AOI around the center of the range of the main AOI respectively.
Optionally, the name labeling position determining module 170 is configured to determine, by taking the position of each new main AOI name label determined at the previous time as a center, a position of a next determined new main AOI name label, which is expanded outward relative to the center of the range of the main AOI, specifically including:
marking the new main AOI name determined at the previous time as the center, constructing a polygon according to the set side length, and respectively taking the vertex of the polygon which is expanded outwards relative to the range center of the main AOI and is positioned in the display range of the main AOI as the position of each new main AOI name mark determined at the next time.
Optionally, the server may be further configured to:
setting a new main AOI name label in the sub-AOI identified with the sub-AOI name label, and not displaying.
Optionally, the server is further configured to:
and when the base graph displays the main AOI name label and the sub-AOI name label at the same time, setting the display styles of the main AOI name label and the sub-AOI name label to be different.
Optionally, the server is further configured to:
determining adjacent main AOI or sub-AOI of the same type;
and setting the adjacent main AOI or sub-AOI of the same type to use a plurality of display styles so as to enable the display styles of the adjacent AOIs of the same type to be different.
Alternatively, fig. 18 is a block diagram illustrating a hardware structure of a server, and referring to fig. 18, the server may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
in the embodiment of the present invention, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete mutual communication through the communication bus 4;
the processor 1 may be a central processing unit CPU or an Application Specific Integrated Circuit ASIC or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 3 may comprise high-speed RAM memory and may also comprise non-volatile memory, such as at least one disk memory.
The memory 3 stores an executable program for:
defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
after the base map displays a first scale grade of a main AOI name label of the AOI of a set place, judging whether a display range of a sub-AOI of a sub-place of the set place can accommodate the sub-AOI name label of the sub-AOI or not by scale grade;
if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed at the beginning of the sub-AOI name label as the second scale grade to obtain first information;
and writing the first information into the map data.
Optionally, the detailed functional details and the extension of the program can refer to the corresponding parts above.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a program, the program is suitable for a processor of a server to perform loading execution, and the program is configured to:
defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is; after the base map displays a first scale grade of the main AOI name label of the AOI of the set place, judging whether the display range of the sub-AOI of the sub-place of the set place can contain the sub-AOI name label of the sub-AOI or not by scale grade; if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed at the beginning of the sub-AOI name label as the second scale grade to obtain first information; and writing the first information into the map data.
Optionally, the functional refinements and extensions of the program may be as described with reference to the corresponding sections above.
In the following, the terminal provided in the embodiment of the present invention is described, and the terminal described below may be considered as a program module that is required to be set by the terminal to implement the map display method provided in the embodiment of the present invention. The contents of the terminal described below may be referred to in correspondence with the contents of the method described above.
Fig. 19 is a block diagram of a terminal according to an embodiment of the present invention, and referring to fig. 19, the terminal may include:
a map data loading module 200 for loading map data;
the base map amplifying module 210 is configured to amplify the base map step by step according to a scale level of the base map, where the higher the scale level is, the larger a line length corresponding to the solid line length on the base map is;
a first display module 220, configured to, according to the first information in the map data, if it is determined that the current scale level reaches the second scale level, start displaying sub-AOI name labels of the sub-AOI within a display range of the sub-AOI of the sub-location in the set location; and the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label.
Optionally, fig. 20 shows another structural block diagram of the terminal provided in the embodiment of the present invention, and with reference to fig. 19 and fig. 20, the terminal may further include:
a second display module 230, configured to display the main POI and the main AOI of the set location on a base map according to the scale levels set in the map data for displaying the main POI and the main AOI of the set location, where the scale level displayed by the main AOI is higher than the scale level displayed by the main POI;
a third display module 240, configured to, according to the second information in the map data, start displaying a main AOI name label in a display range of the main AOI if it is determined that the current scale level reaches the first scale level; the first scale grade is the scale grade which can accommodate the name mark of the main AOI in the display range of the main AOI, the second scale grade is higher than the first scale grade, and the first scale grade is higher than the scale grade displayed by the main AOI.
Optionally, the terminal may further be configured to:
according to the setting of the map data, starting at a first scale level, and enabling the main POI not to be displayed any more;
displaying sub-POIs of the sub-sites of the set site at a scale level not lower than a first scale level according to the setting of the map data;
starting at the second scale level, the sub-POIs of the sub-locations are no longer displayed, depending on the setting of the map data.
Optionally, fig. 21 shows another structural block diagram of the terminal provided in the embodiment of the present invention, and with reference to fig. 19 and fig. 21, the terminal may further include:
a name marking display position determining module 250, configured to determine, according to third information in the map data, a position where each main AOI name is marked in a display range of the main AOI in each scale level starting with the lower set scale level from the first scale level; the number of the main AOI name labels is at least two;
a fourth display module 260, configured to, at each scale level starting from the lower set scale level, display each main AOI name label in the display range of the main AOI according to the position of each corresponding main AOI name label in the display range of the main AOI in the third information record.
Optionally, the terminal may be further configured to:
and according to the setting of the map data, enabling the new main AOI name label in the sub-AOI marked with the sub-AOI name label not to be displayed.
Optionally, the terminal may be further configured to:
according to the setting of the map data, the adjacent main AOI or sub-AOI of the same type uses a plurality of display styles, so that the display styles of the adjacent AOIs of the same type are different.
Alternatively, the hardware structure of the terminal can be as shown in fig. 18, which is similar to the structure shown in fig. 18; in the embodiment of the present invention, the hardware structure of the terminal may include: a memory; the memory stores an executable program for:
loading map data;
amplifying the base map step by step according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment on the base map is;
according to first information in the map data, if the current scale level is determined to reach a second scale level, displaying sub-AOI name labels of the sub-AOI in the display range of the sub-AOI of the sub-site of the set site; and the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label.
Optionally, the functional refinements and extensions of the program may be as described with reference to the corresponding sections above.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a program, the program is suitable for a processor of a terminal to perform loading execution, and the program is configured to:
loading map data; amplifying the base map step by step according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is; according to first information in the map data, if the current scale level is determined to reach a second scale level, displaying sub-AOI name labels of the sub-AOI in the display range of the sub-AOI of the sub-site of the set site; and the second scale level is the scale level at which the display range of the sub-AOI can initially accommodate the sub-AOI name label.
Optionally, the functional refinements and extensions of the program may be as described with reference to the corresponding sections above.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. 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 invention. Thus, the present invention 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 (16)

1. A map data generation method, comprising:
defining the scale level of the base map, and setting the scale level of a main interest Point (POI) and a main interest surface (AOI) on the base map at a set position, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI, and the higher the scale level is, the larger the corresponding line length of the solid line length on the base map is; the main POI and the main AOI have an incidence relation;
judging whether the display range of the main AOI can contain the main AOI name label of the main AOI or not by scale grade;
if the display range of the main AOI can contain the name label of the main AOI from the first scale level, setting the scale level displayed by the name label of the main AOI as the first scale level to obtain second information, setting the second information at the beginning of the first scale level, and not displaying the main POI any more; writing the second information into map data; wherein the second scale level is higher than the first scale level;
setting a scale level not lower than a first scale level, and displaying a sub-POI of a sub-location of the set location; the sub-POI is subordinate to the main POI;
after the base map displays a first scale level of a main AOI name label of a main AOI of a set place, judging whether a display range of a sub-AOI associated with a sub-POI of a sub-place of the set place can accommodate the sub-AOI name label of the sub-AOI or not by scale levels; marking the main AOI name as an area surface name displayed on an area surface of the main AOI; the auxiliary relationship between the sub-AOI and the main AOI is determined by the incidence relationship between the main POI and the main AOI and the incidence relationship between the sub-POI and the sub-AOI;
if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed by the sub-AOI name label as the second scale grade to obtain first information; the sub-AOI name is marked as an area surface name displayed on an area surface of the sub-AOI, and is set at the level of a second scale, and the sub-POI of the sub-place is not displayed any more;
and writing the first information into map data.
2. The map data generation method according to claim 1, wherein the scale-by-scale level determination as to whether or not a display range of a sub-AOI of a sub-spot of the set spot can accommodate a sub-AOI name label of the sub-AOI includes:
converting the geographical coordinates of the sub-AOI in the base map of the sub-site into screen pixel coordinates according to the current scale grade;
determining the display range of the sub-AOI on the screen according to the screen pixel coordinates;
judging whether the display range of the sub-AOI on the screen is matched with the display range of the sub-AOI name label of the sub-AOI; and the display range of the sub-AOI name label is determined according to the font size and the font type of the sub-AOI name label.
3. The map data generation method according to any one of claims 1 to 2, characterized by further comprising:
starting from the scale level set below the first scale level, determining the position of each main AOI name marked in the display range of the main AOI one by one scale level; the number of the main AOI name labels is at least two;
marking the name of each main AOI in the position in the display range of the main AOI in each scale level starting from the lower set scale level to obtain third information;
and writing the third information into the map data.
4. The map data generation method according to claim 3, wherein the scale-by-scale level determination of the position of each main AOI name label within the display range of the main AOI comprises:
determining the position of a new main AOI name label which surrounds the range center of the main AOI and is in the range of the main AOI from the main AOI name label displayed in the range center of the main AOI at each scale level starting from the scale level set below;
and respectively taking the position of each new main AOI name label determined at the last time as the center, determining the position of the next determined new main AOI name label which expands outwards relative to the center of the range of the main AOI until the position of the determined new main AOI name label exceeds the display range of the main AOI, wherein the position of the next determined new main AOI name label surrounds the position of the last determined new main AOI name label.
5. The map data generation method of claim 4, wherein determining, starting from a primary AOI name label displayed at a center of a range of the primary AOI, a location of a new primary AOI name label around the center of the range of the primary AOI and within the range of the primary AOI comprises:
marking the main AOI name displayed in the range center of the main AOI as the center, and constructing a polygon according to the set side length; and taking the positions of the vertexes of the polygon in the display range of the main AOI as the positions marked by the names of the new main AOI around the range center of the main AOI respectively.
6. The map data generation method according to claim 4 or 5, wherein the determining the location of the next determined new main AOI name label expanding outward with respect to the center of the range of the main AOI, centered on the location of each new main AOI name label determined at the previous time respectively, comprises:
and marking the new main AOI name determined at the last time as the center, constructing a polygon according to the set side length, and respectively taking the vertex of the polygon which is outwards expanded relative to the range center of the main AOI and is positioned in the display range of the main AOI as the position of each new main AOI name mark determined at the next time.
7. The map data generation method according to claim 4, characterized by further comprising:
and setting the new main AOI name label in the sub-AOI marked with the sub-AOI name label, and not displaying.
8. The map data generation method according to claim 1, further comprising:
determining adjacent main AOI or sub-AOI of the same type;
and setting the adjacent same-type main AOI or sub-AOI to use a plurality of display styles so as to enable the display styles of the adjacent same-type AOIs to be different.
9. A map display method, comprising:
loading map data;
amplifying the base map step by step according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
according to first information in map data, if the current scale level is determined to reach a second scale level, displaying sub-AOI name labels of sub-AOIs in a display range of the sub-AOI associated with the sub-POI of the sub-site of the set site; wherein, the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label; the sub-AOI name is marked as an area surface name displayed on an area surface of the sub-AOI;
displaying the main POI and the main AOI of the set place on a base map according to the scale levels of the main POI and the main AOI of the set place, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI; the main POI and the main AOI have an incidence relation; the sub-POI is subordinate to the main POI;
according to second information in the map data, if the current scale level is determined to reach the first scale level, displaying a main AOI name label in a display range of the main AOI; the first scale grade is a scale grade which can accommodate the name mark of the main AOI at the beginning of the display range of the main AOI, the second scale grade is higher than the first scale grade, and the first scale grade is higher than the scale grade displayed by the main AOI; the affiliation between the sub AOI and the main AOI is determined through the association between the main POI and the main AOI and the association between the sub POI and the sub AOI;
according to the setting of map data, starting at the first scale level, enabling the main POI not to be displayed any more;
displaying the sub POI of the sub-site of the set site at a scale level not lower than the first scale level according to the setting of the map data;
and starting at the second scale level according to the setting of the map data, so that the sub-POI of the sub-location is not displayed any more.
10. The map display method according to claim 9, further comprising:
determining, starting from the scale level set below the first scale level, a position of each main AOI name marked in a display range of the main AOI in each scale level starting from the scale level set below according to third information in the map data; the number of the main AOI name labels is at least two;
and at each scale level starting from the lower set scale level, displaying each main AOI name label in the display range of the main AOI according to the position of each corresponding main AOI name label in the third information record in the display range of the main AOI.
11. The map display method according to claim 10, further comprising:
and according to the setting of the map data, enabling the new main AOI name label in the sub-AOI marked with the sub-AOI name label not to be displayed.
12. The map display method according to claim 10, further comprising:
according to the setting of the map data, the adjacent main AOI or sub-AOI of the same type uses a plurality of display styles, so that the display styles of the adjacent AOIs of the same type are different.
13. A server, comprising:
the scale grade defining module is used for defining the scale grade of the base map; the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
the first setting module is used for setting the scale levels of a main point of interest (POI) and a main interest plane AOI of a set place displayed on a base map, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI; the main POI and the main AOI have an incidence relation;
the second judging module is used for judging whether the display range of the main AOI can accommodate the main AOI name label of the main AOI or not according to the scale grade;
a second information obtaining write-back module, configured to, if starting from the first scale level, the display range of the main AOI can accommodate the main AOI name label, set the scale level where the main AOI name label starts to display as the first scale level, obtain second information, and set the second information at the start of the first scale level, where the main POI is no longer displayed; writing the second information into map data; wherein the second scale level is higher than the first scale level;
the server is further used for setting the scale level not lower than the first scale level and displaying the sub POI of the sub-site of the set site; the sub-POI is subordinate to the main POI;
the first judging module is used for judging whether the display range of the sub-AOI associated with the sub-POI of the sub-site of the set site can accommodate the sub-AOI name label of the sub-AOI or not in a scale level by scale level after the base map displays the first scale level of the main AOI name label of the main AOI of the set site; marking the main AOI name as an area surface name displayed on an area surface of the main AOI; the auxiliary relationship between the sub-AOI and the main AOI is determined by the incidence relationship between the main POI and the main AOI and the incidence relationship between the sub-POI and the sub-AOI;
a first information obtaining module, configured to, if starting from a second scale level, a display range of the sub-AOI can accommodate a sub-AOI name label of the sub-AOI, and set the scale level at which the sub-AOI name label starts to be displayed as the second scale level, to obtain first information; the sub AOI name is marked as an area face name displayed on an area face of the sub AOI;
the server is further configured to set a sub-POI of the sub-site to no longer be displayed at a second scale level;
and the first information write-back module is used for writing the first information into the map data.
14. A terminal, comprising:
the map data loading module is used for loading map data;
the base map amplifying module is used for amplifying the base map step by step according to the scale grade of the base map, and the higher the scale grade is, the larger the corresponding line segment length of the solid line segment length on the base map is;
the first display module is used for starting to display the sub-AOI name label of the sub-AOI in the display range of the sub-AOI associated with the sub-POI of the sub-site of the set site if the current scale level is determined to reach the second scale level according to the first information in the map data; the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label; the sub AOI name is marked as an area face name displayed on an area face of the sub AOI;
the second display module is used for displaying the main POI and the main AOI of the set place on a base map according to the scale level of the main POI and the main AOI of the set place, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI; the main POI and the main AOI have an incidence relation; the sub-POI is subordinate to the main POI;
the third display module is used for starting to display the name label of the main AOI in the display range of the main AOI if the current scale level is determined to reach the first scale level according to the second information in the map data; the first scale grade is a scale grade which can accommodate the name mark of the main AOI at the beginning of the display range of the main AOI, the second scale grade is higher than the first scale grade, and the first scale grade is higher than the scale grade displayed by the main AOI; the affiliation between the sub AOI and the main AOI is determined through the association between the main POI and the main AOI and the association between the sub POI and the sub AOI;
the terminal is further configured to:
according to the setting of map data, starting at the first scale level, and enabling the main POI not to be displayed any more;
displaying the sub POI of the sub-site of the set site at a scale level not lower than the first scale level according to the setting of the map data;
and starting at the second scale level according to the setting of the map data, and enabling the sub POI of the sub place not to be displayed.
15. A server, comprising: a memory storing an executable program for:
defining a scale level of a base map, and setting the scale level of a main interest Point (POI) and a main interest plane (AOI) in a set place displayed on the base map, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI, and the higher the scale level is, the larger the corresponding line length of the solid line length on the base map is; the main POI and the main AOI have an incidence relation;
judging whether the display range of the main AOI can accommodate the main AOI name label of the main AOI or not by scale grade;
if the display range of the main AOI can contain the name label of the main AOI from the first scale level, setting the scale level displayed by the name label of the main AOI as the first scale level to obtain second information, setting the second information at the beginning of the first scale level, and not displaying the main POI any more; writing the second information into map data; wherein the second scale level is higher than the first scale level;
setting a scale level not lower than a first scale level, and displaying a sub-POI of a sub-location of the set location; the sub-POI is subordinate to the main POI;
after the base map displays a first scale level of a main AOI name label of a main AOI of a set place, judging whether a display range of a sub-AOI associated with a sub-POI of a sub-place of the set place can accommodate the sub-AOI name label of the sub-AOI or not by scale levels; the main AOI name is marked as an area face name displayed on an area face of the main AOI; the auxiliary relationship between the sub-AOI and the main AOI is determined by the incidence relationship between the main POI and the main AOI and the incidence relationship between the sub-POI and the sub-AOI;
if the display range of the sub-AOI can contain the sub-AOI name label of the sub-AOI from a second scale grade, setting the scale grade displayed by the sub-AOI name label as the second scale grade to obtain first information; the sub-AOI name is marked as an area surface name displayed on an area surface of the sub-AOI, and is set at the level of a second scale, and the sub-POI of the sub-place is not displayed any more;
and writing the first information into the map data.
16. A terminal, comprising: a memory storing an executable program for:
loading map data;
amplifying the base map step by step according to the scale grade of the base map, wherein the higher the scale grade is, the larger the corresponding line segment length of the solid line segment on the base map is;
according to first information in map data, if the current scale level is determined to reach a second scale level, displaying sub-AOI name labels of sub-AOIs in a display range of the sub-AOI associated with the sub-POIs of the sub-places of the set place; wherein, the second scale level is the scale level at which the display range of the sub-AOI can accommodate the sub-AOI name label; the sub AOI name is marked as an area face name displayed on an area face of the sub AOI;
displaying the main POI and the main AOI of the set place on a base map according to the scale levels of the main POI and the main AOI of the set place, wherein the scale level displayed by the main AOI is higher than the scale level displayed by the main POI; the main POI and the main AOI have an incidence relation; the sub-POI is subordinate to the main POI;
according to second information in the map data, if the current scale level is determined to reach the first scale level, displaying a main AOI name label in a display range of the main AOI; the first scale grade is a scale grade which can accommodate the name mark of the main AOI at the beginning of the display range of the main AOI, the second scale grade is higher than the first scale grade, and the first scale grade is higher than the scale grade displayed by the main AOI; the auxiliary relationship between the sub-AOI and the main AOI is determined by the incidence relationship between the main POI and the main AOI and the incidence relationship between the sub-POI and the sub-AOI;
according to the setting of map data, starting at the first scale level, enabling the main POI not to be displayed any more;
displaying sub-POIs of the sub-sites of the set site at a scale level not lower than the first scale level according to the setting of the map data;
and starting at the second scale level according to the setting of the map data, and enabling the sub POI of the sub place not to be displayed.
CN201710763833.7A 2017-08-30 2017-08-30 Map data generation method, map display method, server and terminal Active CN110019584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710763833.7A CN110019584B (en) 2017-08-30 2017-08-30 Map data generation method, map display method, server and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710763833.7A CN110019584B (en) 2017-08-30 2017-08-30 Map data generation method, map display method, server and terminal

Publications (2)

Publication Number Publication Date
CN110019584A CN110019584A (en) 2019-07-16
CN110019584B true CN110019584B (en) 2022-10-21

Family

ID=67186158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710763833.7A Active CN110019584B (en) 2017-08-30 2017-08-30 Map data generation method, map display method, server and terminal

Country Status (1)

Country Link
CN (1) CN110019584B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112100302B (en) * 2020-09-02 2024-03-29 北京百度网讯科技有限公司 Map information point display method, apparatus, device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127952A (en) * 2006-03-31 2008-02-20 捷讯研究有限公司 Method and system for distribution of map content to mobile communication devices
CN102013205A (en) * 2010-11-30 2011-04-13 百度在线网络技术(北京)有限公司 Electronic map marker rendering method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1840511B1 (en) * 2006-03-31 2016-03-02 BlackBerry Limited Methods and apparatus for retrieving and displaying map-related data for visually displayed maps of mobile communication devices
US8792916B2 (en) * 2008-01-14 2014-07-29 Blackberry Limited Dynamic prioritization of label downloads
JP4352156B1 (en) * 2008-08-25 2009-10-28 兵庫県 Map information processing apparatus, navigation system, and program
CN101634557B (en) * 2009-09-01 2012-01-11 常熟恒基科技有限公司 Method for preventing picture display characters from being mutually overlapped in navigation system
CN102298873B (en) * 2010-06-24 2014-03-26 科菱航睿空间信息技术有限公司 Navigation electronic map data storage method and display method based on the same
US9207096B2 (en) * 2011-06-09 2015-12-08 Blackberry Limited Map magnifier
CN102819530A (en) * 2011-06-10 2012-12-12 中兴通讯股份有限公司 Method and device for displaying electronic map
CN103578347B (en) * 2012-08-01 2017-04-19 高德软件有限公司 Method and device for displaying POI in electronic map and mobile terminal
WO2015119371A1 (en) * 2014-02-05 2015-08-13 에스케이플래닛 주식회사 Device and method for providing poi information using poi grouping
CN106610976B (en) * 2015-10-22 2019-09-13 高德信息技术有限公司 A kind of POI mask method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127952A (en) * 2006-03-31 2008-02-20 捷讯研究有限公司 Method and system for distribution of map content to mobile communication devices
CN102013205A (en) * 2010-11-30 2011-04-13 百度在线网络技术(北京)有限公司 Electronic map marker rendering method and device

Also Published As

Publication number Publication date
CN110019584A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US20090281728A1 (en) Navigation with contextual color, texture, and structure cues
CN105865484B (en) A kind of display methods and device of navigation information
CN110174114B (en) Lane line-level path generation method and device and storage medium
CN111104076B (en) Map display method, map display device and storage medium
CN101578636A (en) Displaying elevation information from a digital map
US9811539B2 (en) Hierarchical spatial clustering of photographs
CN113658292A (en) Method, device and equipment for generating meteorological data color spot pattern and storage medium
CN110019584B (en) Map data generation method, map display method, server and terminal
CN105190726B (en) Three-dimensional map display device
CN106500684B (en) Method and device for processing navigation path information
US8456474B2 (en) Method for rendering outline of polygon and apparatus of rendering outline of polygon
EP1746390A1 (en) Image processing apparatus, distant view image display method, and distant view image display program
JP5556526B2 (en) Map display device, map display method and program
WO2010092680A1 (en) Map information processing device, map information processing method, map information processing program, and recording medium
CN115509652A (en) Icon display method, device, medium and product of electronic map
CN111369676B (en) Map image processing method and device and vehicle-mounted equipment
JP2012174067A (en) Method and device for drawing map polygon
CN117556158B (en) User peripheral location visualization method and system for coupling place name label and contour line
JP2007133464A (en) Information processor, information processing method, and program
JP4841126B2 (en) Navigation device and map display method
CN110969700A (en) 3D electronic sand table model generation method and device and electronic equipment
JP2004062602A (en) Device and method for displaying image
JP6649129B2 (en) Map screen display device and map screen display method
CN117556158A (en) User peripheral location visualization method and system for coupling place name label and contour line
JP6877706B1 (en) Terrain display method, terrain display system, and terrain display program

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