CN114722131A - Map checking method, map checking device, terminal equipment and storage medium - Google Patents

Map checking method, map checking device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114722131A
CN114722131A CN202210225416.8A CN202210225416A CN114722131A CN 114722131 A CN114722131 A CN 114722131A CN 202210225416 A CN202210225416 A CN 202210225416A CN 114722131 A CN114722131 A CN 114722131A
Authority
CN
China
Prior art keywords
boundary
map
area
target
sub
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.)
Pending
Application number
CN202210225416.8A
Other languages
Chinese (zh)
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.)
Hainan Qiantang Shilian Information Technology Co ltd
Original Assignee
Hainan Qiantang Shilian Information Technology 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 Hainan Qiantang Shilian Information Technology Co ltd filed Critical Hainan Qiantang Shilian Information Technology Co ltd
Priority to CN202210225416.8A priority Critical patent/CN114722131A/en
Publication of CN114722131A publication Critical patent/CN114722131A/en
Pending legal-status Critical Current

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
    • 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/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation

Abstract

The embodiment of the invention provides a map viewing method, a map viewing device, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring a map viewing instruction, and acquiring a target area identifier from the map viewing instruction; determining target boundary information corresponding to the target area identification according to the target area identification; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, the boundary line of the target area corresponding to the target map level is drawn and displayed, and by setting the boundary data and the map level for each small area, when a map viewing instruction is received, the corresponding area boundary line is drawn according to the boundary data and the map level of the area, so that a user can visually view the target area according to different map levels.

Description

