CN110619028A - Map display method, device, terminal equipment and medium for house source detail page - Google Patents
Map display method, device, terminal equipment and medium for house source detail page Download PDFInfo
- Publication number
- CN110619028A CN110619028A CN201910526506.9A CN201910526506A CN110619028A CN 110619028 A CN110619028 A CN 110619028A CN 201910526506 A CN201910526506 A CN 201910526506A CN 110619028 A CN110619028 A CN 110619028A
- Authority
- CN
- China
- Prior art keywords
- house source
- map
- electronic map
- detail page
- information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
- Instructional Devices (AREA)
Abstract
The disclosure discloses a map display method, a map display device, terminal equipment and a medium for a house source detail page. The method comprises the following steps: acquiring position information of a house source corresponding to a current house source detail page; determining a target area in a target electronic map according to the position information; generating a map picture stored in an image format of the target area based on a target electronic map stored in a vector data format; and displaying the map picture at the set position of the current house source detail page. By using the method, the memory occupancy rate of the house source application program can be reduced, and the performance of the house source application program is improved.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for displaying a map of a house source detail page, a terminal device and a medium.
Background
With the rapid development of computer technology, more and more house resource application programs appear, and a user can find a house resource meeting the needs of the user by browsing the house resources in the house resource application programs. And the house source application program displays the house source to the user in a form of a house source detail page for the user to check.
At present, a large number of house sources are included in a house source application program, each house source is provided with a corresponding house source detail page, an electronic map corresponding to the location of the house source is displayed in each house source detail page, but the data volume required by the electronic map is large, so that the problems of high memory occupancy rate and low performance of the house source application program are caused.
Disclosure of Invention
The embodiment of the disclosure provides a map display method, a map display device, a terminal device and a medium for a house source detail page, so as to reduce the memory occupancy rate of a house source application program and improve the performance of the house source application program.
In a first aspect, an embodiment of the present disclosure provides a method for displaying a map of a house source detail page, which is applied to a house source application program, and includes:
acquiring the position information of the house source corresponding to the current house source detail page;
determining a target area in a target electronic map according to the position information;
generating a map picture stored in an image format of the target area based on a target electronic map stored in a vector data format;
and displaying the map picture at the set position of the current house source detail page.
In a second aspect, an embodiment of the present disclosure further provides a map display device for a house source detail page, including:
the position information acquisition module is used for acquiring the position information of the house source corresponding to the current house source detail page;
the target area determining module is used for determining a target area in the target electronic map according to the position information;
the map picture generation module is used for generating a map picture stored in an image format of the target area based on a target electronic map stored in a vector data format;
and the display module is used for displaying the map picture at the set position of the current house source detail page.
In a third aspect, an embodiment of the present disclosure further provides a terminal device, including:
one or more processing devices;
storage means for storing one or more programs;
the one or more programs are executed by the one or more processors, so that the one or more processing devices implement the method for displaying a map of a house source detail page provided by the embodiment of the present disclosure.
In a fourth aspect, the disclosed embodiment also provides a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processing device, implements the map display method of the house source detail page provided by the disclosed embodiment.
The embodiment of the disclosure provides a map display method, a map display device, a terminal device and a medium for a house source detail page, and by using the technical scheme, the position information of a house source corresponding to the current house source detail page can be acquired; then determining a target area in the target electronic map based on the position information; generating a map picture stored in an image format of a target area based on a target electronic map stored in a vector data format; and displaying the map picture at the set position of the current house source detail page. And displaying the map picture corresponding to the position information of the house source in the current house source detail page, thereby reducing the memory occupancy rate of the current house source detail page and further reducing the memory occupancy rate of the application program.
Drawings
Fig. 1 is a schematic flowchart of a map display method of a house source detail page according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a map display method of a house source detail page according to a second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a map display device of a house source detail page according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a schematic flow chart of a method for displaying a map on a house source detail page according to an embodiment of the present disclosure, where the method is applicable to displaying a map on a house source detail page, and in particular, the method is applicable to displaying a map on a house source detail page included in a house source application program. The method may be performed by a map display device of the house source detail page, wherein the device may be implemented by software and/or hardware and is generally integrated on a terminal device, in this embodiment, the terminal device includes but is not limited to: personal digital assistants, cell phones, and computers.
The maps displayed in the existing house source detail pages are all electronic maps stored in a vector data form. The application program comprises a plurality of house source detail pages, and each house source detail page stores an electronic map corresponding to the location of a house source, so that the memory occupancy rate of the house source application program is high. The map display method for the house source detail page provided by the embodiment can effectively reduce the memory occupancy rate of the house source application program. Specifically, as shown in fig. 1, a map display method for a house source detail page provided by a first embodiment of the present disclosure includes the following steps:
and S110, acquiring the position information of the house source corresponding to the current house source detail page.
In this embodiment, the current house source detail page may be understood as a currently operated house source detail page, such as a currently opened, prestored or processed house source detail page. The house source detail page may be understood as a page on which information about a house source is displayed. The specific content included in the information related to the house source is not limited, and may be set according to the actual situation, such as the property information of the house source (house type information, orientation information, and/or area information), the position information of the house source, the house introduction, and the contact information.
Each house source detail page in the house source application program can have a corresponding house source, and the step can acquire the position information of the house source corresponding to the current house source detail page. The time for determining the current house source detail page is not limited, and the house source detail page of the house source can be used as the current house source detail page when a new house source is added to the house source application program; or when the house source detail page is opened on the terminal equipment for installing the house source application program, taking the house source detail page as the current house source detail page; and when the house source application program determines the map picture corresponding to each house source detail page, one house source detail page is selected from each house source detail page in sequence to serve as the current house source detail page.
The location information may be coordinate information of the house source. The location information may be stored in a storage space corresponding to the anterior chamber source detail page in the room source application program, or a storage space may be separately set in the room source application program to store the location information corresponding to each room source. This step does not limit how the location information of the house source is obtained.
After the location information is obtained, the location information may be analyzed to further determine how to display the map corresponding to the current house source detail page.
And S120, determining a target area in the target electronic map according to the position information.
The target area may be understood as an area in the target electronic map containing the location information. The specific size of the target area, i.e. the included location range, is not limited, and those skilled in the art can determine the size of the target area according to the actual situation of the house source, for example, according to the surrounding facilities of the house source. A peripheral facility is understood to be a public facility at a set distance from the source.
The target electronic map may be understood as an electronic map containing the position information. The target electronic map may be a map stored in a vector data format, i.e., the target electronic map that performs the zoom-in, zoom-out, and rotation operations is not distorted. The target electronic map can be stored in the house source application program, for example, the target electronic map is stored in a window in a hidden mode so as to be called by each current house source detail page.
After the position information is determined, the step may determine a target area including the position information in the target electronic map. Specifically, this step may select a target area including position information from the target electronic map based on the coordinate values or the peripheral facilities of the house source.
And S130, generating a map picture stored in an image format of the target area based on the target electronic map stored in the vector data format.
After the target area is determined, the map picture of the target area can be determined in the step, so that the map picture can be displayed in the current house source detail page conveniently. The map picture can comprise the place where the house source is located, so that a user can conveniently know the place where the house source is located.
In the step, when the map picture is generated, the picture of the target electronic map can be rendered, and then the rendered data is subjected to screenshot to obtain the map picture. The rendered data can be a vector diagram, and the step can be used for carrying out screenshot on the vector diagram to obtain a map picture. The means of the screenshot is not limited as long as the target area is included.
It can be understood that the house source information can be marked on the target electronic map in the process of generating the map picture, so that the user can more intuitively know the house source information from the map picture. For example, the house source information is marked in the target electronic map or the house source information is marked in the target picture corresponding to the target electronic map.
When the target picture is marked, a marker can be arranged at the position to be marked, the display position of the marker is strongly associated with the coordinates of the position to be marked, so that the marker can be always displayed at the position to be marked without distortion when the map picture is operated, and the position to be marked can be determined according to the house source information. The marking of the target picture can ensure that the obtained map picture is not distorted when the operations such as zooming in and zooming out are carried out. The specific content of the marker is not limited, and may be set according to actual requirements, for example, the marker is a specific content (such as coordinate value) of a set shape or house source information.
The house source information includes but is not limited to: the house source position information and the surrounding facility information of the house source. The peripheral facility information may be understood as information of public facilities at a set distance from the house source. The surrounding facility information includes, but is not limited to, facility geographical location information and facility attribute information. The facility geographical location may be represented by coordinates and the facility attribute information may be a name of the facility.
And S140, displaying the map picture at the set position of the current house source detail page.
After the map picture of the target area is obtained, the map picture can be displayed at the set position of the current house source detail page for the user to view, such as in a window to be displayed of the target area in the current house source detail page.
It can be understood that each current house source detail page can acquire a corresponding map picture to be displayed at a corresponding set position after the house source application program is installed and is opened for the first time. After each current house source detail page is closed, the map picture can be deleted; or may be reserved in the storage space corresponding to the current house source detail page, so as to be called directly when the current house source detail page is opened later.
It should be noted that when the map picture of the previous room source detail page or the map pictures of the other room source detail pages are generated, the target electronic map is marked, and before the map picture corresponding to the current room source detail page is generated, the marking information in the target electronic map may be deleted first.
The marking information is obtained by marking previous house source information of the current house source detail page or other house source information corresponding to the other house source detail pages, and the previous house source information is information used for generating a map picture on the current house source detail page.
The house source information in the house source detail page may have an updated condition, if the house source information in the house source detail page is updated, the corresponding house source detail page may acquire the map picture again, and the house source information used by the last generation of the target picture in the house source detail page may be referred to as the previous house source information. The last generated map picture on the house source detail page may be referred to as the last map picture. The remaining house source detail pages can be understood as house source detail pages in the house source application program except for the current house source detail page. The rest of the house source information can be understood as the house source information of the house source corresponding to the rest of the house source detail pages.
According to the map display method for the house source detail page provided by the first embodiment of the disclosure, by using the method, the position information of the house source corresponding to the current house source detail page can be acquired; then determining a target area in the target electronic map based on the position information; generating a map picture stored in an image format of a target area based on a target electronic map stored in a vector data format; and displaying the map picture at the set position of the current house source detail page. And displaying the map picture corresponding to the position information of the house source in the current house source detail page, thereby reducing the memory occupancy rate of the current house source detail page and further reducing the memory occupancy rate of the application program.
The present embodiment further provides an optional embodiment, in which determining a target area in a target electronic map according to the location information includes:
acquiring a target electronic map stored in a vector data format corresponding to the position information;
and selecting an area with a set distance from the position information in the target electronic map as a target area.
When determining the target area of the position information, the target electronic map stored in the vector format corresponding to the position information may be acquired first. The target electronic map can be obtained locally from a client or remotely from a server. The client locally can store a complete electronic map, namely the electronic map comprising all positions of the whole country; the map can also be a partial electronic map, and the partial electronic map can be understood as an electronic map of a set area. The setting area may be divided into administrative areas, which is not limited herein.
When the local storage space stores part of the electronic map, whether the target electronic map exists in the local storage space can be determined when the target electronic map is acquired, and if the target electronic map does not exist, the target electronic map is acquired from the server remotely. When the local storage space stores the complete electronic map, the local map stored in the local storage space is directly used as the target electronic map.
It can be understood that, in order to reduce the memory occupancy rate of the house resource application program, the house resource application program may not store the electronic map at the time of initial downloading, and the electronic map may be a complete electronic map or a partial electronic map. When the current house source detail page requests the house source application program for the target electronic map, the house source application program remotely acquires the remote electronic map containing the position information required by the current house source detail page from the server, and the remote electronic map is used as the target electronic map and is stored in the local storage space of the client.
And when the other house source detail pages correspond to the other position information to obtain the corresponding target electronic map, determining whether the local storage space has the target electronic map containing the other position information to determine an obtaining path of the target electronic map, such as local obtaining or remote obtaining.
After the target electronic map is obtained, an area with a set distance from the position information can be selected from the target electronic map as a target area, and the determination means of the set distance is not limited, can be a set value, and can also be determined according to facilities around the house source. When the set distance is determined by the house source peripheral facility, it can be ensured that the house source peripheral facility is included in the target area.
This embodiment further provides an optional embodiment, in which the obtaining of the target electronic map stored in the vector data format corresponding to the location information includes:
identifying whether a target electronic map exists in a local storage space of a client of the house source application program;
if so, acquiring a local electronic map stored based on a vector data format from the local storage space of the client as a target electronic map;
if so, remotely acquiring a remote electronic map containing the position information from a server, adding the remote electronic map into a local storage space of the client as a target electronic map, and storing the remote electronic map in a vector data format.
When the target electronic map is acquired, whether the target electronic map exists or not can be firstly identified from the local storage space. The identification means is not limited, for example, a map stored in the local storage space may be provided with range information, and the range information may be understood as identifying a geographic range covered by the corresponding map, for example, stored in the form of coordinates. And then matching the position information corresponding to the target electronic map with the range information, and determining whether the range information comprises the position information or not so as to determine whether the target electronic map exists or not.
If yes, a local electronic map corresponding to the position information can be directly obtained from the local storage space to serve as a target electronic map; otherwise, the remote electronic map containing the position information is remotely acquired from the server to serve as the target electronic map, and the remote electronic map is added to the local storage space for subsequent identification and use.
The present embodiment further provides an optional embodiment, in which, based on the target electronic map stored in the vector data format, generating a map picture stored in the image format of the target area includes:
generating a corresponding target picture based on a target electronic map stored in a vector data format;
acquiring second house source information of the house source, and marking the second house source information at a position of the target picture corresponding to the second house source information;
and cutting the marked target picture to obtain a map picture stored in the image format of the target area.
In this example, the marking operation may be performed when the map picture is generated. Specifically, the target electronic map may be rendered first, then marked in the rendered target image, and the map image may be obtained by capturing a picture after marking.
Specifically, firstly, picture rendering is carried out on the basis of the target electronic map to generate a target picture corresponding to the target electronic map. When the target picture is marked, second room source information of the room source can be acquired, and the second room source information is marked at the corresponding position of the target picture based on the room source position information included in the second room source information. The related content of the second room source information and the first room source information may refer to the related content of the room source information, which is not described herein again.
And after the marked target picture is obtained, cutting the marked target picture based on the target area to obtain a map picture stored in the image format of the target area. The cutting means is not limited herein.
Example two
Fig. 2 is a schematic flow chart of a map display method of a house source detail page according to a second embodiment of the present disclosure, and the second embodiment is optimized based on the above embodiments. In this embodiment, the optimizing, to acquire the target electronic map stored in the vector data format corresponding to the position information, includes:
acquiring an initial electronic map stored in a local storage space of a client of the house source application program;
if the initial electronic map comprises the mark information, deleting the mark information in the initial electronic map to obtain a target electronic map; and if not, directly taking the initial electronic map as the target electronic map, wherein the marking information is obtained by marking the previous house source information of the current house source detail page or the rest house source information corresponding to the rest house source detail pages, and the previous house source information is information used for generating a map picture on the current house source detail page.
Further, the embodiment also generates a map picture stored in an image format of the target area based on the target electronic map stored in a vector data format, and the optimization includes:
and acquiring data from the target electronic map stored in the vector data format according to the window to be displayed of the target area on the current house source detail page, and rendering the picture to obtain the map picture stored in the image format.
On the basis of the optimization, before displaying the map picture at the current set position of the house source detail page, the method further comprises the following steps:
acquiring first house source information of the house source;
and marking the first house source information at the position of the map picture corresponding to the first house source information to obtain a marked map picture.
Further, acquiring the position information of the house source corresponding to the current house source detail page includes:
and after an opening instruction of the current house source detail page is detected, acquiring the position information of the house source corresponding to the current house source detail page.
Please refer to the first embodiment for a detailed description of the present embodiment.
As shown in fig. 2, a map display method for a house source detail page provided by the second embodiment of the present disclosure includes the following steps:
s210, after an opening instruction of the current house source detail page is detected, position information of the house source corresponding to the current house source detail page is obtained.
An open instruction may be understood as an instruction that triggers the current premises detail page to be opened on the terminal device. And if the opening instruction is detected, the current house source detail page can be considered to be opened, and the corresponding position information can be acquired in the step, so that the corresponding map picture is determined, and the map picture is displayed.
It can be understood that, when the target house source is displayed in the house source list display interface, the corresponding house source detail page may be pre-stored in the cache, and the house source detail page is taken as the current house source detail page. When the user clicks the target house source, the corresponding current house source detail page is opened, and the house source application program can acquire the position information of the house source corresponding to the current house source detail page so as to determine the corresponding map picture.
And S220, acquiring an initial electronic map stored in the local storage space of the client of the house source application program.
When the target electronic map is determined, the initial electronic map can be acquired from the local storage space of the client. The initial electronic map may be considered the electronic map stored by the house source application when determining the map picture of the current house source detail page. The initial electronic map may include label information.
S230, judging whether the initial electronic map comprises marking information or not, if so, executing S240; if not, go to S250.
The marking information is obtained by marking previous house source information of the current house source detail page or other house source information corresponding to the other house source detail pages, and the previous house source information is information used for generating a map picture on the current house source detail page.
If the initial electronic map comprises the mark information, deleting the mark information, namely executing S240; otherwise, the initial electronic map is directly processed, i.e. S250 is executed.
And S240, deleting the mark information in the initial electronic map to obtain a target electronic map, and executing S260.
When the mark information is included in the initial electronic map, the mark information in the initial electronic map can be removed in the step, so that the house source information in the current house source detail page can be marked.
And S250, directly taking the initial electronic map as the target electronic map.
And S260, selecting an area with a set distance from the position information in the target electronic map as a target area.
S270, acquiring data from the target electronic map stored in the vector data format according to the window to be displayed of the target area in the current house source detail page, and performing picture rendering to obtain a map picture stored in the image format.
The current window to be displayed can be understood as a window displaying a map picture in the current house source detail page. The size of the window to be displayed can be set, so that when the map picture is generated, the data of the corresponding target area can be acquired from the target electronic map stored in the vector data format based on the size of the window to be displayed, and the picture rendering is carried out to obtain the map picture stored in the image format of the target area.
S280, acquiring first house source information of the house source.
The map picture can be marked after the map picture is obtained. During marking, the first house source information of the house source can be obtained in the step, the first house source information and the second house source information can be the same content or different contents, and the technical personnel in the field can set the first house source information and the second house source information according to actual conditions.
In this step, the first house source information may be obtained locally from the client, or may be obtained remotely from the server, which is not limited herein.
S290, marking the first house source information at the position of the map picture corresponding to the first house source information to obtain a marked map picture.
The means for marking the first room source information can refer to the means for marking the second room source information, and is not described herein again. The map picture in this embodiment may be regarded as a picture obtained by performing screenshot processing and then performing marking processing.
And S2100, displaying the map picture at the set position of the current house source detail page.
The following exemplarily describes an embodiment of the present disclosure, which provides a high-performance map screenshot scheme applied to a house source detail page, and can effectively and high-performance solve the problems of high memory occupation and low performance of a house source application program.
Specifically, the method comprises the following steps:
1. the electronic map is created at the time when the map is needed (only once), all house source detail pages share the electronic map in the future, and particularly, the current electronic map is not added into the page view stack of the house source detail pages, but is added into the window currently displayed, and the map control needs to be hidden.
2. And in the place where the map is used on the house source detail page, the created electronic map is referenced in a weak referencing way, but the electronic map is not added, only screenshot is carried out, and then the intercepted picture is displayed in a corresponding control.
3. When a new page is displayed each time, resource management is needed, data such as marking points and the like added in the electronic map are removed, and when the current house source detail page returns to continue to obtain other map pictures, removal operation is also needed, so that the accuracy of screenshot is guaranteed. The rest map pictures can be understood as pictures corresponding to the rest information required by the current house source detail page. The determination means of the other map pictures can refer to the determination means of the map pictures, which is not described herein again.
The map display method for the house source detail page provided by the second embodiment of the disclosure embodies the operation of acquiring the target electronic map, the operation of generating the map picture and the operation of acquiring the position information, and further optimizes the marking operation. By using the method, after the opening instruction is detected, the position information can be acquired, and the target area in the target electronic map is determined based on the position information. The target electronic map may be determined from the initial electronic map. And when the mark information exists in the initial electronic map, deleting the mark information to obtain the target electronic map. The accuracy of processing the target electronic map is ensured. And after the target area is obtained, performing picture rendering on data of the corresponding target area in the target electronic map based on the window to be displayed of the target area to obtain a map picture. Then, the map picture is marked based on the first house source information, and then the marked map picture is displayed at the set position of the current house source detail page, so that the marked map picture is not distorted when being operated, and the experience of a user in using a house source application program is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a map display device of a house source detail page according to a third embodiment of the present disclosure, where the device is applicable to displaying a map in the house source detail page, and specifically, the device is applicable to displaying a map in the house source detail included in a house source application program. Wherein the means can be implemented by software and/or hardware and are typically integrated on the terminal device.
As shown in fig. 3, the apparatus includes: a position information acquisition module 31, a target area determination module 32, a map picture generation module 33, and a display module 34;
the position information acquiring module 31 is configured to acquire position information of a house source corresponding to a current house source detail page;
a target area determining module 32, configured to determine a target area in the target electronic map according to the location information;
the map picture generating module 33 is configured to generate a map picture stored in an image format of the target area based on the target electronic map stored in the vector data format;
a display module 34, configured to display the map picture at the set position of the current house source detail page.
In this embodiment, the apparatus first obtains the location information of the house source corresponding to the current house source detail page through the location information obtaining module 31; secondly, determining a target area in the target electronic map according to the position information through a target area determining module 32; then, a map picture stored in an image format of the target area is generated based on the target electronic map stored in a vector data format through a map picture generation module 33; and finally, displaying the map picture at the set position of the current house source detail page through a display module 34.
The embodiment provides a map display device for a house source detail page, which can acquire position information of a house source corresponding to a current house source detail page; then determining a target area in the target electronic map based on the position information; generating a map picture stored in an image format of a target area based on a target electronic map stored in a vector data format; and displaying the map picture at the set position of the current house source detail page. And displaying the map picture corresponding to the position information of the house source in the current house source detail page, thereby reducing the memory occupancy rate of the current house source detail page and further reducing the memory occupancy rate of the application program.
Further, the target area determination module 32 includes:
the acquisition unit is used for acquiring a target electronic map stored in a vector data format corresponding to the position information;
and the selecting unit is used for selecting an area with a set distance from the position information in the target electronic map as a target area.
Further, the obtaining unit is specifically configured to:
identifying whether a target electronic map exists in a local storage space of a client of the house source application program;
if so, acquiring a local electronic map stored based on a vector data format from the local storage space of the client as a target electronic map;
if so, remotely acquiring a remote electronic map containing the position information from a server, adding the remote electronic map into a local storage space of the client as a target electronic map, and storing the remote electronic map in a vector data format.
Further, the obtaining unit is specifically configured to:
acquiring an initial electronic map stored in a local storage space of a client of the house source application program;
if the initial electronic map comprises the mark information, deleting the mark information in the initial electronic map to obtain a target electronic map; and if not, directly taking the initial electronic map as the target electronic map, wherein the marking information is obtained by marking the previous house source information of the current house source detail page or the rest house source information corresponding to the rest house source detail pages, and the previous house source information is information used for generating a map picture on the current house source detail page.
Further, the map picture generating module 33 is specifically configured to: and acquiring data from the target electronic map stored in the vector data format according to the window to be displayed of the target area on the current house source detail page, and rendering the picture to obtain the map picture stored in the image format.
Further, the apparatus further comprises: a marking module to: displaying the map picture before the current house source detail page set position, and acquiring first house source information of the house source;
and marking the first house source information at the position of the map picture corresponding to the first house source information to obtain a marked map picture.
Further, the map picture generating module 33 is specifically configured to:
generating a corresponding target picture based on a target electronic map stored in a vector data format;
acquiring second house source information of the house source, and marking the second house source information at a position of the target picture corresponding to the second house source information;
and cutting the marked target picture to obtain a map picture stored in the image format of the target area.
Further, the position information obtaining module 31 is specifically configured to: and after an opening instruction of the current house source detail page is detected, acquiring the position information of the house source corresponding to the current house source detail page.
The map display device for the house source detail page can execute the map display method for the house source detail page provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present disclosure. Fig. 4 shows a schematic structural diagram of a terminal device 400 suitable for implementing an embodiment of the present disclosure. The terminal device 400 in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), etc., and a stationary terminal such as a digital TV, a desktop computer, etc. The terminal device 400 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the terminal device 400 may include one or more processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. The one or more processing devices 401 implement a map display method of the house source detail page as provided by the present disclosure. In the RAM403, various programs and data necessary for the operation of the terminal apparatus 400 are also stored. The processing device 401, the ROM402, and the RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408, including, for example, magnetic tape, hard disk, etc., storage 408 for storing one or more programs; and a communication device 409. The communication means 409 may allow the terminal device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates a terminal apparatus 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable medium may be contained in the terminal device 400; or may exist separately without being assembled into the terminal device 400.
The computer-readable medium carries one or more programs which, when executed by the terminal device, cause the terminal device 400 to: acquiring position information of a house source corresponding to a current house source detail page;
determining a target area in a target electronic map according to the position information;
generating a map picture stored in an image format of the target area based on a target electronic map stored in a vector data format;
and displaying the map picture at the set position of the current house source detail page.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation on the module itself.
Optionally, the determining a target area in the target electronic map according to the location information includes:
acquiring a target electronic map stored in a vector data format corresponding to the position information;
and selecting an area with a set distance from the position information in the target electronic map as a target area.
Optionally, the obtaining of the target electronic map stored in the vector data format corresponding to the location information includes:
identifying whether a target electronic map exists in a local storage space of a client of the house source application program;
if so, acquiring a local electronic map stored based on a vector data format from the local storage space of the client as a target electronic map;
if so, remotely acquiring a remote electronic map containing the position information from a server, adding the remote electronic map into a local storage space of the client as a target electronic map, and storing the remote electronic map in a vector data format.
Optionally, the obtaining of the target electronic map stored in the vector data format corresponding to the location information includes:
acquiring an initial electronic map stored in a local storage space of a client of the house source application program;
if the initial electronic map comprises the mark information, deleting the mark information in the initial electronic map to obtain a target electronic map; and if not, directly taking the initial electronic map as the target electronic map, wherein the marking information is obtained by marking the previous house source information of the current house source detail page or the rest house source information corresponding to the rest house source detail pages, and the previous house source information is information used for generating a map picture on the current house source detail page.
Optionally, the generating a map picture stored in an image format of the target area based on the target electronic map stored in the vector data format includes:
and acquiring data from the target electronic map stored in the vector data format according to the window to be displayed of the target area on the current house source detail page, and rendering the picture to obtain the map picture stored in the image format.
Optionally, before displaying the map picture at the current set position of the house source detail page, the method further includes:
acquiring first house source information of the house source;
and marking the first house source information at the position of the map picture corresponding to the first house source information to obtain a marked map picture.
Optionally, the generating a map picture stored in an image format of the target area based on the target electronic map stored in the vector data format includes:
generating a corresponding target picture based on a target electronic map stored in a vector data format;
acquiring second house source information of the house source, and marking the second house source information at a position of the target picture corresponding to the second house source information;
and cutting the marked target picture to obtain a map picture stored in the image format of the target area.
Optionally, the obtaining of the location information of the house source corresponding to the current house source detail page includes:
and after an opening instruction of the current house source detail page is detected, acquiring the position information of the house source corresponding to the current house source detail page.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (11)
1. A map display method of a house source detail page is characterized by being applied to a house source application program and comprising the following steps:
acquiring position information of a house source corresponding to a current house source detail page;
determining a target area in a target electronic map according to the position information;
generating a map picture stored in an image format of the target area based on a target electronic map stored in a vector data format;
and displaying the map picture at the set position of the current house source detail page.
2. The method of claim 1, wherein determining the target area in the target electronic map according to the location information comprises:
acquiring a target electronic map stored in a vector data format corresponding to the position information;
and selecting an area with a set distance from the position information in the target electronic map as a target area.
3. The method according to claim 2, wherein the obtaining of the target electronic map stored in the vector data format corresponding to the location information comprises:
identifying whether a target electronic map exists in a local storage space of a client of the house source application program;
if so, acquiring a local electronic map stored based on a vector data format from the local storage space of the client as a target electronic map;
if so, remotely acquiring a remote electronic map containing the position information from a server, adding the remote electronic map into a local storage space of the client as a target electronic map, and storing the remote electronic map in a vector data format.
4. The method according to claim 2, wherein the obtaining of the target electronic map stored in the vector data format corresponding to the location information comprises:
acquiring an initial electronic map stored in a local storage space of a client of the house source application program;
if the initial electronic map comprises the mark information, deleting the mark information in the initial electronic map to obtain a target electronic map; and if not, directly taking the initial electronic map as the target electronic map, wherein the marking information is obtained by marking the previous house source information of the current house source detail page or the rest house source information corresponding to the rest house source detail pages, and the previous house source information is information used for generating a map picture on the current house source detail page.
5. The method according to claim 1, wherein the generating of the map picture stored in the image format of the target area based on the target electronic map stored in the vector data format comprises:
and acquiring data from the target electronic map stored in the vector data format according to the window to be displayed of the target area on the current house source detail page, and rendering the picture to obtain the map picture stored in the image format.
6. The method of claim 1, wherein displaying the map picture at the current house source detail page set location further comprises:
acquiring first house source information of the house source;
and marking the first house source information at the position of the map picture corresponding to the first house source information to obtain a marked map picture.
7. The method according to claim 1, wherein the generating of the map picture stored in the image format of the target area based on the target electronic map stored in the vector data format comprises:
generating a corresponding target picture based on a target electronic map stored in a vector data format;
acquiring second house source information of the house source, and marking the second house source information at a position of the target picture corresponding to the second house source information;
and cutting the marked target picture to obtain a map picture stored in the image format of the target area.
8. The method according to claim 1, wherein the obtaining of the location information of the house source corresponding to the current house source detail page comprises:
and after an opening instruction of the current house source detail page is detected, acquiring the position information of the house source corresponding to the current house source detail page.
9. A map display apparatus for a house source detail page, comprising:
the position information acquisition module is used for acquiring the position information of the house source corresponding to the current house source detail page;
the target area determining module is used for determining a target area in the target electronic map according to the position information;
the map picture generation module is used for generating a map picture stored in an image format of the target area based on a target electronic map stored in a vector data format;
and the display module is used for displaying the map picture at the set position of the current house source detail page.
10. A terminal device, comprising:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processing devices to implement the method of map display of a premises detail page of any of claims 1-8.
11. A computer-readable medium, on which a computer program is stored, which, when being executed by processing means, carries out a method of map display of a room source detail page according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526506.9A CN110619028A (en) | 2019-06-18 | 2019-06-18 | Map display method, device, terminal equipment and medium for house source detail page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526506.9A CN110619028A (en) | 2019-06-18 | 2019-06-18 | Map display method, device, terminal equipment and medium for house source detail page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110619028A true CN110619028A (en) | 2019-12-27 |
Family
ID=68921305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910526506.9A Pending CN110619028A (en) | 2019-06-18 | 2019-06-18 | Map display method, device, terminal equipment and medium for house source detail page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110619028A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111274342A (en) * | 2020-01-17 | 2020-06-12 | 青梧桐有限责任公司 | Report display method and system based on map technology |
CN111931044A (en) * | 2020-07-23 | 2020-11-13 | 北京字节跳动网络技术有限公司 | Information display method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103699975A (en) * | 2013-12-31 | 2014-04-02 | 深圳市科漫达智能管理科技有限公司 | Picture-based cell map generating and business data showing method and system |
CN106354758A (en) * | 2016-08-17 | 2017-01-25 | 北京小米移动软件有限公司 | Method and device for processing house information |
WO2017128304A1 (en) * | 2016-01-29 | 2017-08-03 | 盛玉伟 | Method and system for displaying property information on real estate website |
CN107958429A (en) * | 2016-10-17 | 2018-04-24 | 北京楼世界互联网科技发展有限公司 | A kind of building guidance system based on mobile terminal |
CN108388611A (en) * | 2018-02-07 | 2018-08-10 | 链家网(北京)科技有限公司 | A kind of information of real estate display methods and server |
US10102597B1 (en) * | 2006-10-30 | 2018-10-16 | The MLSOnline.com, Inc. | Internet based interactive graphical interface for real estate listings |
-
2019
- 2019-06-18 CN CN201910526506.9A patent/CN110619028A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10102597B1 (en) * | 2006-10-30 | 2018-10-16 | The MLSOnline.com, Inc. | Internet based interactive graphical interface for real estate listings |
CN103699975A (en) * | 2013-12-31 | 2014-04-02 | 深圳市科漫达智能管理科技有限公司 | Picture-based cell map generating and business data showing method and system |
WO2017128304A1 (en) * | 2016-01-29 | 2017-08-03 | 盛玉伟 | Method and system for displaying property information on real estate website |
CN106354758A (en) * | 2016-08-17 | 2017-01-25 | 北京小米移动软件有限公司 | Method and device for processing house information |
CN107958429A (en) * | 2016-10-17 | 2018-04-24 | 北京楼世界互联网科技发展有限公司 | A kind of building guidance system based on mobile terminal |
CN108388611A (en) * | 2018-02-07 | 2018-08-10 | 链家网(北京)科技有限公司 | A kind of information of real estate display methods and server |
Non-Patent Citations (1)
Title |
---|
彭杰: "基于切片地图Web服务的地理信息发布技术研究", 《中国优秀博硕士学位论文全文数据库(硕士) 基础科学辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111274342A (en) * | 2020-01-17 | 2020-06-12 | 青梧桐有限责任公司 | Report display method and system based on map technology |
CN111931044A (en) * | 2020-07-23 | 2020-11-13 | 北京字节跳动网络技术有限公司 | Information display method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110046021B (en) | Page display method, device, system, equipment and storage medium | |
CN109460233B (en) | Method, device, terminal equipment and medium for updating native interface display of page | |
CN106845470B (en) | Map data acquisition method and device | |
EP4210320A1 (en) | Video processing method, terminal device and storage medium | |
US20220277481A1 (en) | Panoramic video processing method and apparatus, and storage medium | |
CN111459364B (en) | Icon updating method and device and electronic equipment | |
CN111273830A (en) | Data display method and device, electronic equipment and computer readable medium | |
CN111222509A (en) | Target detection method and device and electronic equipment | |
CN111694629A (en) | Information display method and device and electronic equipment | |
CN110134905B (en) | Page update display method, device, equipment and storage medium | |
CN110619028A (en) | Map display method, device, terminal equipment and medium for house source detail page | |
CN114417782A (en) | Display method and device and electronic equipment | |
CN111862342B (en) | Augmented reality texture processing method and device, electronic equipment and storage medium | |
CN116681765A (en) | Method for determining identification position in image, method for training model, device and equipment | |
CN110427584A (en) | Page generation method, device, electronic equipment and computer readable storage medium | |
CN110807164B (en) | Automatic image area adjusting method and device, electronic equipment and computer readable storage medium | |
CN114090817A (en) | Dynamic construction method and device of face feature database and storage medium | |
CN116527993A (en) | Video processing method, apparatus, electronic device, storage medium and program product | |
CN110619089B (en) | Information retrieval method and device | |
CN111835917A (en) | Method, device and equipment for showing activity range and computer readable medium | |
CN116266206A (en) | Page display method and device and electronic equipment | |
CN114332224A (en) | Method, device and equipment for generating 3D target detection sample and storage medium | |
US12020347B2 (en) | Method and apparatus for text effect processing | |
CN111159593A (en) | Method and device for generating flow chart, storage medium and electronic equipment | |
CN111461227B (en) | Sample generation method, device, electronic equipment and computer readable 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230425 Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299 Applicant after: Beijing youzhuju Network Technology Co.,Ltd. Address before: No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081 Applicant before: Beijing infinite light field technology Co.,Ltd. |