CN108509239B - Layer display method and device, electronic equipment and storage medium - Google Patents
Layer display method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108509239B CN108509239B CN201810187979.6A CN201810187979A CN108509239B CN 108509239 B CN108509239 B CN 108509239B CN 201810187979 A CN201810187979 A CN 201810187979A CN 108509239 B CN108509239 B CN 108509239B
- Authority
- CN
- China
- Prior art keywords
- layer
- event
- map
- display
- operating system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention provides a layer display method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: receiving a target layer display event initiated by a user; generating a first layer through a graphical user interface of an operating system based on the target layer display event; rendering the first layer through a map engine and generating a second layer; and displaying the first layer and the second layer in an overlapping manner, wherein the first layer is positioned on the upper layer of the second layer. According to the technical scheme of the embodiment of the invention, the following layer can be designed and developed according to the UI framework provided by the operating system, the complex UI framework design of a map engine is not needed, the following performance of the layer is ensured, and the design and maintenance cost is reduced.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a layer display method, a layer display apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of internet technology, the application field of electronic maps is wider and wider, and people can conveniently acquire various information such as hotels, tourist attractions, catering shops and the like by using the electronic maps.
The electronic map is displayed in a layer overlapping mode, and finally the geographic information data is presented to the user through overlapping display of the data of each layer on different zoom levels. Referring to FIG. 1, layers of an electronic map may include a base layer 110, a customized layer 120, and a follow-up layer 130. The base layer 110 is a layer containing the most basic and most common map data elements, for example, the base layer 110 may include: basic electronic map information such as roads, rivers, bridges, administrative landmarks, points of interest, greenbelts and the like. The customized layer 120 is a layer that is superimposed on the base layer 110 to meet the requirement of personalization, for example, a thermodynamic diagram showing the heat of distribution of people in each area of the electronic map, a road map showing traffic jam conditions, and the like. The following layer 130 is generally a layer associated with some dispersed geographic location points or areas, for example, when a certain point of interest on an electronic map is clicked, a card display with further brief information of the point of interest is presented, and the layer displayed by the card may be referred to as a following layer; for another example, the user sets the address of the home and company, and the information of the home and company needs a special display, which also belongs to the following layer.
In a technical scheme, a following layer is generated by adopting a map rendering engine to render, so that better following of the layer can be realized. However, when complex and flexible User Interface display is processed, for a UI (User Interface) developer, this technical solution not only needs to perform a UI framework design of a complex map engine, but also has great difficulty in development and maintenance.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the invention and therefore may include information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
An object of embodiments of the present invention is to provide a layer display method, a layer display apparatus, an electronic device, and a computer-readable storage medium, which overcome one or more of the problems due to the limitations and disadvantages of the related art, at least to a certain extent.
According to a first aspect of the embodiments of the present invention, there is provided a layer display method, including: receiving a target layer display event initiated by a user; generating a first layer through a graphical user interface of an operating system based on the target layer display event; rendering the first layer through a map engine and generating a second layer; and displaying the first layer and the second layer in an overlapping manner, wherein the first layer is positioned on the upper layer of the second layer.
In some embodiments of the present invention, based on the foregoing scheme, generating a first layer through a graphical user interface of an operating system based on the target layer display event includes: determining information of interest points corresponding to the target layer display events; and generating the first image layer through a graphical user interface of the operating system based on the information of the interest point.
In some embodiments of the present invention, based on the foregoing solution, the generating the first image layer through a graphical user interface of the operating system based on the information of the point of interest includes: and adding the information of the interest points to the first image layer through a graphical user interface of the operating system.
In some embodiments of the present invention, based on the foregoing scheme, determining information of a point of interest corresponding to the target layer display event includes: and acquiring the geographical position information and/or the description information of the interest point corresponding to the target layer display event.
In some embodiments of the present invention, based on the foregoing scheme, the layer display method further includes: and converting the geographical position information of the interest point into coordinate information of a display screen.
In some embodiments of the present invention, based on the foregoing scheme, the generating the first layer through a graphical user interface of an operating system includes: and generating the bitmap of the first layer through a graphical user interface of the operating system.
In some embodiments of the present invention, based on the foregoing scheme, rendering the first layer and generating a second layer by a map engine includes: and rendering the bitmap of the first layer through the map engine and generating the second layer.
In some embodiments of the present invention, based on the foregoing scheme, displaying the first image layer and the second image layer in an overlapping manner includes: and displaying the first layer and the second layer in an overlapping manner based on the coordinate information. In some embodiments of the present invention, based on the foregoing scheme, the layer display method further includes: receiving a map operation event initiated by a user; hiding the first layer in response to the map operation event.
In some embodiments of the present invention, based on the foregoing scheme, the layer display method further includes: when the map operation event is finished, determining the display screen coordinates of the interest points corresponding to the target layer display event; determining a display position of the first layer through a graphical user interface of the operating system based on the display screen coordinates; and displaying the first image layer based on the display position.
In some embodiments of the present invention, based on the foregoing solution, the map operation event includes: one of a map shift event, a map drag event, a zoom in event, a zoom out event, a rotation event, a slide event, and a pitch adjustment event.
In some embodiments of the present invention, based on the foregoing scheme, displaying the first image layer and the second image layer in an overlapping manner includes: setting the transparency of the first image layer to be fully transparent; and superposing the first layer on the second layer for displaying.
In some embodiments of the present invention, based on the foregoing solution, the target layer display event includes a geographic location point click event, a long-time map pressing event, a push message event of a long connection channel, or a search event.
In some embodiments of the present invention, based on the foregoing scheme, both the first layer and the second layer are following layers.
According to a second aspect of the embodiments of the present invention, there is provided a layer display method, including: receiving a map operation event initiated by a user; hiding a first layer of a target layer in response to the map operation event, where the target layer includes the first layer and a second layer, the first layer is generated through a graphical user interface of an operating system, the second layer is generated by rendering a bitmap of the first layer through a map engine, and the first layer is located on an upper layer of the second layer.
In some embodiments of the present invention, based on the foregoing scheme, the layer display method further includes: when the map operation event is finished, determining the display screen coordinates of the interest points corresponding to the target map layer; determining a display position of the first layer through a graphical user interface of the operating system based on the display screen coordinates; and displaying the first image layer based on the display position.
In some embodiments of the present invention, based on the foregoing solution, the map operation event includes: one of a map shift event, a map drag event, a zoom in event, a zoom out event, a rotation event, a slide event, and a pitch adjustment event.
According to a third aspect of the embodiments of the present invention, there is provided an image layer display apparatus, including: the event receiving unit is used for receiving a target layer display event initiated by a user; the first layer control unit is used for generating a first layer through a graphical user interface of an operating system based on the target layer display event; the second layer control unit is used for rendering the first layer through a map engine and generating a second layer; and the display control unit is used for displaying the first layer and the second layer in an overlapping mode, wherein the first layer is positioned on the upper layer of the second layer.
According to a fourth aspect of the embodiments of the present invention, there is provided an image layer display apparatus, including: the event receiving unit is used for receiving a map operation event input by a user; the map layer control unit is configured to hide a first map layer of a target map layer in response to the map operation event, where the target map layer includes the first map layer and a second map layer, the first map layer is generated through a graphical user interface of an operating system, the second map layer is generated by rendering a bitmap of the first map layer through a map engine, and the first map layer is located on an upper layer of the second map layer.
According to a fifth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a processor; and a memory, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, implement the layer display method according to the first aspect or the second aspect.
According to a sixth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the layer display method according to the first aspect or the second aspect.
In the technical solutions provided in some embodiments of the present invention, on one hand, the first layer is generated through a graphical user interface of an operating system, and for a UI that needs to follow a map change, an application developer can design and develop the UI according to a UI framework provided by the operating system, thereby reducing development difficulty and enhancing flexibility and extensibility of program design; on the other hand, the map engine is used for rendering the first layer and generating the second layer, so that good following performance of the layer can be realized, and the design and maintenance cost can be reduced because the complex UI frame design of the map engine is not needed; on the other hand, the first layer is superposed on the second layer for superposition display, so that the event response can be realized through the first layer, and meanwhile, the good following performance of the layer can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a schematic diagram of an electronic map layer in a technical solution;
fig. 2 is a flowchart illustrating a layer display method according to an embodiment;
FIG. 3 illustrates a flow diagram of a layer display method according to some embodiments of the invention;
FIG. 4 is a flowchart illustrating layer display methods according to further embodiments of the present invention;
FIG. 5 illustrates a flow diagram of a layer display method according to some embodiments of the invention;
FIG. 6 is a flowchart illustrating layer display methods according to further embodiments of the present invention;
FIG. 7 illustrates an interface diagram of electronic map software according to some embodiments of the invention;
FIG. 8 illustrates an interface diagram of electronic map software according to further embodiments of the present invention;
FIG. 9 illustrates a schematic block diagram of an overlay display apparatus according to some embodiments of the inventions;
FIG. 10 shows a schematic block diagram of layer display apparatus according to further embodiments of the present invention; and
FIG. 11 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In an electronic map application, under the scenes that a user clicks a Point Of Interest (POI) Point or searches and the like, some display forms Of a user interface exist in the interactive operation process Of the user, the display forms are often bound with certain specific places, and the display forms bound with characteristic places can be called follower layers. The map rendering engine of the electronic map application can be used for rendering each layer of the map, and the advantage of rendering the UI by using the map rendering engine is as follows: the following performance of the UI is very good when the user moves pictures, drags and the like.
In one technical scheme, a map engine provides a set of UI framework, and for a UI with a high following requirement, an API (Application Program Interface) provided by a map engine layer is used to design and realize UI information display. Referring to fig. 2, in order to ensure the followability of the UI, the UI frame provided by the map rendering engine is used to perform UI rendering, and an application developer needs to perform UI layout and content update according to the interface frame provided by the map rendering engine to control the display and hiding of the followability layer.
In step 210, an operation event of the geographic information point initiated by the user is received, and the operation event can be a map clicking operation or a searching operation.
In step 220, the application developer designs layout styles for displaying the information in advance, dynamically updates the displayed information content according to the information of the geographic information points, and transmits the information to the map rendering engine framework for processing.
However, rendering a UI using a map rendering engine has the following disadvantages: because the map engine needs to design a more complex UI framework to support the layout requirement of the complex UI, an application developer needs to learn the use of the UI framework of the map engine and realize the development and maintenance of the UI framework of the map rendering engine with higher difficulty. In the implementation of the electronic map application software, another set of rendering engines, namely, a UI rendering framework provided by an operating system, exists. The advantage of using the UI framework of the operating system is that the development and maintenance are simple, and an application developer can select new characteristics provided by using the UI framework according to the continuous iteration upgrade of the version of the operating system to develop a more attractive and easy-to-use map UI.
Based on the above, in an exemplary embodiment of the present invention, a layer display method is provided. Fig. 3 shows a flowchart of a layer display method according to some example embodiments of the present invention. Referring to fig. 3, the layer display method may include the following steps:
step S310, receiving a target layer display event initiated by a user;
step S320, generating a first layer through a graphical user interface of an operating system based on the target layer display event;
step S330, rendering the first layer through a map engine and generating a second layer; and
step S340, displaying the first layer and the second layer in an overlapping manner, where the first layer is located on an upper layer of the second layer.
According to the layer display method shown in fig. 3, on one hand, the first layer is generated through the graphical user interface of the operating system, and for the UI which needs to follow the map change, the application developer can design and develop according to the UI framework provided by the operating system, so that the development difficulty is reduced, and the flexibility and expansibility of the program design are enhanced; on the other hand, the map engine is used for rendering the first layer and generating the second layer, so that good following performance of the layer can be realized, and the design and maintenance cost can be reduced because the complex UI frame design of the map engine is not needed; on the other hand, the first layer is superposed on the second layer for superposition display, so that the event response can be realized through the first layer, and meanwhile, the good following performance of the layer can be realized.
Next, a layer display method in the exemplary embodiment of fig. 3 will be described in detail.
In step S310, a target layer display event initiated by a user is received.
In the example embodiment of fig. 3, when a user clicks on a geographic location point, such as a point of interest, on an electronic map, the electronic map client may receive a user-initiated point of interest click event. For example, when a user clicks on a certain building on an electronic map, the electronic map client receives the building click event initiated by the user.
The target layer display event is an event triggering the display of the target layer. It should be noted that the target layer display event may be not only an interest point click event, but also a search event, a long-press map event, a push message event of a long connection channel, such as background operation recommendation data, and may also be a layer display event of a type of interest point, such as a personal scenery point type layer display, a gourmet type layer display, a hotel type layer display, and the like, which is not particularly limited in this disclosure.
In step S320, a first layer is generated through a graphical user interface of an operating system based on the target layer display event.
After receiving the target layer display event, the electronic map client may generate a first layer through a graphical user interface of an operating system based on the target layer display event. The operating system may be an android operating system and an IOS operating system installed on the mobile terminal, may also be a Windows operating system and a Linux operating system installed on a notebook or a desktop, and may also be an embedded operating system such as a vehicle-mounted operating system, which is not particularly limited in this disclosure.
The graphical user interface of the operating system may be a user interface framework or a graphical user interface corresponding to the operating system, for example, in an android operating system, the graphical user interface is an android graphical user interface system, and in an IOS operating system, the graphical user interface is an IOS graphical user interface.
In step S330, the first layer is rendered by a map engine and a second layer is generated.
The map engine is a set of function libraries which can provide driving and managing geographic data and realize functions of rendering, querying and the like, and the electronic map is an application constructed on the map engine.
In the example embodiment of fig. 3, the first layer may be rendered and the second layer generated by a rendering engine interface of a map engine. Further, a bitmap of the first layer may be generated through a graphical user interface of the operating system, and the bitmap of the first layer is rendered through the map engine and the second layer is generated.
In step S340, the first layer and the second layer are displayed in an overlapping manner, where the first layer is located on an upper layer of the second layer.
In the example embodiment of fig. 3, the first layer and the second layer are displayed in an overlapping manner at the same screen position, and the first layer is located on the upper layer of the second layer. Further, the transparency of the first image layer may be set to be fully transparent, and the fully transparent first image layer may be superimposed on the second image layer for display.
In addition, a bitmap of the first layer can be generated through a graphical user interface of an operating system, and the bitmap of the first layer is rendered through a map engine to generate a second layer. Because the map rendering engine only needs to process drawing according to the incoming pictures, the design and maintenance cost of the map rendering engine is further reduced.
It should be noted that the layer display method in fig. 3 may be applied to electronic map software, and may also be applied to navigation software. The electronic map software or navigation software can be installed in a mobile terminal or a fixed terminal with a touch screen, such as a car navigator, a portable navigator, a mobile phone or a tablet computer, a desktop computer, and the like.
Fig. 4 is a flowchart illustrating a layer displaying method according to another embodiment of the present invention.
Referring to fig. 4, in step S410, a geographic location point click event or a search event initiated by a user is received, for example, the user clicks an interest point on an electronic map, for example, a tourist attraction, such as the beijing olympic park in fig. 7.
In step S420, a first UI of the information to be presented of the point of interest is generated through the UI framework of the operating system.
When a user clicks an interest point on an electronic map, basic information of the interest point, such as geographic location information and/or description information, the geographic location information may be latitude and longitude information, and the description information may be a description of a name, a level, a distance, and the like of the interest point, such as beijing olympic park, five star level, 8.2km, and the like in fig. 7.
After the information of the interest point is acquired, the longitude and latitude information of the interest point is converted into the coordinate information of a screen, and the description information of the interest point is displayed through a UI frame of an operating system based on the coordinate information. Further, the description information of the point of interest may also be added to the corresponding position of the first UI, e.g., the card in fig. 7, through an interface provided by the UI framework of the operating system.
In step S430, a bitmap of the first UI is generated through an interface provided by the UI framework of the operating system, and the bitmap and the coordinate information of the point of interest are transferred to the map engine.
In step S440, the transparency of the first UI is controlled to be set to a fully transparent display while the bitmap transferred to the map engine is displayed, and the first UI is displayed superimposed on the bitmap for display. After the display is superimposed, the receiving user may wait for an interaction event such as clicking on a point of interest.
It should be noted that, in the example embodiment of fig. 4, in step S440, the transparency of the first UI may not be specially set, that is, the transparency of the first UI may not be set to be a fully transparent display, and the first UI generated in step S420 may be directly displayed superimposed on the bitmap.
The example embodiments of fig. 3 and 4 demonstrate how an electronic map displays a following layer when in a static state using the layer display method of the example embodiments. The following describes in detail a process of implementing a follow-up layer display according to a layer display method in an example embodiment when a map operation event such as a map moving, a map dragging, and the like is performed on an electronic map according to fig. 5 and fig. 6.
Fig. 5 illustrates a flow diagram of a layer display method according to some embodiments of the invention.
Referring to fig. 5, in step S510, a map operation event initiated by a user is received, and the map operation event may include: a map move event, a drag map event, a zoom in event, a zoom out event, a rotate event, a slide event, and a pitch adjust event, among others.
In step S520, hiding a first layer of a target layer in response to the map operation event, where the target layer includes a first layer and a second layer, where the first layer is a layer generated through a graphical user interface of an operating system, the second layer is a layer generated by rendering the first layer through a map engine, and the first layer is located on an upper layer of the second layer.
According to the example embodiment of fig. 5, when the electronic map is operated, the display hiding relationship of the first layer changes accordingly, so that good follow-up display can be obtained.
Further, when the map operation event is finished, determining the display screen coordinates of the interest points corresponding to the target map layer; determining the display position of the first layer through a graphical user interface of an operating system based on the display screen coordinates; and displaying the first image layer based on the display position.
Fig. 6 is a flowchart illustrating a layer display method according to another embodiment of the present invention.
Referring to fig. 6, in step S610, a map operation event initiated by a user is received, the map operation event including: a map move event, a drag map event, a zoom in event, a zoom out event, a rotate event, a slide event, and a pitch adjust event, among others.
In step S620, the map engine notifies the UI framework of the electronic map application of the user operation start event.
In step S630, the UI framework of the electronic map application sets the first UI to a hidden state after receiving the notification of the start of the map operation event, and at this time, displays only the bitmap generated by the first UI on the electronic map, which is rendered and displayed by the map rendering engine together with other data of the map.
In step S640, upon the map operation event ending, the map engine notifies the UI frame of the electronic map application of the user that the map operation event ended.
In step S650, after receiving the notification of the end of the map operation event, the UI frame of the electronic map application recalculates the screen coordinates of the point of interest according to the longitude and latitude coordinates of the corresponding point of interest, resets the coordinate values of the display position of the first UI through the interface of the UI frame of the operating system, and displays the first UI on the upper layer.
Further, it may also wait to receive a further operation of the user, such as a favorite operation event on a point of interest, for example, clicking a favorite button to add the point of interest to the map favorite.
FIG. 7 illustrates an interface diagram of electronic map software according to some embodiments of the invention. Referring to fig. 7, the upper layer of the card information shown in fig. 7 shows a first UI generated according to a UI framework of an operating system, and the lower layer shows a bitmap generated by the first UI rendered by a map engine, and the first UI and the bitmap of the first UI have the same display effect, so that the user feels like a card is displayed when the first UI and the bitmap of the first UI are displayed in a superimposed manner.
It should be noted that, in an example embodiment of the present disclosure, a single following layer may be displayed, or multiple following layers may be displayed, for example, a user searches for a certain type of interest point. Referring to fig. 8, when the user searches for food, the search result appears as a plurality of follow-up layers.
In addition, in the example embodiment of the invention, the layer display device is further provided. Referring to fig. 9, the layer display apparatus 900 may include: an event receiving unit 910, configured to receive a target layer display event initiated by a user; a first layer control unit 920, configured to generate a first layer through a graphical user interface of an operating system based on the target layer display event; a second layer control unit 930, configured to render the bitmap of the first layer through a map engine and generate a second layer; and a display control unit 940, configured to perform an overlay display on the first layer and the second layer, where the first layer is located on an upper layer of the second layer.
In some embodiments of the present invention, based on the foregoing scheme, the first layer control unit 920 includes:
the information determining unit is used for determining the information of the interest point corresponding to the target layer display event;
and the layer generating unit is used for generating the first layer through a graphical user interface of the operating system based on the information of the interest points.
In some embodiments of the present invention, based on the foregoing scheme, the layer generating unit is configured to: and adding the information of the interest points to the first image layer through a graphical user interface of the operating system.
In some embodiments of the present invention, based on the foregoing scheme, the information determining unit is configured to: and acquiring the geographical position information and/or the description information of the interest point corresponding to the target layer display event.
In some embodiments of the present invention, based on the foregoing solution, the layer display apparatus 900 further includes:
and the conversion unit is used for converting the geographical position information of the interest point into the coordinate information of the display screen.
In some embodiments of the present invention, based on the foregoing scheme, the display control unit 940 is configured to: and displaying the first layer and the second layer in an overlapping manner based on the coordinate information.
In some embodiments of the present invention, based on the foregoing scheme, the first layer control unit 920 is configured to: and generating the bitmap of the first layer through a graphical user interface of the operating system.
In some embodiments of the present invention, based on the foregoing scheme, the second layer control unit 930 is configured to: and rendering the bitmap of the first layer through the map engine and generating the second layer.
In some embodiments of the present invention, based on the foregoing solution, the layer display apparatus 900 is further configured to: receiving a map operation event initiated by a user; hiding the first layer in response to the map operation event.
In some embodiments of the present invention, based on the foregoing solution, the layer display apparatus 900 is further configured to: when the map operation event is finished, determining the display screen coordinates of the interest points corresponding to the target layer display event; determining a display position of the first layer through a graphical user interface of the operating system based on the display screen coordinates; and displaying the first image layer based on the display position.
In some embodiments of the present invention, based on the foregoing solution, the map operation event includes: one of a map shift event, a map drag event, a zoom in event, a zoom out event, a rotation event, a slide event, and a pitch adjustment event.
In some embodiments of the present invention, based on the foregoing, the display control unit 940 is configured to: setting the transparency of the first image layer to be fully transparent; and superposing the first layer on the second layer for displaying.
In some embodiments of the present invention, based on the foregoing solution, the target layer display event includes a geographic location point click event, a long-time map pressing event, a push message event of a long connection channel, or a search event.
In some embodiments of the present invention, based on the foregoing scheme, both the first layer and the second layer are following layers.
In addition, in some embodiments of the present invention, based on the foregoing scheme, the layer display apparatus 900 may further include: the user interaction control unit is configured to process an interaction event of each area of a user click layer, for example, if a user click event causes a change in a UI of a follow-up layer, trigger generation of a corresponding notification, send the notification to the first layer control unit 920, generate a bitmap by the first layer control unit 920 according to a new UI, and transmit the generated bitmap to the second layer control unit 930, for example, a map rendering engine, for rendering to update a corresponding picture resource. Since each functional module of the layer display apparatus 900 according to the exemplary embodiment of the present invention corresponds to the step of the above-described exemplary embodiment of the layer display method, it is not described herein again.
In addition, in the embodiment of the invention, another layer display device is further provided. Referring to fig. 10, the layer display apparatus 1000 includes: an event receiving unit 1010 for receiving a map operation event input by a user; the layer control unit 1020 is configured to hide a first layer of a target layer in response to the map operation event, where the target layer includes the first layer and a second layer, the first layer is generated through a graphical user interface of an operating system, the second layer is generated by rendering a bitmap of the first layer through the map engine, and the first layer is located on an upper layer of the second layer.
In some embodiments of the present invention, based on the foregoing scheme, the layer display apparatus 1000 further includes:
the coordinate determination unit is used for determining the display screen coordinates of the interest points corresponding to the target map layer when the map operation event is finished;
the display position determining unit is used for determining the display position of the first layer through a graphical user interface of the operating system based on the display screen coordinates;
and the display unit is used for displaying the first image layer based on the display position.
In some embodiments of the present invention, based on the foregoing solution, the map operation event includes: one of a map shift event, a map drag event, a zoom in event, a zoom out event, a rotation event, a slide event, and a pitch adjustment event.
Since each functional module of the layer display apparatus 1000 according to the exemplary embodiment of the present invention corresponds to the step of the above-described exemplary embodiment of the layer display method, it is not described herein again.
In an exemplary embodiment of the present invention, there is also provided an electronic device capable of implementing the above method.
Referring now to FIG. 11, shown is a block diagram of a computer system 1100 suitable for use in implementing an electronic device of an embodiment of the present invention. The computer system 1100 of the electronic device shown in fig. 11 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 11, the computer system 1100 includes a Central Processing Unit (CPU)1101, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1102 or a program loaded from a storage section 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for system operation are also stored. The CPU 1101, ROM 1102, and RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
The following components are connected to the I/O interface 1105: an input portion 1106 including a keyboard, mouse, and the like; an output portion 1107 including a signal output unit such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1108 including a hard disk and the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, or the like. The communication section 1109 performs communication processing via a network such as the internet. A driver 1110 is also connected to the I/O interface 1105 as necessary. A removable medium 1111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1110 as necessary, so that a computer program read out therefrom is mounted into the storage section 1108 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention 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 through the communication portion 1109 and/or installed from the removable medium 1111. The above-described functions defined in the system of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 1101.
It should be noted that the computer readable medium shown in the present invention 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 invention, 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 the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
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 invention. In this regard, 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 or flowchart illustration, and combinations of blocks in the block diagrams 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 units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is enabled to implement the layer display method in the embodiment.
For example, the electronic device may implement the following as shown in fig. 3: step S310, receiving a target layer display event initiated by a user; step S320, generating a first layer through a graphical user interface of an operating system based on the target layer display event; step S330, rendering the first layer through a map engine and generating a second layer; and step S340, displaying the first layer and the second layer in an overlapping manner, wherein the first layer is located on an upper layer of the second layer.
It should be noted that although in the above detailed description several modules or units of a device or apparatus for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (21)
1. A layer display method is characterized by comprising the following steps:
receiving a target layer display event initiated by a user;
generating a first layer through a graphical user interface of an operating system based on the target layer display event;
rendering the first layer through a map engine and generating a second layer; and
and displaying the first layer and the second layer in an overlapping manner, wherein the first layer is positioned on the upper layer of the second layer.
2. The layer display method according to claim 1, wherein generating the first layer through a graphical user interface of an operating system based on the target layer display event includes:
determining information of interest points corresponding to the target layer display events;
and generating the first image layer through a graphical user interface of the operating system based on the information of the interest point.
3. The layer display method according to claim 2, wherein generating the first layer through a graphical user interface of the operating system based on the information of the point of interest includes:
and adding the information of the interest points to the first image layer through a graphical user interface of the operating system.
4. The layer display method according to claim 2, wherein determining information of the interest point corresponding to the target layer display event includes:
and acquiring the geographical position information and/or the description information of the interest point corresponding to the target layer display event.
5. The layer display method according to claim 4, further comprising:
and converting the geographical position information of the interest point into coordinate information of a display screen.
6. Layer display method according to claim 5, wherein generating the first layer through a graphical user interface of an operating system comprises:
and generating the bitmap of the first layer through a graphical user interface of the operating system.
7. The layer display method according to claim 6, wherein rendering the first layer by a map engine and generating a second layer comprises:
and rendering the bitmap of the first layer through the map engine and generating the second layer.
8. The layer display method according to claim 7, wherein displaying the first layer and the second layer in an overlapping manner includes:
and displaying the first layer and the second layer in an overlapping manner based on the coordinate information.
9. The layer display method according to claim 1, further comprising:
receiving a map operation event initiated by a user;
hiding the first layer in response to the map operation event.
10. The layer display method according to claim 9, further comprising:
when the map operation event is finished, determining the display screen coordinates of the interest points corresponding to the target layer display event;
determining a display position of the first layer through a graphical user interface of the operating system based on the display screen coordinates;
and displaying the first image layer based on the display position.
11. The layer display method according to claim 9, wherein the map operation event includes: one of a map shift event, a map drag event, a zoom in event, a zoom out event, a rotation event, a slide event, and a pitch adjustment event.
12. The layer display method according to claim 1, wherein displaying the first layer and the second layer in an overlapping manner includes:
setting the transparency of the first image layer to be fully transparent;
and superposing the first layer on the second layer for displaying.
13. The layer display method according to any one of claims 1 to 12, wherein the target layer display event includes a geographical location point click event, a long-press map event, a push message event of a long connection channel, or a search event.
14. The layer display method according to claim 13, wherein the first layer and the second layer are both follow-up layers.
15. A layer display method is characterized by comprising the following steps:
receiving a map operation event initiated by a user;
hiding a first layer of a target layer in response to the map operation event, where the target layer includes the first layer and a second layer, the first layer is generated through a graphical user interface of an operating system, the second layer is generated by rendering a bitmap of the first layer through a map engine, and the first layer is located on an upper layer of the second layer.
16. The layer display method according to claim 15, further comprising:
when the map operation event is finished, determining the display screen coordinates of the interest points corresponding to the target map layer;
determining a display position of the first layer through a graphical user interface of the operating system based on the display screen coordinates;
and displaying the first image layer based on the display position.
17. Layer display method according to any of claims 15 to 16, characterized in that the map operation event comprises: one of a map shift event, a map drag event, a zoom in event, a zoom out event, a rotation event, a slide event, and a pitch adjustment event.
18. An image layer display device, comprising:
the event receiving unit is used for receiving a target layer display event initiated by a user;
the first layer control unit is used for generating a first layer through a graphical user interface of an operating system based on the target layer display event;
the second layer control unit is used for rendering the first layer through a map engine and generating a second layer; and
and the display control unit is used for displaying the first layer and the second layer in an overlapping manner, wherein the first layer is positioned on the upper layer of the second layer.
19. An image layer display device, comprising:
the event receiving unit is used for receiving a map operation event input by a user;
the map layer control unit is configured to hide a first map layer of a target map layer in response to the map operation event, where the target map layer includes the first map layer and a second map layer, the first map layer is generated through a graphical user interface of an operating system, the second map layer is generated by rendering a bitmap of the first map layer through a map engine, and the first map layer is located on an upper layer of the second map layer.
20. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the layer display method according to any one of claims 1 to 17 via execution of the executable instructions.
21. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the layer display method according to any one of claims 1 to 17.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810187979.6A CN108509239B (en) | 2018-03-07 | 2018-03-07 | Layer display method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810187979.6A CN108509239B (en) | 2018-03-07 | 2018-03-07 | Layer display method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108509239A CN108509239A (en) | 2018-09-07 |
CN108509239B true CN108509239B (en) | 2021-08-20 |
Family
ID=63376236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810187979.6A Active CN108509239B (en) | 2018-03-07 | 2018-03-07 | Layer display method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108509239B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109636880A (en) * | 2018-12-14 | 2019-04-16 | 北京向上心科技有限公司 | A kind of picture method for drafting and device, controller and medium |
CN109506669B (en) * | 2018-12-28 | 2021-10-08 | 斑马网络技术有限公司 | Dynamic path planning method, device, system and storage medium |
CN111562894A (en) * | 2019-02-14 | 2020-08-21 | 阿里巴巴集团控股有限公司 | Layer display method, device and equipment |
CN111611031A (en) * | 2019-02-26 | 2020-09-01 | 华为技术有限公司 | Graph drawing method and electronic equipment |
CN110209444B (en) * | 2019-03-20 | 2021-07-09 | 华为技术有限公司 | Graph rendering method and electronic equipment |
CN110209451A (en) * | 2019-05-28 | 2019-09-06 | 南京南方电讯有限公司 | A kind of horse race lamp display system and method based on the superposition of different display engines |
CN110288689B (en) * | 2019-06-20 | 2020-09-01 | 北京三快在线科技有限公司 | Method and device for rendering electronic map |
CN110264547A (en) * | 2019-06-24 | 2019-09-20 | 重庆佳渝测绘有限公司 | A kind of translucent display methods of land data based on map overlay |
CN110377263B (en) * | 2019-07-17 | 2021-08-17 | Oppo广东移动通信有限公司 | Image synthesis method, image synthesis device, electronic equipment and storage medium |
CN110377257B (en) * | 2019-07-17 | 2022-04-19 | Oppo广东移动通信有限公司 | Layer composition method and device, electronic equipment and storage medium |
CN110704147A (en) * | 2019-09-10 | 2020-01-17 | 武汉华信联创技术工程有限公司 | Map layer display method and device and intelligent display equipment |
CN110597941B (en) * | 2019-09-11 | 2023-12-29 | 广州力挚网络科技有限公司 | Map display method and system |
CN110908757B (en) * | 2019-11-18 | 2022-01-28 | 腾讯科技(深圳)有限公司 | Method and related device for displaying media content |
CN111797184A (en) * | 2020-05-29 | 2020-10-20 | 北京百度网讯科技有限公司 | Information display method, device, equipment and medium |
CN114090606A (en) * | 2021-11-30 | 2022-02-25 | 中国电信集团系统集成有限责任公司 | Electronic map target object information updating method and system |
CN114185908B (en) * | 2021-12-13 | 2024-02-06 | 北京百度网讯科技有限公司 | Map data processing method and device, electronic equipment and storage medium |
CN117667277A (en) * | 2022-08-31 | 2024-03-08 | 华为技术有限公司 | User interface display method and related device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440258A (en) * | 2013-07-26 | 2013-12-11 | 聊城市公安局 | Method and device of map display |
US9212918B1 (en) * | 2014-08-29 | 2015-12-15 | Mapquest, Inc. | Systems and methods for generating and displaying multiple layers on a digital map |
CN105224553A (en) * | 2014-06-10 | 2016-01-06 | 上海臻图信息技术有限公司 | A kind of method of showing real-time road on cell phone map |
-
2018
- 2018-03-07 CN CN201810187979.6A patent/CN108509239B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440258A (en) * | 2013-07-26 | 2013-12-11 | 聊城市公安局 | Method and device of map display |
CN105224553A (en) * | 2014-06-10 | 2016-01-06 | 上海臻图信息技术有限公司 | A kind of method of showing real-time road on cell phone map |
US9212918B1 (en) * | 2014-08-29 | 2015-12-15 | Mapquest, Inc. | Systems and methods for generating and displaying multiple layers on a digital map |
Also Published As
Publication number | Publication date |
---|---|
CN108509239A (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108509239B (en) | Layer display method and device, electronic equipment and storage medium | |
CN109408685B (en) | Thinking guide graph display method and device | |
US9110573B2 (en) | Personalized viewports for interactive digital maps | |
US8904297B2 (en) | Method and system for providing information in virtual space | |
CA2942543C (en) | Solution for highly customized interactive mobile maps | |
US20160253926A1 (en) | Method and system for providing customized regional maps | |
JP6316980B2 (en) | Navigation guidance between automatically determined starting point and selected destination | |
EP2790176B1 (en) | Computing systems, devices and methods for rendering maps remotely from an host application | |
CN110597941B (en) | Map display method and system | |
JP2019054510A (en) | Method and system for processing comment included in moving image | |
US20130249812A1 (en) | Interactive visual representation of points of interest data | |
KR101891582B1 (en) | Method and system for processing highlight comment in content | |
JP7032451B2 (en) | Dynamically changing the visual properties of indicators on digital maps | |
WO2020186897A1 (en) | Information processing method and apparatus | |
US8589818B1 (en) | Moveable viewport for indicating off-screen content | |
Dangkham | Mobile augmented reality on web-based for the tourism using HTML5 | |
US10028086B2 (en) | Techniques for implementing location based device services | |
US10331711B2 (en) | Method and apparatus for providing an interactive map section on a user interface of a client device | |
JP2011237597A (en) | Map display device, method, program and map display server | |
US20090002367A1 (en) | Method and system for a communications information interface | |
CN109684565A (en) | The generation of Webpage correlation video and methods of exhibiting, device, system and electronic equipment | |
CN110908752A (en) | Control setting method and device, electronic equipment and interaction system | |
KR102136855B1 (en) | Method and apparatus for providing street view, and computer program for executing the method | |
JP2016062492A (en) | Information display device, delivery device, information display method, and information display program | |
KR20120133875A (en) | Method for Offering User Interface for Web Page Menu Control of n-tier Architecture Based Digital Map and System thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |