CN115758002A - Method, device, equipment and program product for displaying electronic map POI - Google Patents

Method, device, equipment and program product for displaying electronic map POI Download PDF

Info

Publication number
CN115758002A
CN115758002A CN202211371671.XA CN202211371671A CN115758002A CN 115758002 A CN115758002 A CN 115758002A CN 202211371671 A CN202211371671 A CN 202211371671A CN 115758002 A CN115758002 A CN 115758002A
Authority
CN
China
Prior art keywords
poi
display
display layout
data
electronic map
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
CN202211371671.XA
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202211371671.XA priority Critical patent/CN115758002A/en
Publication of CN115758002A publication Critical patent/CN115758002A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Instructional Devices (AREA)

Abstract

The present disclosure provides a method, an apparatus, a device and a program product for displaying an electronic map POI, which relate to an electronic map technology, and include: acquiring display style data and display content data of the POI; determining a display layout index matched with the display style data and the display content data, and inquiring whether the display layout data of the POI is stored locally or not according to the index; if the display layout data of the POI on the electronic map is stored locally, the display layout data of the POI is loaded on the electronic map displayed in the display area; and if the display layout data of the POI is not stored locally, determining the display layout data of the POI according to the display style data and the display content data, storing the determined display layout data, and loading the determined display layout data of the POI on the electronic map displayed in the display area. The scheme of the disclosure can store the calculated POI layout result, improve the POI display efficiency, and reduce the performance loss of the terminal device caused by the calculation of the layout result.

Description

Method, device, equipment and program product for displaying electronic map POI
Technical Field
The present disclosure relates to electronic map technologies, and in particular, to a method, an apparatus, a device, and a program product for displaying an electronic map POI.
Background
A Point of Interest (POI), such as a shop, a school, a mailbox, a station, etc., can be displayed in the electronic map. When the terminal displays the map, the POI data are loaded first, and then drawing is carried out in a screen according to the POI data. In the prior art, a binary private format file is generally used for configuring display style data of a POI, and specifically, display content data is configured for the POI in the binary private format file based on a key value pair, which results in a relatively single display style of the POI, and in order to diversify the POI display style, the display style data of the POI may be configured using files in formats such as xml (Extensible Markup Language), json (JS Object Notation), and the like, but this implementation manner may increase the amount of calculation at the terminal side.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device and a program product for displaying an electronic map POI, so as to solve the problem in the prior art that the calculation amount of a terminal side is large when configuring richer styles for the POI.
A first aspect of the present disclosure is to provide a display method of an electronic map POI, including:
acquiring display style data and display content data of the POI;
determining a display layout index matched with the display style data and the display content data, and inquiring whether display layout data of the POI on the electronic map is stored locally or not according to the display layout index;
if the display layout data of the POI on the electronic map is stored locally, the display layout data of the POI is loaded on the electronic map displayed in a display area;
if the display layout data of the POI on the electronic map is not stored locally, determining the display layout data of the POI on the electronic map according to the display style data and the display content data, and storing the determined display layout data, wherein the display layout data of the POI and the display layout index of the POI have a corresponding relationship, and loading the determined display layout data of the POI on the electronic map displayed in a display area.
Another aspect of the present disclosure is to provide a display apparatus of an electronic map POI, including:
an acquisition unit configured to acquire display style data and display content data of a POI;
the query unit is used for determining a display layout index matched with the display style data and the display content data and querying whether display layout data of the POI on the electronic map is stored locally or not according to the display layout index;
the drawing unit is used for loading the display layout data of the POI on the electronic map displayed in a display area if the display layout data of the POI on the electronic map is locally stored;
and the calculating unit is used for determining the display layout data of the POI on the electronic map according to the display style data and the display content data and storing the determined display layout data if the display layout data of the POI on the electronic map is not locally stored, wherein the display layout data of the POI and the display layout index of the POI have a corresponding relationship, and the drawing unit is also used for loading the determined display layout data of the POI on the electronic map displayed in a display area.
Yet another aspect of the present disclosure is to provide an electronic device including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of displaying an electronic map POI as described in the first aspect above.
It is a further aspect of the present disclosure to provide a computer-readable storage medium having stored thereon a computer program which is executed by a processor to implement the method of displaying an electronic map POI as described in the first aspect above.
It is a further aspect of the present disclosure to provide a computer program product comprising a computer program which, when executed by a processor, implements the method of displaying an electronic map POI as described in the first aspect above.
The display method, the device, the equipment and the program product of the electronic map POI have the technical effects that:
the method, the device, the equipment and the program product for displaying the electronic map POI provided by the embodiment comprise the following steps: acquiring display style data and display content data of the POI; determining a display layout index matched with the display style data and the display content data, and inquiring whether display layout data of the POI on the electronic map is stored locally or not according to the display layout index; if the display layout data of the POI on the electronic map is stored locally, the display layout data of the POI is loaded on the electronic map displayed in a display area; if the display layout data of the POI on the electronic map is not stored locally, determining the display layout data of the POI on the electronic map according to the display style data and the display content data, and storing the determined display layout data, wherein the display layout data of the POI has a corresponding relation with the display layout index of the POI, and the determined display layout data of the POI is loaded on the electronic map displayed in a display area. The scheme of the disclosure can store the calculated display layout data of the POI, improve the display efficiency of the POI and reduce the performance loss of the terminal equipment caused by the calculation of the display layout data.
Drawings
FIG. 1 is a schematic diagram of an electronic map shown in an exemplary embodiment;
fig. 2 is a flowchart illustrating a method for displaying an electronic map POI according to an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a POI display effect according to an exemplary embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a method for displaying an electronic map POI according to another exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram of the components used to implement aspects of the present disclosure;
fig. 6 is a structural diagram of a display apparatus of an electronic map POI shown in an exemplary embodiment of the present disclosure;
fig. 7 is a structural diagram of a display apparatus of an electronic map POI shown in another exemplary embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure.
Detailed Description
FIG. 1 is a schematic diagram of an electronic map shown in an exemplary embodiment.
As shown in fig. 1, the electronic map includes various map elements, such as points, lines, faces, POIs, etc., which are relatively fixed in style and dimension and may be shops, schools, mail boxes, stations, etc. in the electronic map. In the case of POI, the POI is usually presented to the user in a single icon and text manner, and the presentation style is relatively single.
The display style data of the POI is generally configured by using a binary private format file, and particularly, a style is configured for the POI in a key-value pair-based manner in the binary private format file. For example, the text color of the POI is set to the color corresponding to key 1. When the terminal equipment installs the application program or updates the application program, the style file of the POI can be saved to the local.
This scheme configures the display style of the POI in a key-value pair manner, resulting in monotonous POI content and style that can be displayed.
In order to more flexibly configure the POI and make the display effect of the POI more rich, the scheme configures the POI style by using files in formats such as xml (Extensible Markup Language), json (JS Object Notation) and the like. Alternatively, other custom protocols may be used to configure POI styles.
When the terminal specifically displays the POI, POI display style data and display content data need to be loaded, then layout is calculated, screen range is judged, gland detection among the POI is carried out, POI drawing data are created, and finally the POI drawing data are displayed on the terminal equipment. If the display style of the POI is configured by the xml file, the configured style content is richer, the layout is more complex when the layout is calculated according to the display style data and the display content data, and further the performance loss of the terminal can be increased.
Fig. 2 is a flowchart illustrating a method for displaying an electronic map POI according to an exemplary embodiment of the disclosure.
As shown in fig. 2, the method for displaying an electronic map POI according to the present disclosure includes:
step 201, display style data and display content data of the POI are obtained.
The scheme provided by the disclosure can be applied to terminal devices such as computers, mobile phones and tablet computers, and application software with a map display function, such as map navigation application software and network car booking application software, can be arranged in the terminal devices. When the terminal equipment displays the electronic map, the scheme provided by the disclosure can be adopted, so that the display efficiency can be improved and the terminal performance loss can be reduced under the condition of displaying POI in a diversified manner.
When the terminal device displays the map, the display style data and the display content data of the POI can be acquired, for example, when a station needs to be displayed, the terminal device can load the display style data and the display content data of the station. Optionally, the terminal device may further interact with the server to determine whether the server side updates the display style data and the display content data of the POI, and if so, the terminal device may load the updated data from the server side, otherwise, the terminal device may load the display style data and the display content data of the POI from the local.
The display content data refers to specifically displayed contents such as pictures, texts, and the like, and the display style data is used for describing how to display the contents, such as relative positions of the pictures and the texts, text colors, and the like.
Specifically, in order to diversify the display of the POI, the display style data may be configured for the POI by a file in the format of xml, json, or the like. Specifically, the display style data may be written in an xml file or a json file according to the display requirement of the POI.
Fig. 3 is a schematic diagram illustrating a POI display effect according to an exemplary embodiment of the present disclosure.
As shown in fig. 3, when an amusement park is displayed on the electronic map, for example, the POI is an amusement park, the icon 311 and the character 312 may be displayed, and the button 313 for "viewing queue time" may be displayed. If the display style data is configured for the POI based on the traditional key value pair mode, the display effect cannot be achieved, and the display style data can be configured for the POI more flexibly in files such as xml and json according to the display requirement.
Optionally, display style data for causing the POI icon in the electronic map to display an animation effect, such as a short zoom-in effect, a zoom-out effect, a bounce effect, and the like, may also be set.
Furthermore, when the terminal device displays the electronic map, data of the POI required to be displayed at present may be loaded, and in the process of the user operating the electronic map, the terminal device may also load the data of the POI required to be displayed based on the content required to be displayed.
Step 202, determining a display layout index matched with the display style data and the display content data, and inquiring whether display layout data of POI on the electronic map is stored locally or not according to the display layout index.
The scheme of the disclosure can store the display layout data of the POI in the process of displaying the POI, and when the same POI needs to be displayed again, the terminal equipment does not need to calculate the display layout data again. The stored display layout data of the POIs and the display layout index of the POIs have a corresponding relationship, and the display layout index may be specifically used as a query index of the display layout data.
Specifically, when a POI needs to be displayed, the display layout index of the POI may be determined, so as to query whether the display layout data of the POI on the electronic map is stored locally by using the display layout index.
Further, a display layout index of the POI may be generated from the display style data and the display content data of the POI. For example, the display style data and the display content data of the POI may be processed by using a hash algorithm to obtain a unique display layout index. Optionally, the display style data and the display content data of the POI may be processed by using a bloom filter or by using an MD5 information summarization algorithm to obtain a unique display layout index.
In practical application, after the display layout index of the POI is determined, whether the display layout data of the POI on the electronic map is locally stored can be queried by using the display layout index.
The space for storing the POI display layout data may be preset, for example, the display layout data may be stored in the memory, or the display layout data may be stored in the database. After the display layout index is determined, corresponding data can be queried at a location for storing display layout data.
Specifically, if the display layout data of the POI on the electronic map is locally stored, step 203 is executed, otherwise, step 204 is executed.
And step 203, loading display layout data of the POI on the electronic map displayed in the display area.
Furthermore, if the terminal device queries the display layout data of the POI on the electronic map, the display layout data of the POI may be loaded on the electronic map displayed in the display area, and specifically, the display layout data may be used to render a screen.
In actual application, the terminal device may create rendering data according to the display layout data, and then draw in the screen according to the rendering data.
And 204, determining display layout data of the POI on the electronic map according to the style data and the content data, and storing the determined display layout data, wherein the display layout data of the POI and the display layout index of the POI have a corresponding relation.
And step 205, loading the display layout data of the determined POI on the electronic map displayed in the display area.
If the display layout data of the POI on the electronic map is not stored locally, the terminal equipment can create a task of layout calculation, and calculate the display layout data according to the display style data and the display content data of the POI.
Specifically, the terminal device may generate a style template according to the display style data, and then fill the display content data into the style template, thereby obtaining information of the layout of each display content data.
Further, the display layout data may include size information, anchor point information, hierarchy information, node information in each hierarchy, and the like. The hierarchy information refers to a plurality of hierarchies of the POI, and a relationship between the hierarchies, for example, a second hierarchy is displayed above the first hierarchy, a third hierarchy is displayed above the second hierarchy, and display content data displayed by each hierarchy may also be included in the hierarchy information. The size information may include the size of the entire POI when displayed, and may further include the size of the hierarchy, the display size of the display content data in each hierarchy. The anchor point information includes an offset of each display content data, which may be an offset relative to the overall position of the POI, or an offset relative to other display content data, and the offset may be characterized in terms of percentage, or in terms of a specific numerical value. The node information comprises the type, position, width and height of the display content data and the displayed data information; the node types include a graph type, a text type and a picture type, each type has special data, for example, the graph type can store background color, frame width, frame color and the like, the node of the text type can store text typesetting result data and the like, and the picture type can store picture resource identification, a displayed stretching area and the like.
For example, there may be a POI comprising a total of 2 levels, such as 1 picture background (level 1), with a text centered on the background (level 2), and for example the POI may have only one level, such as only one picture.
During practical application, the terminal equipment can also store the determined display layout data, so that when the terminal equipment displays the POI again, the prestored display layout data can be directly acquired, the display efficiency of the POI can be improved, and the performance loss of the terminal equipment can be reduced. To facilitate querying the display layout data of the POIs, a display layout index of the POIs may be imported as a query index of the display layout data.
In an optional implementation manner, the display layout data of the POI may be stored in a memory of the terminal device, and a fixed space may be partitioned from the memory for storing the display layout data of the POI.
In another alternative implementation, the display layout data of the POI may be stored in a database, for example, a high-performance file cache may be set in the terminal device, and after the display layout data of the POI is determined, the display layout data of the POI is stored in the database.
In an alternative implementation, the display layout data of the POI may be stored in the memory and the database, for example, a cache space may be set in the memory for storing the display layout data of the POI. The cache space can store n pieces of display layout data which are used recently, the database storage space for storing the display layout data is large, and the display layout data with more quantity can be stored. When the display layout data of the POI is queried, the POI can be queried from the cache space in the memory, and if the query fails, the POI can be queried from the database. The method can store a large amount of display layout data and also has the reading speed of the display layout data.
In any of the above implementations, when the electronic map function in the application program runs, a space for storing the display layout data may be divided, or a cache space for storing the display layout data may be created. It is also possible to create a database in the memory space of the terminal device while the electronic map function of the application program is running.
Specifically, when the electronic map function in the application program stops running or the application program is closed, the terminal device may delete the display layout data stored in the memory, release the cache space, and delete the database for storing the display layout data. In another implementation manner, when the electronic map function of the application stops running or the application is closed, the terminal device may also reserve a database for storing display layout data and display layout data already in the database, where the stored display layout data needs to be managed based on the update condition of the server-side POI display style data and/or the display content data, and the data in the database needs to be managed so as to avoid occupying too much storage space.
The terminal device may further load the determined display layout data of the POI on the electronic map displayed in the display area, and may specifically draw the POI according to the display layout data, where the time sequence of the steps of storing the display layout data and displaying the POI is not limited. The prior art scheme can be adopted in the scheme to draw the POI on the screen based on the display layout data.
The display method of the electronic map POI provided by the disclosure comprises the following steps: acquiring display style data and display content data of the POI; determining a display layout index matched with the display style data and the display content data, and inquiring whether display layout data of POI (point of interest) on the electronic map is stored locally or not according to the display layout index; if the display layout data of the POI on the electronic map is stored locally, the display layout data of the POI is loaded on the electronic map displayed in the display area; and if the display layout data of the POI on the electronic map is not locally stored, determining the display layout data of the POI on the electronic map according to the display style data and the display content data, and storing the determined display layout data, wherein the display layout data of the POI has a corresponding relation with the display layout index of the POI, and loading the determined display layout data of the POI on the electronic map displayed in the display area. The scheme disclosed by the invention can store the calculated POI display layout data, improve the POI display efficiency and reduce the performance loss of the terminal equipment caused by calculating the display layout data.
Fig. 4 is a flowchart illustrating a method for displaying an electronic map POI according to another exemplary embodiment of the present disclosure.
As shown in fig. 4, the method for displaying an electronic map POI provided by the present disclosure includes:
step 401, display style data and display content data of the POI are acquired.
Step 402, determining a first character string according to the display style data, and determining a second character string according to the display content data.
The display style data and the display content data can determine the display effect, so that the scheme determines the unique display layout index of the POI by using the display style data and the display content data.
Specifically, the terminal device calculates the display style data to obtain a first character string, and calculates the display content data to obtain a second character string. For example, the two data may be respectively subjected to hash calculation to obtain a character string, and then, for example, the character string may be generated by an MD5 message digest algorithm.
Step 403, determining a display layout index according to the first character string and the second character string.
Further, the obtained first character string and the second character string may be concatenated, or the second character string and the first character string may be concatenated, thereby obtaining the display layout index.
For example, the display style data of one POI is processed to obtain key1, the display content data of the POI is processed to obtain key2, and the key1 and key2 are spliced to obtain the display layout index key.
Step 404, inquiring whether the display layout data of the POI on the electronic map is stored in a preset cache space in the memory according to the display layout index; the memory is provided with a cache space for storing display layout data.
If the display layout data of the POI on the electronic map is stored in the cache space, step 406 may be executed. If no display layout data of the POI on the electronic map is stored in the cache space, step 405 may be executed.
Step 405, inquiring whether the display layout data of the POI on the electronic map is stored in a preset database according to the display layout index.
In practical applications, the scheme provided by the present disclosure may set a cache space in the memory, and specifically may set an LRU (Least Recently Used) memory cache. The capacity of the buffer space may be fixed, for example, 1000 pieces of display layout data may be stored.
The display layout data can be stored in a preset database, and the preset database is used for storing the display layout data. Specifically, the preset database may be created in a hard disk of the terminal device.
In particular, the memory cache can be read quickly, which is beneficial for efficient POI display, but has limited storage capacity. The data stored in the hard disk is slow in reading speed, but the storage capacity is large, and the scheme provided by the disclosure can be better realized by matching the data and the storage capacity.
Further, in order to increase the read-write speed of the preset database, a high-performance file cache database may be provided in the hard disk for storing the display layout data.
In practical application, the terminal device may first query whether the display layout data of the POI on the electronic map has been stored in the cache space of the memory by using the display layout index, and if so, may quickly read the display layout data of the POI. And if not, inquiring in a preset database by using the display layout index.
If the display layout data of the POI on the electronic map is stored in the database, step 406 is executed. If the display layout data of the POI is not stored in the database, step 407 is executed.
And step 406, loading display layout data of the POI on the electronic map displayed in the display area.
Step 407, determining display layout data of the POI on the electronic map according to the display style data and the display content data.
Step 408, storing the determined display layout data of the POI on the electronic map in a preset cache space in the memory, and using the display layout index of the POI as a query index of the display layout data of the POI.
And step 409, storing the determined display layout data of the POI on the electronic map in a preset database, and using the display layout index of the POI as a query index of the display layout data of the POI.
The execution order of step 408 and step 409 is not limited.
Specifically, the terminal device stores the calculated display layout data of the POI on the electronic map in a preset cache space in the memory, and may also store the calculated display layout data in a preset database. In the storage process, the display layout index of the POI may be imported as a query index of the display layout data of the POI, so that a query can be made based on the display layout index when the POI is displayed again.
Further, the buffer space may be a space with a fixed size, for example, 1000 pieces of display layout data may be stored, and when the display layout is stored in the buffer space, if the existing display layout data in the buffer space reaches the upper limit of the capacity of the buffer space, that is, the buffer space is full, for example, 1000 pieces of display layout data are already stored, the newly calculated display layout data cannot be stored in the buffer space, and in this case, the display layout data that is not used for the longest time in the buffer space may be deleted, and the newly calculated display layout data may be stored in the buffer space.
When the display layout data of the POI on the electronic map is stored in the preset database, the display layout data can be serialized to obtain the display layout data in the binary form, and then the display layout data in the binary form is stored in the preset database.
If the display layout data is stored in the preset database in a serialized manner, the terminal device queries the display layout data, stored with the POI, on the electronic map from the preset database when executing step 406, and the queried display layout data is in a binary form, and the terminal device may deserialize the display layout data in the binary form to obtain the display layout data before serialization, and load the display layout data before serialization on the electronic map displayed in the display area.
The terminal device may use a Flatbuffer to perform serialization or deserialization, and the overhead generated when the Flatbuffer performs serialization or deserialization is relatively small, so that the POI display efficiency can be further improved, and the performance loss of the terminal device can be further reduced.
And step 410, loading the display layout data of the determined POI on the electronic map displayed in the display area.
The order of execution of steps 408-410 is not limiting.
In any one of the above implementation manners, before the obtaining of the display style data and the display content data of the POI, the method further includes:
receiving a trigger operation of a user on the electronic map, wherein the trigger operation comprises the following steps: the method comprises the steps of pointing to a target area of the electronic map, the types of POI in the target area and the use scene of the selected electronic map.
Specifically, the same POI may have multiple display styles, for example, a set of POI styles may be displayed at the beginning of the operation of the electronic map, and when a user selects a specific POI type, another style may be displayed for POIs belonging to the type. In this application scenario, the user may select a target area of the electronic map by zooming in or out, and select a POI type in the target area, for example, may select "food" through a pull-down menu. POIs belonging to the cate category may display another style for the user to browse through.
Further, the electronic map has a plurality of usage scenarios, and POI display styles of different usage scenarios may also be different. For example, a search scene has one set of POI patterns, and a navigation scene has another set of POI patterns.
Further, the user can operate in the electronic map to select a use scene, so that the electronic device is triggered to load data of POI corresponding to the scene. For example, if the user searches for an amusement park in the search box, a style corresponding to a search scene of POIs belonging to the amusement park may be loaded.
Fig. 5 is a schematic diagram of the components used to implement aspects of the present disclosure.
As shown in fig. 5, the present solution can be applied to a software product, which can include a POI component 51, a layout calculation component 52, and a layout cache component 53.
After the terminal device acquires the display style data and the display content data, the POI component 51 may generate a display layout index according to the two data, and query whether the display layout data of the POI on the electronic map is stored locally in the layout cache component 53 by using the display layout index.
If the display layout data of the POI on the electronic map is stored locally, the POI component 51 loads the display layout data of the POI on the electronic map displayed in the display area to quickly display the POI.
If the display layout data of the POI on the electronic map is not stored locally, the layout calculation component 52 determines the display layout data of the POI on the electronic map according to the display style data and the display content data, and the layout cache component 53 stores the determined display layout data. The layout calculation component 52 also feeds back the calculation result to the POI component 51, and the POI component 51 loads the display layout data of the determined POI on the electronic map displayed in the display area to display the POI.
Fig. 6 is a block diagram of a display apparatus of an electronic map POI according to an exemplary embodiment of the present disclosure.
As shown in fig. 6, the display device 600 of the electronic map POI provided in the present embodiment includes:
an acquisition unit 610 configured to acquire display style data and display content data of a POI;
a querying unit 620, configured to determine a display layout index that matches the display style data and the display content data, and query whether display layout data of the POI on the electronic map is stored locally according to the display layout index;
a drawing unit 630, configured to load display layout data of the POI on an electronic map displayed in a display area if the display layout data of the POI on the electronic map has been locally stored;
a calculating unit 640, configured to determine, according to the display style data and the display content data, display layout data of the POI on an electronic map if display layout data of the POI on the electronic map is not stored locally, and store the determined display layout data, where the display layout data of the POI and a display layout index of the POI have a corresponding relationship, and the drawing unit 630 loads the determined display layout data of the POI on the electronic map displayed in a display area.
The display device of the electronic map POI can store the calculated display layout data of the POI, can improve the display efficiency of the POI and can reduce the performance loss of the terminal equipment caused by the calculation of the display layout data.
Fig. 7 is a block diagram of a display apparatus of an electronic map POI according to another exemplary embodiment of the present disclosure.
As shown in fig. 7, on the basis of the foregoing embodiment, the display apparatus 700 of the electronic map POI provided in this embodiment optionally includes:
the memory query module 621 is configured to query whether display layout data of the POI on the electronic map has been stored in a preset cache space in a memory according to the display layout index; the memory is provided with a cache space for storing display layout data;
a database querying module 622, configured to query, according to the display layout index, whether the display layout data of the POI on the electronic map is already stored in a preset database if the display layout data of the POI on the electronic map is not stored in the cache space.
Optionally, the calculating unit 640 includes:
the memory storage module 641 is configured to store the determined display layout data of the POI on the electronic map in a cache space preset in a memory, and use a display layout index of the POI as a query index of the display layout data of the POI;
the database storage module 642 is configured to store the determined display layout data of the POI on the electronic map in a preset database, and use the display layout index of the POI as a query index of the display layout data of the POI.
Optionally, the memory storage module 641 is specifically configured to:
and if the existing display layout data in the cache space reaches the upper limit of the capacity of the cache space, deleting the display layout data which is not used for the longest time in the cache space, and storing the display layout data of the POI on the electronic map.
The database storage module 642 is specifically configured to:
serializing display layout data of the POI on the electronic map to obtain the display layout data of the POI in a binary form;
and storing the display layout data of the POI in the binary form into the preset database.
Optionally, the drawing unit 630 includes:
the deserialization module 631 is configured to deserialize the display layout data in the binary form of the POI to obtain display layout data before serialization if the display layout data in the binary form of the POI is acquired from the preset database;
a drawing module 632, configured to load the display layout data before serialization on the electronic map displayed in the display area.
Optionally, the querying unit 620 includes an index determining module 623, configured to:
determining a first character string according to the display style data, and determining a second character string according to the display content data;
and determining the display layout index according to the first character string and the second character string.
Optionally, the obtaining module 610 is further configured to:
receiving a trigger operation of a user on the electronic map, wherein the trigger operation comprises: the method comprises the steps of pointing to a target area of the electronic map, the types of POI in the target area and the use scene of the selected electronic map.
Fig. 8 is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure.
As shown in fig. 8, the electronic device provided in this embodiment includes:
a memory 81;
a processor 82; and
a computer program;
wherein the computer program is stored in the memory 81 and configured to be executed by the processor 82 to implement any one of the methods of displaying an electronic map POI as described above.
The present embodiments also provide a computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement any one of the methods of displaying an electronic map POI as described above.
The embodiment also provides a computer program, which comprises a program code, and when the computer program is run by a computer, the program code executes any one of the above-mentioned methods for displaying the electronic map POI.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. A method for displaying an electronic map POI is characterized by comprising the following steps:
acquiring display style data and display content data of the POI;
determining a display layout index matched with the display style data and the display content data, and inquiring whether display layout data of the POI on the electronic map is stored locally or not according to the display layout index;
if the display layout data of the POI on the electronic map is stored locally, the display layout data of the POI is loaded on the electronic map displayed in a display area;
if the display layout data of the POI on the electronic map is not stored locally, determining the display layout data of the POI on the electronic map according to the display style data and the display content data, and storing the determined display layout data, wherein the display layout data of the POI has a corresponding relation with the display layout index of the POI, and the determined display layout data of the POI is loaded on the electronic map displayed in a display area.
2. The method of claim 1, wherein the querying whether the display layout data of the POI already stored locally on the electronic map according to the display layout index comprises:
inquiring whether display layout data of the POI on the electronic map are stored or not in a preset cache space in a memory according to the display layout index; the memory is provided with a cache space for storing display layout data;
and if the display layout data of the POI on the electronic map is not stored in the cache space, inquiring whether the display layout data of the POI on the electronic map is stored in a preset database according to the display layout index.
3. The method of claim 1, wherein the storing the determined display layout data of the POIs on the electronic map comprises:
storing the determined display layout data of the POI on the electronic map in a preset cache space in a memory, and taking the display layout index of the POI as a query index of the display layout data of the POI;
and storing the determined display layout data of the POI on the electronic map in a preset database, and taking the display layout index of the POI as a query index of the display layout data of the POI.
4. The method according to claim 3, wherein the storing the determined display layout data of the POI on the electronic map in a preset cache space in the memory comprises:
and if the existing display layout data in the cache space reaches the upper limit of the capacity of the cache space, deleting the display layout data which is not used for the longest time in the cache space, and storing the display layout data of the POI on the electronic map.
5. The method according to claim 3, wherein the storing the determined display layout data of the POI on the electronic map in a preset database comprises:
serializing display layout data of the POI on the electronic map to obtain the display layout data of the POI in a binary form;
and storing the display layout data of the POI in the binary form into the preset database.
6. The method of claim 5, wherein if the display layout data of the POI on the electronic map is stored locally, loading the display layout data of the POI on the electronic map displayed in a display area comprises:
if the display layout data of the POI in the binary form are obtained from the preset database, deserializing the display layout data of the POI in the binary form to obtain the display layout data before serialization;
and loading the display layout data before serialization on the electronic map displayed in the display area.
7. The method according to claim 1, wherein the determining a display layout index matching the display style data and the display content data comprises:
determining a first character string according to the display style data, and determining a second character string according to the display content data;
and determining the display layout index according to the first character string and the second character string.
8. The method of claim 1, wherein before the obtaining of the display style data and the display content data of the POI, the method further comprises:
receiving a trigger operation of a user on the electronic map, wherein the trigger operation comprises: a target area of the pointed electronic map, POI types in the target area and a use scene of the selected electronic map.
9. An electronic map POI display device, comprising:
an acquisition unit configured to acquire display style data and display content data of a POI;
the query unit is used for determining a display layout index matched with the display style data and the display content data and querying whether display layout data of the POI on the electronic map is stored locally or not according to the display layout index;
the drawing unit is used for loading the display layout data of the POI on the electronic map displayed in a display area if the display layout data of the POI on the electronic map is locally stored;
the calculation unit is configured to determine display layout data of the POI on the electronic map according to the display style data and the display content data and store the determined display layout data if the display layout data of the POI on the electronic map is not locally stored, where the display layout data of the POI and the display layout index of the POI have a corresponding relationship, and the drawing unit is further configured to load the determined display layout data of the POI on the electronic map displayed in a display area.
10. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-8.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-8.
CN202211371671.XA 2022-11-03 2022-11-03 Method, device, equipment and program product for displaying electronic map POI Pending CN115758002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211371671.XA CN115758002A (en) 2022-11-03 2022-11-03 Method, device, equipment and program product for displaying electronic map POI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211371671.XA CN115758002A (en) 2022-11-03 2022-11-03 Method, device, equipment and program product for displaying electronic map POI

Publications (1)

Publication Number Publication Date
CN115758002A true CN115758002A (en) 2023-03-07

Family

ID=85357821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211371671.XA Pending CN115758002A (en) 2022-11-03 2022-11-03 Method, device, equipment and program product for displaying electronic map POI

Country Status (1)

Country Link
CN (1) CN115758002A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117573781A (en) * 2024-01-17 2024-02-20 成都小步创想慧联科技有限公司 Map multi-level data display method based on hash algorithm

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117573781A (en) * 2024-01-17 2024-02-20 成都小步创想慧联科技有限公司 Map multi-level data display method based on hash algorithm

Similar Documents

Publication Publication Date Title
WO2021218327A1 (en) Page processing method and related device
WO2022062610A1 (en) Information presentation method and apparatus, electronic device, and storage medium
US20110113365A1 (en) Scrolling large data sets
CN104516920B (en) Data query method and data query system
US9235613B2 (en) Flexible partitioning of data
CN107092652B (en) Navigation method and device for target page
CN108322359A (en) A kind of acquisition methods and device of page initial screen time
CN112861050B (en) Page data backtracking method, device and equipment
CN110221829A (en) Information processing method and its system, computer system and computer-readable medium
JP3164070B2 (en) Object arrangement control device, method and recording medium
KR100853308B1 (en) Item type specific structured search
CN113421144A (en) Page display method and device, equipment and storage medium
CN109815238A (en) The dynamic adding method and device of database are realized with strict balanced binary tree
CN115758002A (en) Method, device, equipment and program product for displaying electronic map POI
CN105915615A (en) Method for displaying application information in mobile equipment and device thereof
US20120159376A1 (en) Editing data records associated with static images
CN116932829A (en) Solutions for developer supporting big data tree view components
CN109165259B (en) Index table updating method based on network attached storage, processor and storage device
CN116414935A (en) Method for distributed Search space vector data based on Elastic Search
CN115186214A (en) Page configuration method and device, computer equipment and computer readable storage medium
CN110309208A (en) The implementation method and device of data visualization
CN114416371A (en) Grid space management method, storage medium and electronic device
CN104077292A (en) Webpage information storage method and equipment
CN116611418B (en) Report processing method and device based on online editing, electronic equipment and medium
CN112764750B (en) Interface generation method, device, electronic equipment and readable 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