Map checking method, map checking device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a map viewing method, apparatus, terminal device, and storage medium.
Background
With the continuous development of computer technology, electronic maps are used more and more, and usually grids are used for displaying boundary lines of various areas, so that when a map of a certain area is viewed, all grids of the area are displayed on a map interface, and grid area display cannot be performed according to a hierarchy, so that the problem that how to perform regional grid display on the map according to the hierarchy is in urgent need of solution.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a map viewing method, apparatus, terminal device, and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a map viewing method, where the method includes:
acquiring a map viewing instruction, and acquiring a target area identifier from the map viewing instruction;
determining target boundary information corresponding to the target area identification according to the target area identification; wherein the target boundary information includes at least target region boundary data and a target map hierarchy;
and drawing and displaying a target area boundary line corresponding to the target map level according to the target area boundary data.
Optionally, before the obtaining the map viewing instruction, the method further includes:
acquiring one or more area identifications;
and acquiring boundary information corresponding to the area identifier from a database server, wherein the boundary information at least comprises one or more map levels and area boundary drawing data corresponding to the map levels, and the area boundary drawing data at least comprises area positioning information and boundary drawing data, and the area positioning information corresponds to the boundary drawing data.
Optionally, if the target boundary information includes a map hierarchy and the target area positioning information at least includes longitude and latitude information of a center point of a target area, drawing and displaying an area boundary line corresponding to the target map hierarchy according to the target area boundary data includes:
and drawing a zone boundary line corresponding to the target map hierarchy according to the longitude and latitude information of the central point of the target zone and the boundary data of the target zone.
Optionally, if the target boundary information includes multiple target map levels, the target map levels include a current map level and map levels of sub-areas, the target boundary information includes target boundary information of the current map level and target boundary information of the sub-areas, the target boundary information of the current map level includes positioning information of the current area and current area boundary data, the positioning information of the current area and the current area boundary data correspond to the map level of the current area, the target boundary information of the sub-areas includes positioning information of the sub-areas and boundary data of the sub-areas, and the positioning information of the sub-areas and the boundary data of the sub-areas correspond to the map levels of the sub-areas;
the drawing and displaying of the area boundary line corresponding to the target map hierarchy according to the target area boundary data includes:
drawing a current region boundary line corresponding to the current map hierarchy according to the positioning information of the current region and the boundary data of the current region, and deleting the previously drawn region boundary line;
under the condition that a plurality of next-level sub-areas exist in the current area, drawing sub-area boundary lines corresponding to the map level of the next-level sub-areas according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
Optionally, the step of drawing a current area boundary line corresponding to the current map hierarchy according to the positioning information of the current area and the boundary data of the current area and deleting the previously drawn area boundary line includes the step of:
drawing a zone boundary line corresponding to the map level of the current zone according to the longitude and latitude information of the central point of the current zone and the boundary data of the current zone, and deleting the zone boundary line drawn last time;
correspondingly, under the condition that a plurality of next-level sub-areas exist in the current area, drawing sub-area boundary lines corresponding to the map level of the next-level sub-areas according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines, the method comprises the following steps:
under the condition that a plurality of next-level sub-areas exist in the current area, sequentially drawing sub-area boundary lines corresponding to the map levels of the next-level sub-areas according to the longitude and latitude information of the center points of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
Optionally, the method further comprises:
displaying a region name corresponding to a target region while drawing a region boundary line corresponding to the target map hierarchy.
Optionally, the method further comprises:
acquiring a history boundary review instruction, wherein the history boundary review instruction comprises a history area name;
and displaying the area boundary line corresponding to the historical area name.
In a second aspect, an embodiment of the present invention provides a map viewing apparatus, including:
the acquisition module is used for acquiring a map viewing instruction and acquiring a target area identifier from the map viewing instruction;
the determining module is used for determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy;
and the drawing module is used for drawing and displaying the target area boundary line corresponding to the target map level according to the target area boundary data.
Optionally, the obtaining module is further configured to:
acquiring one or more area identifications;
and acquiring boundary information corresponding to the area identifier from a database server, wherein the boundary information at least comprises one or more map levels and area boundary drawing data corresponding to the map levels, and the area boundary drawing data at least comprises area positioning information and boundary drawing data, and the area positioning information corresponds to the boundary drawing data.
Optionally, if the target boundary information includes a map level and the target area positioning information at least includes latitude and longitude information of a center point of the target area, the drawing module is configured to:
and drawing a zone boundary line corresponding to the target map hierarchy according to the longitude and latitude information of the central point of the target zone and the boundary data of the target zone.
Optionally, if the target boundary information includes a plurality of target map levels, where the target map levels include a current map level and a sub-region map level, the target boundary information includes target boundary information of the current map level and target boundary information of a sub-region, the target boundary information of the current map level includes positioning information of a current region and current region boundary data, the positioning information of the current region and the current region boundary data correspond to the current map level, the target boundary information of the sub-region includes positioning information of the sub-region and sub-region boundary data, and the positioning information of the sub-region and the sub-region boundary data correspond to the sub-region map level;
the drawing module is further configured to:
drawing a current region boundary line corresponding to the current map hierarchy according to the positioning information of the current region and the boundary data of the current region, and deleting the previously drawn region boundary line;
under the condition that a plurality of next-level sub-areas exist in the current area, drawing sub-area boundary lines corresponding to the map level of the next-level sub-areas according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
Optionally, the positioning information of the current area includes latitude and longitude information of a center point of the current area, the positioning information of the sub-area includes latitude and longitude information of a center point of the sub-area, and the drawing module is further configured to:
drawing a zone boundary line corresponding to the map level of the current zone according to the longitude and latitude information of the central point of the current zone and the boundary data of the current zone, and deleting the zone boundary line drawn last time;
correspondingly, under the condition that a plurality of next-level sub-areas exist in the current area, drawing sub-area boundary lines corresponding to the map level of the next-level sub-areas according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines, the method comprises the following steps:
under the condition that a plurality of next-level sub-areas exist in the current area, sequentially drawing sub-area boundary lines corresponding to the map levels of the next-level sub-areas according to the longitude and latitude information of the center points of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
Optionally, the rendering module is further configured to:
displaying a region name corresponding to a target region while drawing a region boundary line corresponding to the target map hierarchy.
Optionally, the apparatus further comprises a review module configured to:
acquiring a history boundary review instruction, wherein the history boundary review instruction comprises a history area name;
and displaying the area boundary line corresponding to the historical area name.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the map viewing method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the computer program implements the map viewing method provided in the first aspect.
The embodiment of the invention has the following advantages:
according to the map viewing method, the map viewing device, the terminal equipment and the storage medium, the map viewing instruction is obtained, and the target area identification is obtained from the map viewing instruction; determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, the boundary line of the target area corresponding to the target map level is drawn and displayed, and by setting the boundary data and the map level for each small area, when a map viewing instruction is received, the corresponding area boundary line is drawn according to the boundary data and the map level of the area, so that a user can visually view the target area according to different map levels.
Drawings
FIG. 1 is a flow chart of the steps of a method embodiment of a map viewing method of the present invention;
FIG. 2 is a flow chart of steps in another map viewing method embodiment of the present invention;
FIG. 3 is a schematic block diagram of a map viewing system embodiment of the present invention;
FIG. 4 is a flowchart of the steps of yet another map viewing method embodiment of the present invention;
FIG. 5 is a block diagram of a map viewing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof.
An embodiment of the present invention provides a map viewing method for performing hierarchical display of an area on a map. The execution subject of the embodiment is a map viewing device, and is arranged on a web server.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a map viewing method according to the present invention is shown, where the method specifically includes the following steps:
s101, obtaining a map viewing instruction, and obtaining a target area identifier from the map viewing instruction;
specifically, an offline map is installed on the web server, a map of a certain area can be seen on the web server, for example, the map in the initial state may be a provincial map, a city-level map, a county-level map, and the like, and the map levels of the maps in different levels are specific, for example, the map level of the provincial map is 2, the map level of the city-level map is 3, and the map level of the county-level map is 4.
The user can click on a certain area on the interface on the web server, and the web server acquires the map viewing instruction and acquires the target area identification from the map viewing instruction.
S102, determining target boundary information corresponding to the target area identification according to the target area identification; wherein the target boundary information includes at least target area boundary data and a target map hierarchy;
specifically, the web server obtains target boundary information corresponding to the target area identifier from the database server according to the target area identifier, wherein the target boundary information includes target area boundary data and a target map hierarchy, and may include a plurality of target map hierarchies and target area boundary data corresponding to the target map hierarchy.
Illustratively, the target boundary information includes a 2-level provincial map level and boundary data corresponding to the 2-level provincial map level, a 3-level city map level and boundary data corresponding to the 3-level city map level.
And S103, drawing and displaying a target area boundary line corresponding to the target map level according to the target area boundary data.
In the embodiment of the invention, after acquiring the target boundary information, the web server starts a boundary line meeting, specifically, drawing is started from the target area boundary data of the highest map level, and after the drawing of the target area boundary data of the highest map level is completed, the web server continues to draw the boundary line of the next map level until the drawing of the boundary lines of all map levels in the target boundary information is completed. Thus, the user can click on the regions layer by layer, and each region can be viewed hierarchically.
Illustratively, the web server draws the boundary line of the 2-level provincial map level, and then draws the boundary line of the 3-level city map level after drawing is completed until all the boundary lines of the map levels are drawn.
According to the map viewing method provided by the embodiment of the invention, the map viewing instruction is obtained, and the target area identification is obtained from the map viewing instruction; determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, the boundary line of the target area corresponding to the target map level is drawn and displayed, and by setting the boundary data and the map level for each small area, when a map viewing instruction is received, the corresponding area boundary line is drawn according to the boundary data and the map level of the area, so that a user can visually view the target area according to different map levels.
The map viewing method provided by the above embodiment is further explained in an additional embodiment of the present invention.
As shown in fig. 2, a flow chart illustrating steps of another embodiment of a map viewing method of the present invention is shown, the map viewing method comprising:
s201, acquiring one or more area identifications;
specifically, different management background servers are arranged in different areas, the management background server acquires an area identifier corresponding to the area in the different areas, and the web server can acquire one or more area identifiers from the different management background servers. For example, the area in province A is identified as a, the area in province X is identified as X, and so on.
S202, boundary information corresponding to the area identification is obtained from the database server, wherein the boundary information at least comprises one or more map levels and area boundary drawing data corresponding to the map levels, the area boundary drawing data at least comprises area positioning information and boundary drawing data, and the area positioning information corresponds to the boundary drawing data.
Specifically, the web server obtains boundary information corresponding to the area identifier from the database server, for example, if some areas need to be displayed on the interface of the web server, the boundary information of the areas is obtained from the database server.
For example, the web server acquires boundary information of all areas of province a from the database server, the boundary information including the highest map level, that is, provincial map level 2 level, area boundary drawing data corresponding to the 2 level, the area boundary drawing data including 2-level area positioning information and 2-level boundary drawing data, and further including the city map level 3 level of the next map level, and area boundary drawing data corresponding to the 3 level, the area boundary drawing data including 3-level area positioning information and 3-level boundary drawing data, and then performs boundary line drawing of each area according to the boundary drawing data of each map level.
That is, if a certain area includes 3 map levels, the boundary lines corresponding to the 3 map levels are drawn, so that the subsequent user can perform hierarchical display when viewing the boundary lines.
S203, obtaining a map viewing instruction, and obtaining a target area identifier from the map viewing instruction;
s204, determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy;
since steps S203 to S204 are the same as steps S101 and S102 in the embodiment shown in fig. 1. Step S101 to step S102 have already been described in detail in fig. 1, and therefore step S203 to step S204 will not be described again here.
S205, if the target boundary information comprises a map hierarchy and the target area positioning information at least comprises longitude and latitude information of a center point of the target area, drawing an area boundary line corresponding to the target map hierarchy according to the longitude and latitude information of the center point of the target area and the boundary data of the target area.
In the embodiment of the invention, the area boundary lines of all regions can be initially displayed on the map interface on the web server, the area boundary lines can be displayed in a dotted line form, when a user clicks one region and the region does not have the next level of map hierarchy, the region boundary lines are positioned on the web server according to the longitude and latitude information of the center point of the target region, and then the area boundary lines are drawn according to the boundary data.
S206, if the target boundary information comprises a plurality of target map levels, the target map levels comprise a current map level and a sub-region map level, the target boundary information comprises target boundary information of the current map level and target boundary information of the sub-region, the target boundary information of the current map level comprises positioning information of the current region and current region boundary data, the positioning information of the current region and the current region boundary data correspond to the current map level, the target boundary information of the sub-region comprises positioning information of the sub-region and boundary data of the sub-region, and the positioning information of the sub-region and the boundary data of the sub-region correspond to the sub-region map level;
drawing a current region boundary line corresponding to the current map hierarchy according to the positioning information of the current region and the boundary data of the current region, and deleting the previously drawn region boundary line;
the method specifically comprises the following steps:
drawing a zone boundary line corresponding to the map level of the current zone according to the longitude and latitude information of the central point of the current zone and the boundary data of the current zone, and deleting the zone boundary line drawn last time;
specifically, the target boundary information further includes identifiers of map hierarchies, for example, if the target boundary information is two-level, the corresponding identifier is 01, and if the target boundary information is three-level, the corresponding identifier is 001, and the like.
And S207, under the condition that a plurality of next-level sub-areas exist in the current area, drawing sub-area boundary lines corresponding to the map levels of the next-level sub-areas according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
The method specifically comprises the following steps: under the condition that a plurality of next-level sub-areas exist in the current area, sequentially drawing sub-area boundary lines corresponding to the map levels of the next-level sub-areas according to the longitude and latitude information of the center points of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
Specifically, when the target boundary information includes a plurality of target map hierarchies, the user clicks province a on the map interface of the web server, draws a boundary line according to the map hierarchy and boundary data of province a, deletes the map boundary line displayed by the initial dotted line, and draws according to each city map hierarchy and boundary data corresponding to the city map hierarchy because province a has a next city map hierarchy. In this way, when the area of province a is clicked from the map displayed by the initial dotted line during the use of the map by the user, the area of province a displayed on the map interface includes a plurality of sub-areas of the next level within the area of province a, for example, each city, a region corresponding to one of city B may be clicked, the map interface jumps to the map of the boundary line of city B, and the boundary line of province a is deleted, and when city B still has a sub-area of the next level, the next sub-area C of city B may be clicked, the boundary line of city C is displayed on the map, and the boundary line of city B is deleted, and so on.
And S208, drawing the area boundary line corresponding to the target map level and displaying the area name corresponding to the target area.
In the embodiment of the invention, in order to enable a user to visually see a clicked area, a boundary line is drawn, an area name is set for each area, and the area name of the area is displayed when the boundary line is displayed, so that the user can know which map level to jump to at present.
S209, acquiring a history boundary review instruction, wherein the history boundary review instruction comprises a history area name;
s210, displaying the area boundary line corresponding to the historical area name.
In the embodiment of the invention, a history boundary review list is arranged on an interface of a web server, namely, the area names of different map levels clicked each time are displayed in the history boundary review list, and when the boundary line of the next map level is viewed, the previous history boundary line is desired to be viewed, and the history area boundary line can be displayed by directly clicking the name of the previous map level.
Fig. 3 is a schematic structural diagram of an embodiment of the map viewing system of the present invention, and as shown in fig. 3, the map viewing system includes a management background server, a web server and a database server (data base, DB), where the web server obtains a region identifier from the management background server, and then obtains boundary data of each region corresponding to the region identifier from the database server, and further performs logic processing on the web server, for example, positioning according to longitude and latitude of a center point of each region, drawing according to the region boundary data, and performing boundary rendering display on an interface on the web server.
Fig. 4 is a flowchart of steps of still another embodiment of a map viewing method of the present invention, as shown in fig. 4, the map viewing method includes:
1) the web server acquires the region code through the management background server, acquires boundary data corresponding to the region code from the database, and initializes the boundary data.
2. The user can click the area block on the web server, the web server obtains the area code corresponding to the area block, the target boundary data corresponding to the target area code is obtained from the database server, and the re-rendering of the boundary data is achieved.
Specifically, according to the regional mechanism to which the login account belongs on the management background server, the boundary data of the city where the regional international code area code corresponding to the account is located is displayed by default. The area data includes longitude and latitude of the central point of the area, map level, boundary peripheral data (current map level), and boundary information of the next level of the block included in the area.
3. When the web server carries out re-rendering of the boundary data, the original coverage of the map, namely the original boundary line, is removed, the center point of the area is positioned according to the target boundary data, the boundary line is rendered, the place name is marked, and a series of logic processing such as place name navigation is added, so that the rendering of the boundary is realized.
The method specifically comprises the following steps:
31) and monitoring a user click event, and acquiring boundary information of the region by contrasting the national region code of the region according to the region clicked by the user.
32) Performing Json conversion processing on the obtained boundary information, and converting Json character strings into boundary information in a Json form.
33) And if the boundary data of the target area in the acquired boundary information does not have the next-level boundary data of the area, directly removing the covering on the map and drawing the boundary line of the area. The centrozone method provided by the Application Programming Interface (API) can be used to locate the center point and map level of the area.
34) If the boundary data of the target area in the acquired boundary information includes the next-level boundary data, firstly removing the covering on the map, drawing a peripheral boundary line (a boundary line corresponding to the current map level), and then circularly traversing the next-level boundary to draw each next-level boundary line. And positioning to the central point of each area corresponding to each map level by using a centrerAndzoom method provided by a map API.
35) And marking the corresponding name of each area block of the next-level boundary, and realizing the corresponding name through BMapGL.
36) Displaying the boundary information by the place name navigation: and adding the area name as place name navigation every time the page displays an area boundary, wherein each place name navigation comprises data information of the place name area, namely boundary information stored by a previously rendered boundary line. And executing the steps to render the boundary line every time a place name is clicked.
In the embodiment of the invention, if the boundary of the province is clicked, the city below the province is displayed, the city is clicked to display the county of the city, the county is clicked to display the town below the county, the town is clicked to display the village below the town, and the grid below the village is clicked to display the village.
It should be noted that for simplicity of description, the method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
According to the map viewing method provided by the embodiment of the invention, the map viewing instruction is obtained, and the target area identification is obtained from the map viewing instruction; determining target boundary information corresponding to the target area identification according to the target area identification; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, the boundary line of the target area corresponding to the target map level is drawn and displayed, and by setting the boundary data and the map level for each small area, when a map viewing instruction is received, the corresponding area boundary line is drawn according to the boundary data and the map level of the area, so that a user can visually view the target area according to different map levels.
Another embodiment of the present invention provides a map viewing apparatus, configured to execute the map viewing method provided in the foregoing embodiment.
Referring to fig. 5, a block diagram of a map viewing apparatus according to an embodiment of the present invention is shown, where the apparatus may be applied in a video network, and specifically may include the following modules: an obtaining module 501, a determining module 502 and a drawing module 503, wherein:
the obtaining module 501 is configured to obtain a map viewing instruction, and obtain a target area identifier from the map viewing instruction;
the determining module 502 is configured to determine, according to the target area identifier, target boundary information corresponding to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy;
the drawing module 503 is configured to draw and display a target area boundary line corresponding to the target map hierarchy according to the target area boundary data.
The map viewing device provided by the embodiment of the invention obtains the target area identification from the map viewing instruction by obtaining the map viewing instruction; determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, the boundary line of the target area corresponding to the target map level is drawn and displayed, and by setting the boundary data and the map level for each small area, when a map viewing instruction is received, the corresponding area boundary line is drawn according to the boundary data and the map level of the area, so that a user can visually view the target area according to different map levels.
The map viewing device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the obtaining module is further configured to:
acquiring one or more area identifications;
boundary information corresponding to the area identification is obtained from a database server, wherein the boundary information at least comprises one or more map levels and area boundary drawing data corresponding to the map levels, the area boundary drawing data at least comprises area positioning information and boundary drawing data, and the area positioning information corresponds to the boundary drawing data.
Optionally, if the target boundary information includes a map level and the target area positioning information at least includes latitude and longitude information of a center point of the target area, the drawing module is configured to:
and drawing an area boundary line corresponding to the target map hierarchy according to the longitude and latitude information of the central point of the target area and the boundary data of the target area.
Optionally, if the target boundary information includes a plurality of target map levels, the target map levels include a current map level and a sub-region map level, the target boundary information includes target boundary information of the current map level and target boundary information of the sub-region, the target boundary information of the current map level includes positioning information of the current region and current region boundary data, the positioning information of the current region and the current region boundary data correspond to the current map level, the target boundary information of the sub-region includes positioning information of the sub-region and boundary data of the sub-region, and the positioning information of the sub-region and the boundary data of the sub-region correspond to the sub-region map level;
a rendering module further configured to:
drawing a current region boundary line corresponding to the current map hierarchy according to the positioning information of the current region and the boundary data of the current region, and deleting the previously drawn region boundary line;
under the condition that a plurality of next-level sub-areas exist in the current area, drawing sub-area boundary lines corresponding to the map level of the next-level sub-areas according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
Optionally, the positioning information of the current area includes longitude and latitude information of a central point of the current area, the positioning information of the sub-area includes longitude and latitude information of a central point of the sub-area, and the drawing module is further configured to:
drawing a zone boundary line corresponding to the map hierarchy of the current zone according to the longitude and latitude information of the current zone central point and the current zone boundary data, and deleting the zone boundary line drawn last time;
correspondingly, under the condition that a plurality of next-level sub-areas exist in the current area, drawing a sub-area boundary line corresponding to the map level of the next-level sub-area according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary line, wherein the method comprises the following steps:
under the condition that a plurality of next-level sub-areas exist in the current area, sequentially drawing sub-area boundary lines corresponding to the map levels of the next-level sub-areas according to the longitude and latitude information of the center points of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
Optionally, the rendering module is further configured to:
a region name corresponding to the target region is displayed while drawing a region boundary line corresponding to the target map hierarchy.
Optionally, the apparatus further comprises a review module, the review module configured to:
acquiring a historical boundary review instruction, wherein the historical boundary review instruction comprises a historical region name;
area boundary lines corresponding to the history area names are displayed.
It should be noted that the respective implementable modes in the embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The map viewing device provided by the embodiment of the invention obtains the target area identification from the map viewing instruction by obtaining the map viewing instruction; determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, drawing and displaying the boundary line of the target area corresponding to the target map level, setting boundary data and map levels for each small area, and drawing the corresponding boundary line of the area according to the boundary data of the area and the map level when receiving a map viewing instruction, so that a user can visually view the target area according to different map levels.
Still another embodiment of the present invention provides a terminal device, configured to execute the map viewing method provided in the foregoing embodiment.
Fig. 6 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 6, the terminal device includes: at least one processor 601 and memory 602;
the memory stores a computer program; at least one processor executes a computer program stored in a memory to implement the map viewing method provided by the above-described embodiments.
The terminal device provided by the embodiment acquires the map viewing instruction and acquires the target area identifier from the map viewing instruction; determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, the boundary line of the target area corresponding to the target map level is drawn and displayed, and by setting the boundary data and the map level for each small area, when a map viewing instruction is received, the corresponding area boundary line is drawn according to the boundary data and the map level of the area, so that a user can visually view the target area according to different map levels.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the map viewing method provided in any one of the above embodiments is implemented.
According to the computer-readable storage medium of the embodiment, the map viewing instruction is obtained, and the target area identification is obtained from the map viewing instruction; determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information comprises at least target area boundary data and a target map hierarchy; according to the boundary data of the target area, the boundary line of the target area corresponding to the target map level is drawn and displayed, and by setting the boundary data and the map level for each small area, when a map viewing instruction is received, the corresponding area boundary line is drawn according to the boundary data and the map level of the area, so that a user can visually view the target area according to different map levels.
The embodiments in the present specification 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.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable packet processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable packet processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable packet processing electronics to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data packet processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or electronic device that comprises the element.
The method and the device for checking the map provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above example is only used to help understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A map viewing method, the method comprising:
acquiring a map viewing instruction, and acquiring a target area identifier from the map viewing instruction;
determining target boundary information corresponding to the target area identification according to the target area identification; wherein the target boundary information includes at least target region boundary data and a target map hierarchy;
and drawing and displaying a target area boundary line corresponding to the target map level according to the target area boundary data.
2. A map viewing method according to claim 1, wherein prior to said obtaining a map viewing instruction, said method further comprises:
acquiring one or more area identifications;
and acquiring boundary information corresponding to the area identifier from a database server, wherein the boundary information at least comprises one or more map levels and area boundary drawing data corresponding to the map levels, and the area boundary drawing data at least comprises area positioning information and boundary drawing data, and the area positioning information corresponds to the boundary drawing data.
3. A map viewing method according to claim 2, wherein if the target boundary information includes a map level and the target area location information includes at least longitude and latitude information of a center point of the target area, the drawing and displaying an area boundary line corresponding to the target map level according to the target area boundary data includes:
and drawing a zone boundary line corresponding to the target map hierarchy according to the longitude and latitude information of the central point of the target zone and the boundary data of the target zone.
4. A map viewing method according to claim 2, wherein if the target boundary information includes a plurality of target map levels, the target map levels include a current map level and a sub-region map level, the target boundary information includes target boundary information of the current map level and target boundary information of the sub-region, the target boundary information of the current map level includes positioning information of a current region and current region boundary data, the positioning information of the current region and the current region boundary data correspond to the map level of the current region, the target boundary information of the sub-region includes positioning information of the sub-region and sub-region boundary data, and the positioning information of the sub-region and the sub-region boundary data correspond to the map level of the sub-region;
the drawing and displaying of the area boundary line corresponding to the target map hierarchy according to the target area boundary data includes:
drawing a current area boundary line corresponding to the current map hierarchy according to the positioning information of the current area and the boundary data of the current area, and deleting the previously drawn area boundary line;
and under the condition that a plurality of next-level sub-areas exist in the current area, drawing a sub-area boundary line corresponding to the map level of the next-level sub-area according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary line.
5. The map viewing method according to claim 4, wherein the positioning information of the current area includes longitude and latitude information of a center point of the current area, the positioning information of the sub-area includes longitude and latitude information of a center point of the sub-area, and the drawing the boundary line of the current area corresponding to the current map hierarchy according to the positioning information of the current area and the boundary data of the current area and deleting the boundary line of the previously drawn area includes:
drawing a zone boundary line corresponding to the map level of the current zone according to the longitude and latitude information of the central point of the current zone and the boundary data of the current zone, and deleting the zone boundary line drawn last time;
correspondingly, under the condition that a plurality of next-level sub-areas exist in the current area, drawing sub-area boundary lines corresponding to the map level of the next-level sub-areas according to the positioning information of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines, the method comprises the following steps:
under the condition that a plurality of next-level sub-areas exist in the current area, sequentially drawing sub-area boundary lines corresponding to the map levels of the next-level sub-areas according to the longitude and latitude information of the center points of the next-level sub-areas and the boundary data of the sub-areas, and deleting the previously drawn area boundary lines.
6. A map viewing method according to claim 1, the method further comprising:
displaying a region name corresponding to a target region while drawing a region boundary line corresponding to the target map hierarchy.
7. A map viewing method according to claim 6, the method further comprising:
acquiring a history boundary review instruction, wherein the history boundary review instruction comprises a history area name;
and displaying the area boundary line corresponding to the historical area name.
8. A map viewing method, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a map viewing instruction and acquiring a target area identifier from the map viewing instruction;
the determining module is used for determining target boundary information corresponding to the target area identifier according to the target area identifier; wherein the target boundary information includes at least target region boundary data and a target map hierarchy;
and the drawing module is used for drawing and displaying the target area boundary line corresponding to the target map level according to the target area boundary data.
9. A terminal device, comprising: at least one processor and a memory;
the memory stores a computer program; the at least one processor executes the memory-stored computer program to implement the map viewing method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored therein, which when executed implements the map viewing method of any one of claims 1-7.
CN202210225416.8A 2022-03-07 2022-03-07 Map checking method, map checking device, terminal equipment and storage medium Pending CN114722131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210225416.8A CN114722131A (en) 2022-03-07 2022-03-07 Map checking method, map checking device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210225416.8A CN114722131A (en) 2022-03-07 2022-03-07 Map checking method, map checking device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114722131A true CN114722131A (en) 2022-07-08

Family

ID=82237652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210225416.8A Pending CN114722131A (en) 2022-03-07 2022-03-07 Map checking method, map checking device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114722131A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116774900A (en) * 2023-08-24 2023-09-19 中招国际招标有限公司 Interaction method of electronic map of engineering project management system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104599324A (en) * 2015-02-06 2015-05-06 浪潮集团有限公司 Map data loading method and map data loading device based on GIS (geographic information system) platform
CN106462945A (en) * 2014-07-29 2017-02-22 谷歌公司 Presenting hierarchies of map data at different zoom levels
CN107066593A (en) * 2017-04-19 2017-08-18 广东省科技基础条件平台中心 A kind of town level boundary coordinate data are combined the method and system of displaying with chart
CN109522490A (en) * 2018-09-18 2019-03-26 武汉大学 A kind of map visualization method of internet information
US10593074B1 (en) * 2016-03-16 2020-03-17 Liberty Mutual Insurance Company Interactive user interface for displaying geographic boundaries
CN111695045A (en) * 2019-03-14 2020-09-22 北京嘀嘀无限科技发展有限公司 Thermodynamic diagram display and thermodynamic data notification method and device
CN112129312A (en) * 2019-06-25 2020-12-25 上海擎感智能科技有限公司 Map display method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106462945A (en) * 2014-07-29 2017-02-22 谷歌公司 Presenting hierarchies of map data at different zoom levels
CN104599324A (en) * 2015-02-06 2015-05-06 浪潮集团有限公司 Map data loading method and map data loading device based on GIS (geographic information system) platform
US10593074B1 (en) * 2016-03-16 2020-03-17 Liberty Mutual Insurance Company Interactive user interface for displaying geographic boundaries
CN107066593A (en) * 2017-04-19 2017-08-18 广东省科技基础条件平台中心 A kind of town level boundary coordinate data are combined the method and system of displaying with chart
CN109522490A (en) * 2018-09-18 2019-03-26 武汉大学 A kind of map visualization method of internet information
CN111695045A (en) * 2019-03-14 2020-09-22 北京嘀嘀无限科技发展有限公司 Thermodynamic diagram display and thermodynamic data notification method and device
CN112129312A (en) * 2019-06-25 2020-12-25 上海擎感智能科技有限公司 Map display method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李一凡: "城市交通时空数据可视化研究", 软件导刊, 31 May 2021 (2021-05-31) *
李赛红;胡娟;: "基于百度地图的电信运营商营销区域管理系统开发设计", 赤峰学院学报(自然科学版), no. 24, 25 December 2016 (2016-12-25) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116774900A (en) * 2023-08-24 2023-09-19 中招国际招标有限公司 Interaction method of electronic map of engineering project management system
CN116774900B (en) * 2023-08-24 2023-12-12 中招国际招标有限公司 Interaction method of electronic map of engineering project management system

Similar Documents

Publication Publication Date Title
CN106845470B (en) Map data acquisition method and device
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
WO2021169274A1 (en) Historical map data processing method, apparatus and system
CN110515968B (en) Method and apparatus for outputting information
CN114595343B (en) Map display method and device, storage medium and electronic equipment
CN110618982A (en) Multi-source heterogeneous data processing method, device, medium and electronic equipment
CN114722131A (en) Map checking method, map checking device, terminal equipment and storage medium
WO2014107489A2 (en) System and method for crowdsourcing map production
CN108228904B (en) Method and apparatus for outputting information
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN111930875A (en) Environment data query method, device, equipment and medium
KR101310420B1 (en) User-definable Process-based Management System for Urban Planning and Recording Media for the Same
CN109271224B (en) Method and apparatus for determining position
CN114647707A (en) Map information display method and device, terminal equipment and storage medium
CN108595262B (en) Data processing method and device
CN113127207A (en) Crowdsourcing task resource allocation method and device, electronic equipment and storage medium
CN112507193A (en) Data updating method, device, equipment and storage medium
CN114779994A (en) Selection editing method and device, electronic equipment and computer readable storage medium
CN113765792B (en) Method, device and storage medium for generating navigation information
CN103561107A (en) Method and device for processing data downloading conflict
CN110569459A (en) statistical method and device for webpage information
CN115935110B (en) Large screen data migration system and method
CN112698807B (en) Voice broadcasting method, device and computer readable medium
CN112600918A (en) BS architecture-based industrial control edge big data efficient processing method and system
CN113010812B (en) Information acquisition method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination