CN116340671A - Map display method and device, terminal equipment and readable storage medium - Google Patents

Map display method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN116340671A
CN116340671A CN202310314873.9A CN202310314873A CN116340671A CN 116340671 A CN116340671 A CN 116340671A CN 202310314873 A CN202310314873 A CN 202310314873A CN 116340671 A CN116340671 A CN 116340671A
Authority
CN
China
Prior art keywords
map
attachment
map area
area
attachments
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
CN202310314873.9A
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.)
Shenzhen City Oriental Boya Technology Co ltd
Original Assignee
Shenzhen City Oriental Boya Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen City Oriental Boya Technology Co ltd filed Critical Shenzhen City Oriental Boya Technology Co ltd
Priority to CN202310314873.9A priority Critical patent/CN116340671A/en
Publication of CN116340671A publication Critical patent/CN116340671A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of maps, and provides a map display method, a device, terminal equipment and a readable storage medium, wherein the method comprises the following steps: responding to the dragging operation of a user, determining a first map area, wherein the first map area is a map area which is newly added in the global map moving process and needs to be displayed, and the first map area is associated with first attachments; acquiring an empty object from the object pool, and configuring the empty object according to the display characteristics of the first attachment to obtain the first attachment; and displaying the map based on the first map area and the first attachments. The method and the device can solve the problem of blocking caused by long-time excessive occupation of the memory.

Description

Map display method and device, terminal equipment and readable storage medium
Technical Field
The application belongs to the technical field of maps, and particularly relates to a map display method, a map display device, terminal equipment and a readable storage medium.
Background
Because of the limitation of the size of the display screen, a user needs to drag the map back and forth when viewing the map, and the current map display method always occupies the memory of the device no matter whether the map is displayed in the display screen or not, so that the memory is excessively occupied for a long time, and the phenomenon of clamping and stopping occurs.
Disclosure of Invention
The embodiment of the application provides a map display method and device, which can solve the problem of stuck memory caused by long-time excessive occupation of a memory.
In a first aspect, an embodiment of the present application provides a map display method, including:
responding to a dragging operation of a user, determining a first map area, wherein the first map area is a map area which is newly added in the global map moving process and needs to be displayed, and the first map area is associated with a first attachment;
acquiring an empty object from an object pool, and configuring the empty object according to the display characteristics of the first attachment to obtain the first attachment;
and displaying the map based on the first map area and the first attachments.
In a second aspect, an embodiment of the present application provides a map display apparatus, including:
the first determining module is used for determining a first map area in response to the dragging operation of a user, wherein the first map area is a map area which is newly added in the global map moving process and needs to be displayed, and the first map area is associated with first attachments;
the acquisition module is used for acquiring an empty object from the object pool, and configuring the empty object according to the display characteristics of the first attachment to obtain the first attachment;
and the display module is used for displaying the map based on the first map area and the first attachments.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a map display method as described in the first aspect when the processor executes the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program that when executed by a processor implements a map display method as described in the first aspect above.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a terminal device, causes the terminal device to perform a map display method as described in the first aspect above.
Compared with the prior art, the embodiment of the application has the beneficial effects that: in the method, a first map area is determined in response to drag operation of a user, wherein the first map area is a map area which is newly added in the global map moving process and needs to be displayed, and first attachments are associated with the first map area; acquiring an empty object from the object pool, and configuring the empty object according to the display characteristics of the first attachment to obtain the first attachment; and displaying the map based on the first map area and the first attachments. The application creates the first attachment based on the empty object when the first attachment needs to be displayed, and avoids the long-time memory occupation of the data corresponding to the first attachment, so that the application can solve the problem of blocking caused by long-time excessive occupation of the memory.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a map display method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a map grid provided in an embodiment of the present application;
fig. 3 is a flowchart of a map display method according to another embodiment of the present application;
fig. 4 is a schematic block diagram of a map display apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Embodiment one:
referring to fig. 1, fig. 1 shows a schematic flow of a map display method provided in the present application.
Step 101, in response to a drag operation of a user, determining a first map area, wherein the first map area is a map area to be displayed newly added in a global map moving process, and the first map area is associated with a first attachment.
The global map may refer to a complete map of a certain area, or may refer to a corresponding scene map under a certain scene. For example, there are a plurality of scenes in a game, and the global map may refer to a map corresponding to each scene.
Users often drag the map during viewing of the map, for example, the user may drag the map to determine enemy positions while playing a game. The global map moves along with the dragging of the user, and the display screen of the terminal device is of a certain size, so that when the user drags the map, a map area which needs to be displayed in the display screen, namely, a first map area, is newly added.
In an alternative embodiment, responsive to a drag operation by a user, determining a first map region includes: responding to the dragging operation, and determining a newly added map coordinate range to be displayed; extracting target data from map data corresponding to the global map based on the map coordinate range; and loading target data to obtain a first map area.
When a user opens a map or enters a game, map data may be loaded into the memory of the terminal device. The map data may contain display features of attachments and topographic images; the display characteristics of the attached matter may refer to information such as transparency of the attached matter, map coordinates corresponding to the attached matter, and size and storage position of the attached matter picture. The attached picture may be a still picture or a moving picture.
The map data is data corresponding to a global map, and thus, target data with respect to the first map region can be extracted from the map data. The target data may refer to a topographic image corresponding to the first map area.
It should be noted that when the user opens the map or enters the game, all the attached matter pictures do not need to be loaded into the memory, and the display features of the attached matter can be loaded into the memory. Wherein the attached picture may be stored in a memory of the terminal device.
The map basic display attribute corresponding to the first map region may include a topographic attribute, and the topographic attribute may reflect topographic information such as a surface relief form, a surface texture form, and the like.
Optionally, in response to the drag operation, determining the map coordinate range to be displayed newly added includes: determining a first map coordinate range to be displayed in the display screen after dragging, namely a map area to be displayed in the display screen after dragging according to map coordinates corresponding to the center point of the display screen and the size of the display screen; acquiring a second map coordinate range of an area displayed in the display screen before dragging; and determining the newly added map coordinate range to be displayed according to the first map coordinate range and the second map coordinate range.
As an example and not by way of limitation, a map coordinate range included in the first map coordinate range but not included in the second map coordinate range may be determined as a newly added map coordinate range to be displayed.
In another optional embodiment, the first map region corresponds to target data in the global map, and determining the first map region in response to a drag operation of the user includes: determining a terrain feature parameter based on the current scene data; and after the topographic feature parameters are written into the target fields of the target data, loading the target data to obtain a first map area.
Different scenes have different terrain styles of the global map, namely, the association relation exists between the scenes and the terrain characteristic parameters. For example, if the current scene is a desert scene, the topographic feature parameters in the desert scene can be known according to the association relationship, and the topographic feature parameters can include parameters such as surface relief feature parameters, surface texture feature parameters and the like.
Alternatively, the first attachment may refer to an object attached to a terrain, such as a building, tree, box, game player, or the like.
Optionally, the global map is divided into a plurality of map grids, and before acquiring the empty objects from the object pool, the method further comprises: determining a target map grid corresponding to the first map area; and searching attachments associated with each target map grid to obtain a first attachment associated with the first map area.
In order to better edit and manage the global map, the global map can be subjected to grid division to obtain a plurality of map grids.
The target map grid corresponding to the first map area is a newly added grid to be displayed. Thus, the first attachment may be determined by looking for attachments associated with the target map grid.
Alternatively, the global map may be recursively hierarchically partitioned to obtain a tree structure of the map grid. Specifically, the global map may be divided into n sub-maps equally, and for each sub-map obtained after the equally dividing, the sub-map is divided into n equally again, and recursion is performed according to the equally dividing method until the size of the equally divided sub-map is a set size or the tree level reaches a set depth, so as to obtain a plurality of map grids. In order to improve the bit operation efficiency, the side length of the map grid may be an integral power of 2.
By way of example and not limitation, the value of n may be 4. Referring to fig. 2, fig. 2 is a schematic diagram of a map grid, and the global map is divided into 4 sub-maps A, B, C, D in a first hierarchy; taking the sub map a as an example, describing the second level of division, the sub map a may be divided into a total of E, F, G, H sub maps; taking the sub-map H as an example, the third level of division is described, and the sub-map H may be divided into a total of 4 sub-maps I, J, K, L. If I, J, K, L is the set size, the sub-map obtained by the third hierarchical division is the map grid.
And 102, acquiring an empty object from the object pool, and configuring the empty object according to the display characteristics of the first attachments to obtain the first attachments.
Optionally, in addition to acquiring the display characteristic of the first attachment based on the map data, the method for acquiring the display characteristic of the first attachment may further be: and determining the display characteristics of the first attachments based on the association relation between the regional characteristics corresponding to the first map region and the attachment characteristics.
There is a certain association between the region and the attachment, and the corresponding building style, plant, clothing style and the like are different for different regions. Therefore, the display characteristics of the first attached matter can be determined based on the region corresponding to the first map region. For example, if the region corresponding to the first map region is the original clan region, the display characteristics of the first attachments such as the building and the game player may be determined based on the region characteristics of the original clan region.
Alternatively, an object pool may be created when the user opens a map or enters a game, the object pool being used to store empty objects.
Optionally, the display feature of the first attachment may be obtained from the memory, and the attribute of the empty object is modified based on the display feature of the first attachment, so as to obtain the first attachment. Modifying the properties of the empty object may be understood as modifying the texture of the empty object to the texture of the first attachment.
Alternatively, if there are no empty objects in the object pool, a new empty object may be created.
And 103, displaying a map based on the first map area and the first attachments.
Alternatively, the first map area and the first attachments may be placed in a rendering pool for rendering, and the first map area and the first attachments are displayed in a display screen.
In an alternative embodiment, the method further comprises:
responding to the dragging operation, determining a second map area, wherein the second map area is a map area needing to be hidden in the whole map moving process, and a second attachment is associated in the second map area; restoring the second attachment to an empty object based on the display characteristics of the second attachment and storing the empty object in an object pool; and releasing the data of the second map area.
When the user drags the map, since there is a new map area to be displayed on the display screen, there is necessarily a map area to be disappeared on the display screen, that is, a second map area.
Optionally, determining the second map region includes: and determining the map coordinate range to be hidden according to the first map coordinate range and the second map coordinate range.
As an example and not by way of limitation, a map coordinate range included in the second map coordinate range but not included in the first map coordinate range may be determined as a map coordinate range that needs to be hidden.
Alternatively, restoring the second attachment to an empty object may be understood as emptying the property of the object to which the second attachment corresponds. Releasing the second map area from the data may be understood as removing the second map area from the rendering pool. It should be noted that, removing the second map area from the rendering pool does not mean that the data corresponding to the second map area is purged from the memory.
The first attachments are dynamically created and recovered based on the object pool, so that excessive occupation of the memory and generation of more memory fragments can be avoided, and better service experience can be provided for users with smaller hardware cost.
In the method, a first map area is determined in response to drag operation of a user, wherein the first map area is a map area which is newly added in the global map moving process and needs to be displayed, and first attachments are associated with the first map area; acquiring an empty object from the object pool, and configuring the empty object according to the display characteristics of the first attachment to obtain the first attachment; and displaying the map based on the first map area and the first attachments. The application creates the first attachment based on the empty object when the first attachment needs to be displayed, and avoids the long-time memory occupation of the data corresponding to the first attachment, so that the application can solve the problem of blocking caused by long-time excessive occupation of the memory.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Embodiment two:
referring to fig. 3, fig. 3 shows a schematic flow of a map display method provided in the present application.
In step 301, in response to the drag operation of the user, the second map area is determined, and the global map is controlled by the drag operation to start inertial movement.
In general, an inertial movement effect is added in the map movement process, that is, after a user stops dragging the map, the map continues to move for a certain distance under the inertial action. The drag operation may refer to an operation in which a user's finger leaves the display screen or an operation in which a mouse is released.
The content of determining the second map area may be referred to the description in the first embodiment, and will not be described herein.
Step 302, obtaining a target ablation index of the second attachment.
Optionally, obtaining a target ablation index of the second attachment includes: acquiring an initial ablation index of the second attachment, wherein the initial ablation index is related to the interaction attribute of the second attachment; acquiring the transparency of the second attachment; acquiring the interval distance between the second attachments and a third map area, wherein the third map area is a map area which is to be displayed after the inertial movement of the global map is stopped; and calculating a target ablation index according to the initial ablation index, the transparency and the interval distance.
Optionally, the second attachments may be interacted, which may indicate that the importance degree of the second attachments in the map is higher, for example, a box in the game map may have supplies such as bullets in the box, and the user may open the box at any time, so, in order to ensure that the user may interact with the second attachments in the inertial movement process of the map, the ablation effect corresponding to the initial ablation index corresponding to the box may be slower in ablation speed. The second attachment is not interactable, which can indicate that the importance degree of the second attachment in the map is lower, such as stone, and the corresponding ablation effect of the initial ablation index can be higher as the user cannot interact with the second attachment. The smaller the initial ablation index, the slower the ablation speed, the larger the initial ablation index, and the faster the ablation speed. By way of example and not limitation, the initial ablation index corresponding to the interactable second deposit may be less than the initial ablation index corresponding to the non-interactable second deposit.
Optionally, the transparency of the second attachment is preset. The transparency may be in the range of [0,255], with greater transparency indicating that the second attachment is more opaque and less transparent indicating that the second attachment is more transparent.
Optionally, the third map area corresponds to the first map coordinate range in the first embodiment, and the process of acquiring the third map area is not described herein. The smaller the separation distance, the closer it is to the third map region, the slower the corresponding ablation speed may be, and the larger the separation distance, the farther it is from the third map region, i.e., the earlier it disappears, the faster the corresponding ablation speed may be.
Optionally, acquiring the separation distance between the second attachment and the third map area includes: acquiring a first map coordinate corresponding to the second attachment; acquiring a second map coordinate corresponding to a center point of a third map area; the separation distance is calculated from the first map coordinates and the second map coordinates.
By way of example, and not limitation, the separation distance may be calculated based on the following equation:
Figure BDA0004150071670000091
distance is the Distance between the two sides of the display screen, and the X axis and the Y axis are respectively established along the directions of the two sides of the display screen which are perpendicular to each other, pixel X For the length of the display screen in the X-axis direction, pixel Y Distance is the length of the display screen in the Y-axis direction X Distance is the Distance between the first map coordinate and the X coordinate in the second map coordinate Y Is the distance between the Y-coordinate of the first map coordinate and the second map coordinate.
Optionally, the third map area corresponds to a plurality of associated map grids, and acquiring the separation distance between the second attachment and the third map area includes: the distance between the second attachment and each associated map grid can be calculated based on the above formula, and a distance average of the distances can be calculated to obtain the interval distance between the second attachment and the third map region. Wherein Distance can be calculated based on the first map coordinates corresponding to the second attachment and the third map coordinates corresponding to the associated map grid X And Distance Y
According to the analysis, the second attachments can be interacted, so that the ablation speed is slow, the transparency is higher, the ablation speed is slower, the interval distance is smaller, and the ablation speed is slower; namely, the initial ablation index and the target ablation index are in positive correlation, the transparency and the target ablation index are in inverse correlation, and the interval distance and the target ablation index are in positive correlation. By way of example and not limitation, the target ablation index may be calculated according to the following equation:
Ablation_Value’=Distance*(255-Alpha)*Ablation_Value
the greater the Value, the faster the Ablation speed, the smaller the Value, and the slower the Ablation speed; distance is the Distance between the second attachment and the third map area, alpha is transparency, and Ablaw_value is the initial Ablation index.
Step 303, determining an ablation effect of the second attachment during the inertial movement based on the target ablation index.
Different ablation animation effects can be added for each second attachment according to the target ablation index, so that the second attachments are gradually ablated in the inertial movement process, and when the ablation animation is played, the second attachments fade out of the screen just under the inertial action. The method can highlight the second attachments which can be interacted, are opaque and are closer to the third map area, and the situation that the attention of the user is dispersed by the second attachments which cannot be interacted is avoided, so that the interaction experience of the user is improved.
In the method, a second map area is determined in response to the dragging operation of a user, and the global map is controlled by the dragging operation to start inertial movement; obtaining a target ablation index of the second attachment; based on the target ablation index, an ablation effect of the second attachment during inertial movement is determined. According to the method and the device, the ablation effect is added for the second attachments in the global map inertial movement process, so that the second attachments are gradually ablated in the inertial movement process, when the ablation animation is played, the second attachments fade out of the screen just under the action of inertia, and the interactive experience of a user is improved.
Embodiment III:
referring to fig. 4, fig. 4 shows a schematic structure of a map display device provided in the present application. For ease of illustration, only portions relevant to embodiments of the present application are shown in the drawings.
Referring to fig. 4, the apparatus includes a first determining module 41, an acquiring module 42, and a display module 43; the specific functions of each module are as follows:
the first determining module 41 is configured to determine, in response to a drag operation by a user, a first map area, where the first map area is a map area to be displayed newly added in a global map moving process, and the first map area is associated with a first attachment;
an obtaining module 42, configured to obtain an empty object from the object pool, and configure the empty object according to the display feature of the first attachment, so as to obtain the first attachment;
the display module 43 is configured to display a map based on the first map area and the first attachment.
Optionally, the first map region corresponds to target data in the global map, and the first determining module 41 is specifically configured to: determining a terrain feature parameter based on the current scene data; and after the topographic feature parameters are written into the target fields of the target data, loading the target data to obtain a first map area.
Optionally, the device further comprises an attachment acquisition module for: before acquiring an empty object from the object pool, determining a target map grid corresponding to the first map area; and searching attachments associated with each target map grid to obtain a first attachment associated with the first map area.
Optionally, the apparatus further comprises:
the display characteristic acquisition module is used for determining the display characteristic of the first attachment based on the association relationship between the regional characteristic corresponding to the first map region and the attachment characteristic before configuring the empty object according to the display characteristic of the first attachment to obtain the first attachment.
Optionally, the apparatus further comprises:
the second determining module is used for determining a second map area in response to the dragging operation, wherein the second map area is a map area needing to be hidden in the global map moving process, and second attachments are associated in the second map area;
the restoration module is used for restoring the second attachment into an empty object and storing the empty object into the object pool based on the display characteristics of the second attachment;
and the data release module is used for releasing the data of the second map area.
Optionally, the global map is controlled by a drag operation to start inertial movement, and the apparatus further includes:
the index acquisition module is used for acquiring a target ablation index of the second attachment;
and the ablation module is used for determining the ablation effect of the second attachment in the inertial movement process based on the target ablation index.
Optionally, the index obtaining module includes:
the first acquisition unit is used for acquiring an initial ablation index of the second attachment, and the initial ablation index is related to the interaction attribute of the second attachment;
a second acquisition unit configured to acquire transparency of a second attached matter;
the third acquisition unit is used for acquiring the interval distance between the second attachments and a third map area, and the third map area is a map area which is to be displayed after the global map stops inertial movement;
and the calculating unit is used for calculating a target ablation index according to the initial ablation index, the transparency and the interval distance.
The map display apparatus provided in the embodiment of the present application may be applied to the first and second embodiments of the foregoing method, and details refer to the description of the first and second embodiments of the foregoing method, which are not repeated herein.
Embodiment four:
referring to fig. 5, fig. 5 shows a schematic structure of a terminal device according to an embodiment of the present application. The terminal device 5 of this embodiment includes: at least one processor 50 (only one is shown in fig. 5), a memory 51 and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, the processor 50 implementing the steps of one of the map display methods of the first and second embodiments described above when executing the computer program 52.
The terminal device 5 may be a computing device such as a desktop computer, a notebook computer, a palm computer, etc. The terminal device 5 may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the terminal device 5 and is not meant to be limiting as the terminal device 5, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 50 may be a central processing unit (Central Processing Unit, CPU), the processor 50 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may in some embodiments be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may in other embodiments also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a terminal device, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A map display method, the method comprising:
responding to a dragging operation of a user, determining a first map area, wherein the first map area is a map area which is newly added in the global map moving process and needs to be displayed, and the first map area is associated with a first attachment;
acquiring an empty object from an object pool, and configuring the empty object according to the display characteristics of the first attachment to obtain the first attachment;
and displaying the map based on the first map area and the first attachments.
2. The map display method of claim 1, wherein the first map region corresponds to target data in the global map, and wherein the determining the first map region in response to a drag operation by a user comprises:
determining a terrain feature parameter based on the current scene data;
and after the topographic feature parameters are written into the target fields of the target data, loading the target data to obtain the first map area.
3. A map display method as defined in claim 1, wherein the global map is divided into a plurality of map grids, the method further comprising, prior to said acquiring empty objects from the object pool:
determining a target map grid corresponding to the first map region;
and searching attachments associated with each target map grid to obtain the first attachments associated with the first map area.
4. A map display method according to claim 1, wherein before said configuring said empty object according to said display characteristics of said first deposit, said method further comprises:
and determining the display characteristics of the first attachments based on the association relation between the regional characteristics corresponding to the first map area and the attachment characteristics.
5. A map display method as defined in claim 1, further comprising:
responding to the dragging operation, determining a second map area, wherein the second map area is a map area needing to be hidden in the global map moving process, and a second attachment is associated in the second map area;
restoring the second attachment to an empty object based on the display characteristics of the second attachment and storing the empty object in the object pool;
and releasing the data of the second map area.
6. The map display method of claim 5, wherein the global map is subject to the drag operation to start inertial movement, the method further comprising:
obtaining a target ablation index of the second attachment;
and determining the ablation effect of the second attachment in the inertial movement process based on the target ablation index.
7. The map display method as set forth in claim 6, wherein said obtaining a target ablation index of said second deposit comprises:
acquiring an initial ablation index of the second attachment, wherein the initial ablation index is related to the interaction attribute of the second attachment;
acquiring the transparency of the second attachment;
acquiring the interval distance between the second attachments and a third map area, wherein the third map area is a map area to be displayed after the global map stops inertial movement;
and calculating the target ablation index according to the initial ablation index, the transparency and the interval distance.
8. A map display apparatus, characterized in that the apparatus comprises:
the first determining module is used for determining a first map area in response to the dragging operation of a user, wherein the first map area is a map area which is newly added in the global map moving process and needs to be displayed, and the first map area is associated with first attachments;
the acquisition module is used for acquiring an empty object from the object pool, and configuring the empty object according to the display characteristics of the first attachment to obtain the first attachment;
and the display module is used for displaying the map based on the first map area and the first attachments.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements a map display method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements a map display method according to any one of claims 1 to 7.
CN202310314873.9A 2023-03-15 2023-03-15 Map display method and device, terminal equipment and readable storage medium Pending CN116340671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310314873.9A CN116340671A (en) 2023-03-15 2023-03-15 Map display method and device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310314873.9A CN116340671A (en) 2023-03-15 2023-03-15 Map display method and device, terminal equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116340671A true CN116340671A (en) 2023-06-27

Family

ID=86892655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310314873.9A Pending CN116340671A (en) 2023-03-15 2023-03-15 Map display method and device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116340671A (en)

Similar Documents

Publication Publication Date Title
US11842438B2 (en) Method and terminal device for determining occluded area of virtual object
CN109064390B (en) Image processing method, image processing device and mobile terminal
US9443345B2 (en) Method and apparatus for rendering three-dimensional (3D) object
CN111957040B (en) Detection method and device for shielding position, processor and electronic device
CN108154548A (en) Image rendering method and device
CN110163831B (en) Method and device for dynamically displaying object of three-dimensional virtual sand table and terminal equipment
CN113900797B (en) Three-dimensional oblique photography data processing method, device and equipment based on illusion engine
CN111882632B (en) Surface detail rendering method, device, equipment and storage medium
CN111968214B (en) Volume cloud rendering method and device, electronic equipment and storage medium
CN112652046A (en) Game picture generation method, device, equipment and storage medium
CN113570725A (en) Three-dimensional surface reconstruction method and device based on clustering, server and storage medium
CN110248165B (en) Label display method, device, equipment and storage medium
CN116340671A (en) Map display method and device, terminal equipment and readable storage medium
CN111790151A (en) Method and device for loading object in scene, storage medium and electronic equipment
CN116630516A (en) 3D characteristic-based 2D rendering ordering method, device, equipment and medium
CN108780576A (en) The system and method removed using the ghost image in the video clip of object bounds frame
CN113117334B (en) Method and related device for determining visible area of target point
CN111790152B (en) Method and device for loading objects in scene, storage medium and electronic equipment
CN114079815B (en) Subtitle protection method, system, terminal equipment and storage medium
US20190005736A1 (en) Method and apparatus for calculating a 3d density map associated with a 3d scene
CN111931794B (en) Sketch-based image matching method
CN112907741A (en) Terrain scene generation method and device, electronic equipment and storage medium
CN116721187B (en) Animation dynamic loading and unloading method, device, equipment and medium based on scene cutting
CN111538410A (en) Method and device for determining target algorithm in VR scene and computing equipment
CN116188552B (en) Region-based depth test method, device, equipment and storage medium

Legal Events

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