CN111367623A - Map display method and related product - Google Patents

Map display method and related product Download PDF

Info

Publication number
CN111367623A
CN111367623A CN202010162179.6A CN202010162179A CN111367623A CN 111367623 A CN111367623 A CN 111367623A CN 202010162179 A CN202010162179 A CN 202010162179A CN 111367623 A CN111367623 A CN 111367623A
Authority
CN
China
Prior art keywords
map
code
data
data calculation
installation
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.)
Granted
Application number
CN202010162179.6A
Other languages
Chinese (zh)
Other versions
CN111367623B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010162179.6A priority Critical patent/CN111367623B/en
Publication of CN111367623A publication Critical patent/CN111367623A/en
Application granted granted Critical
Publication of CN111367623B publication Critical patent/CN111367623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44584Portable applications, i.e. making applications self-contained, e.g. U3 standard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

The embodiment of the application discloses a map display method and a related product, which are applied to electronic equipment comprising an installation-free platform, wherein the method comprises the following steps: acquiring a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language; calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file; drawing the target map based on the first data calculation code and the binary file; and displaying the target map on the installation-free platform. The embodiment of the application has the advantage of high user experience.

Description

Map display method and related product
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a map display method and a related product.
Background
With the rapid development of science and technology, intelligent terminal equipment becomes electronic equipment which is unavailable in daily life, and functions of the intelligent terminal equipment are more and more, wherein the intelligent terminal equipment comprises a mobile phone map, and the daily life is facilitated to a great extent through the mobile phone map.
The current mobile phone map displays an online map in an online platform mode, the online map needs a large amount of graphic processing and real-time drawing, but the current online platform has low efficiency of language operation supported, and when intensive calculation needs to be carried out, the execution time is long during calculation, so that the map is displayed in a stuck state, and the user experience is low.
Disclosure of Invention
The embodiment of the application provides a map display method and a related product, a map is drawn by calling a first data calculation code and a binary code and displayed on an installation-free platform, code operation amount is reduced, and code operation time is shortened, so that the map drawing speed is increased, the problem of map display blockage is solved, and the user experience is improved.
And the user experience is improved.
In a first aspect, an embodiment of the present application provides a map display method, which is applied to an electronic device including an installation-free platform, and the method includes:
acquiring a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language;
calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
drawing the target map based on the first data calculation code and the binary file;
and displaying the target map on the installation-free platform.
In a second aspect, an embodiment of the present application provides a map display apparatus, which is applied to an electronic device including a mounting-free platform, and the apparatus includes:
an acquisition unit configured to acquire a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language;
the calling unit is used for calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
a drawing unit configured to draw the target map based on the first data calculation code and the binary code file;
and the display unit is used for displaying the target map on the installation-free platform.
In a third aspect, an embodiment of the present application provides an electronic device, including a controller, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the controller, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that in the embodiment of the present application, an electronic device obtains a first data calculation code and a second data calculation code for drawing a map, where the first data calculation code is written in a first language, and the second data calculation code is written in a second language; calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file; drawing the target map based on the first data calculation code and the binary file; and displaying the target map on the installation-free platform. Therefore, the second data calculation codes are converted into the binary code files to run, the code running speed is improved, the first data calculation codes and the binary code files are mutually called to realize map drawing, the code running amount is reduced, the code running time is shortened, the map drawing speed is improved, the problem of map display blockage is solved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram illustrating a method for displaying a map according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another map display method provided in the embodiment of the present application;
fig. 4 is a schematic flowchart of another map display method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a map display apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, where:
the electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as an installation-free platform and mapping engine, an Internet browsing application, a Voice Over Internet Protocol (VOIP) phone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. The sensors 170 may include ambient light sensors, proximity sensors based on light and capacitance, fingerprint recognition modules, touch sensors (e.g., based on light touch sensors and/or capacitive touch sensors, wherein the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), such as acceleration sensors and other sensors.
The electronic device 100 may further include a camera 140, the camera 140 including: infrared camera, color image camera and so on, the camera can be leading camera or rear camera, and the fingerprint identification module can be integrated in the display screen below for gather the fingerprint image, the fingerprint identification module can be following at least one: optical fingerprint identification module, or ultrasonic fingerprint identification module etc. do not do the restriction here. The front camera can be arranged below the front display screen, and the rear camera can be arranged below the rear display screen. Of course, the front camera or the rear camera may not be integrated with the display screen, and certainly in practical applications, the front camera or the rear camera may also be a lifting structure.
Input-output circuit 150 may also include one or more display screens, and when multiple display screens are provided, such as 2 display screens, one display screen may be provided on the front of the electronic device and another display screen may be provided on the back of the electronic device, such as display screen 130. The display 130 may include one or a combination of liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, display using other display technologies. The display screen 130 may include an array of touch sensors (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. The communication circuit 120 may include a long-range local area network communication module. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
The electronic device described above with reference to fig. 1 is configured to implement the following functions:
acquiring a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language;
calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
drawing the target map based on the first data calculation code and the binary file;
and displaying the target map on the installation-free platform.
Referring to fig. 2, fig. 2 is a schematic flowchart of a local graph display method according to an embodiment of the present application, applied to the electronic device shown in fig. 1, where the local graph display method includes:
step 201, acquiring a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written by a first language, and the second data calculation code is written by a second language;
optionally, before the obtaining the first data calculation code and the second data calculation code for drawing the map, the method further includes: acquiring target area data, wherein the target area data may include: determining a target mapping element according to the target area data, wherein the target mapping element comprises: building elements, road/traffic line elements, and environmental elements.
Further, the first data calculation code for drawing the map is obtained, where the first data calculation code is written in a first language, and a pull-out operation is performed on the first data calculation code for the target map drawing element to obtain an algorithm set corresponding to the target map drawing element, where the algorithm set may include: the method comprises the following steps of drawing a line algorithm, a drawing surface algorithm and other drawing algorithms, and sending an algorithm reconstruction instruction to a preset terminal, wherein the algorithm reconstruction instruction comprises the following steps: and the algorithm reconstruction instruction is used for instructing the preset terminal to write the algorithms in the algorithm set in the second language to obtain the second data calculation code.
Optionally, the first data calculation code for drawing the map is obtained, where the first data calculation code is written in a first language, and a pull-out operation is performed on the first data calculation code for the target map drawing element to obtain an algorithm set corresponding to the target map drawing element, where the algorithm set may include: the method comprises the steps of drawing a line algorithm, a drawing surface algorithm and other drawing algorithms, and sending an algorithm obtaining instruction to a preset cloud server, wherein the algorithm obtaining instruction comprises the following steps: the algorithm set is used for instructing the cloud server to return a second data computing code corresponding to the algorithm set, and receiving an algorithm obtaining response returned by the cloud server, where the algorithm obtaining response includes: the second data calculation code.
Wherein the first data calculation code may include: a coordinate calculation algorithm of a plurality of building elements, a height calculation algorithm of a plurality of buildings, a distance calculation algorithm between a plurality of buildings, a road length calculation algorithm, a road shape calculation algorithm, a traffic route shape calculation algorithm, a traffic sign position calculation algorithm, a traffic sign shape calculation algorithm, and the like included in the target area data are not limited herein.
The first language may include an transliterated script language JavaScript, and the second language may include an object-oriented high-level programming language C + +, and the like, which are not limited herein.
Step 202, calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
optionally, a preset code tool is obtained, the code tool is called, the second data calculation code is used as an input of the code tool, and the binary code file is obtained, where the binary code file may include a wasm file corresponding to a web assembly language WebAssembl, and the like, which is not limited herein.
Among them, WebAssembly is a new coding mode, can run in modern Web browsers, is a low-level assembly-like language, has a compact binary format, can run close to native performance, and provides a compilation target for languages such as C/C + + and the like so that they can run on the Web. It is also designed to co-exist with JavaScript, allowing both to work together.
Step 203, drawing the target map based on the first data calculation code and the binary code file;
optionally, the binary code file is loaded into the installation-free platform, the map engine runs the first data calculation code and calls the binary code file to draw the target map.
And step 204, displaying the target map on the installation-free platform.
In a possible example, the electronic device further includes a map engine, the drawing the target map based on the first data computing code and the binary file, including: generating a map data package based on the first data calculation code and the binary code file; controlling the installation-free platform to load the map data packet; and operating the map engine to draw the target map.
Optionally, the installation-free platform is operated, the map data packet is generated based on the installation-free platform, the first data calculation code and the binary code file, and the map data packet is sent to the installation-free platform, where the map data packet is used for drawing a map.
In one possible example, the generating a map data package based on the first data computation code and the binary file comprises: acquiring a bag body structure rule of the installation-free platform; acquiring preset display resource data; and processing the first data calculation code, the binary code file and the display resource data based on the inclusion structure rule to obtain the map data packet.
The bag body structure rule is used for processing data to generate a data packet which accords with the bag body structure rule, and the bag body structure rule corresponds to the decompression rule of the installation-free platform, namely is used for generating the data packet which accords with the decompression rule.
Optionally, the generating a map data packet based on the first data calculation code and the binary code file includes: acquiring a bag body structure rule of the installation-free platform; acquiring preset display resource data; obtaining basic code of a map engine, wherein the basic code may include: a resource loading algorithm, a mapping algorithm, a network request, and the like, which are not limited herein, and the basic code, the first data calculation code, the binary code file, and the display resource data are processed based on the packet structure rule to obtain the map data packet.
In one possible example, the controlling the installation-free platform to load the map data package includes: controlling the installation-free platform to load the binary code file in the map data packet, and storing the binary code file to a preset memory area; calling the installation-free platform to compile and run the binary code file to obtain a compilation result, wherein the compilation result comprises: one or more algorithms, each algorithm corresponding to an algorithm name.
Optionally, a decompression format corresponding to the installation-free platform is obtained, the installation-free platform is controlled to decompress the map data packet, so as to obtain the first data calculation code, the binary code file and the preset display resource data, the first data calculation code is sent to the map engine, the installation-free platform is controlled to load the binary code file and the preset display resource data, wherein the binary code file is stored in a preset memory area, a code compiler corresponding to the installation-free platform is obtained, the code compiler is started to compile the binary code file, so as to obtain a compilation result corresponding to the binary code file, and the compilation result includes: one or more algorithms and an algorithm name corresponding to each algorithm, wherein the compiling result is used for calling the binary code.
In one possible example, the operational mapping engine renders the target map, including: sending the compilation result and the first data computation code to the map engine; and running the first data codes through the map engine, and calling one or more algorithms in the compiling result through the algorithm names to execute drawing operation to obtain the target map.
Optionally, the map engine runs the first data code, and calls one or more algorithms in the compiled result by an algorithm name to perform a drawing operation, where the drawing operation includes: running a map engine, running the first data code through the map engine, and acquiring an algorithm calling request returned by the map engine, wherein the algorithm calling request comprises: the algorithm calling request is used for requesting to call the algorithm corresponding to the algorithm name and returning an algorithm calling response to the map engine, and the algorithm calling response comprises: and controlling the map engine to call the algorithm to draw the map according to the algorithm information corresponding to the algorithm name. In a possible example, the displaying the target map on the installation-free platform includes: acquiring the target map; processing the target map based on the preset display resource data to obtain an installation-free map; and displaying the installation-free map on the installation-free platform.
Optionally, processing the target map based on the preset display resource data includes: obtaining a display icon set from the preset display resource, where the display icon set may include: a building icon set, a road icon set, a line segment icon set, and the like, which are not limited herein, and the installation-free map is obtained by performing an icon replacement operation on the target map based on the display icon set.
In a specific implementation process, it is assumed that the display icon set includes a building icon set, and the building icon set includes: the map installation-free map comprises a bank icon, a school icon, an office building icon and a residential building icon, wherein the bank position, the school position, the office building position and the residential building position contained in the target map are determined, the bank position is marked through the bank icon, the school position is marked through the school icon, the office building position is marked through the office building icon, the residential building position is marked through the residential building icon, and the current map is stored as the installation-free map.
It can be seen that in the embodiment of the present application, an electronic device obtains a first data calculation code and a second data calculation code for drawing a map, where the first data calculation code is written in a first language, and the second data calculation code is written in a second language; calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file; drawing the target map based on the first data calculation code and the binary file; and displaying the target map on the installation-free platform. Therefore, the second data calculation codes are converted into the binary code files to run, the code running speed is improved, the first data calculation codes and the binary code files are mutually called to realize map drawing, the code running amount is reduced, the code running time is shortened, the map drawing speed is improved, the problem of map display blockage is solved, and the user experience is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of another map display method according to an embodiment of the present application, applied to the electronic device shown in fig. 1, where the local map display method includes:
step 301, obtaining a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written by a first language, and the second data calculation code is written by a second language;
step 302, calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
step 303, generating a map data packet based on the first data calculation code and the binary code file;
304, controlling the installation-free platform to load the map data packet;
step 305, operating the map engine to draw the target map;
and step 306, displaying the target map on the installation-free platform.
For the detailed description of steps 301 to 306, reference may be made to the response step of the map display method described in fig. 2, which is not described herein again.
It can be seen that, in the embodiment of the present application, a first data calculation code and a second data calculation code for drawing a map are obtained, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language; calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file; generating a map data package based on the first data calculation code and the binary code file; controlling the installation-free platform to load the map data packet; running the map engine to draw the target map; and displaying the target map on the installation-free platform. Therefore, the code operation rate can be improved by converting the second data calculation codes into the binary code file, algorithm support is provided for the first data calculation codes, the operation rate of the first data calculation codes is improved, the operation time is shortened, the map drawing speed is increased, the problem of map display blockage is solved, and the user experience is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of another map display method according to an embodiment of the present application, applied to the electronic device shown in fig. 1, where the local map display method includes:
step 401, obtaining a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written by a first language, and the second data calculation code is written by a second language;
step 402, calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
step 403, acquiring a bag body structure rule of the installation-free platform, and acquiring preset display resource data;
step 404, processing the first data calculation code, the binary code file and the display resource data based on the bag body structure rule to obtain the map data packet;
step 405, controlling the installation-free platform to load the map data packet;
step 406, operating the map engine to draw the target map;
and step 407, displaying the target map on the installation-free platform.
The detailed description of the steps 401 to 407 may refer to the response step of the map display method described in fig. 2, and is not repeated herein.
It can be seen that, in the embodiment of the present application, an electronic device obtains a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language; calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file; acquiring a bag body structure rule of the installation-free platform, and acquiring preset display resource data; processing the first data calculation code, the binary code file and the display resource data based on the inclusion structure rule to obtain the map data packet; controlling the installation-free platform to load the map data packet; running the map engine to draw the target map; and displaying the target map on the installation-free platform. Therefore, the map data packet can be generated through the packet body structure rule, so that the purpose of loading the first data calculation code, the binary code file and the preset display resource data to the installation-free platform is achieved, the algorithm support is provided for drawing the map, the operation time is shortened, the map drawing speed is increased, and the user experience is improved.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application, as shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, an installation-free platform 540, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for performing the following steps:
acquiring a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language;
calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
drawing the target map based on the first data calculation code and the binary file;
and displaying the target map on the installation-free platform.
It can be seen that in the embodiment of the present application, an electronic device obtains a first data calculation code and a second data calculation code for drawing a map, where the first data calculation code is written in a first language, and the second data calculation code is written in a second language; calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file; drawing the target map based on the first data calculation code and the binary file; and displaying the target map on the installation-free platform. Therefore, the second data calculation codes are converted into the binary code files to run, the code running speed is improved, the first data calculation codes and the binary code files are mutually called to realize map drawing, the code running amount is reduced, the code running time is shortened, the map drawing speed is improved, the problem of map display blockage is solved, and the user experience is improved.
In a possible example, the electronic device further comprises a map engine, the object map being drawn based on the first data computing code and the binary file, the instructions in the program being specifically configured to: generating a map data package based on the first data calculation code and the binary code file; controlling the installation-free platform to load the map data packet; and operating the map engine to draw the target map.
In a possible example, the map data package is generated based on the first data calculation code and the binary file, and the instructions in the program are specifically configured to perform the following operations: acquiring a bag body structure rule of the installation-free platform; acquiring preset display resource data; and processing the first data calculation code, the binary code file and the display resource data based on the inclusion structure rule to obtain the map data packet.
In a possible example, the control unit is configured to control the installation-free platform to load the map data package, and the instructions in the program are specifically configured to perform the following operations: controlling the installation-free platform to load the binary code file in the map data packet, and storing the binary code file to a preset memory area; calling the installation-free platform to compile and run the binary code file to obtain a compilation result, wherein the compilation result comprises: one or more algorithms, each algorithm corresponding to an algorithm name.
In one possible example, the operational mapping engine renders the target map, and the instructions in the program are specifically configured to: sending the compilation result and the first data computation code to the map engine; and running the first data codes through the map engine, and calling one or more algorithms in the compiling result through the algorithm names to execute drawing operation to obtain the target map.
In a possible example, the displaying the target map on the installation-free platform is performed by instructions in the program specifically configured to: acquiring the target map; processing the target map based on the preset display resource data to obtain an installation-free map; and displaying the installation-free map on the installation-free platform.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware 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 embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one control unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 6, fig. 6 is a block diagram of functional units of a map display apparatus 600 according to an embodiment of the present application, where the map display apparatus 600 may be applied to the electronic device shown in fig. 1, and the map display apparatus 600 includes an obtaining unit 601, a calling unit 602, a drawing unit 603, and a display unit 604, where:
an acquisition unit 601 configured to acquire a first data calculation code written in a first language and a second data calculation code written in a second language for map drawing;
a calling unit 602, configured to call a preset code tool to perform a conversion operation on the second data calculation code, so as to obtain a binary code file;
a drawing unit 603 for drawing the target map based on the first data calculation code and the binary code file;
a display unit 604, configured to display the target map on the installation-free platform.
It can be seen that in the embodiment of the present application, an electronic device obtains a first data calculation code and a second data calculation code for drawing a map, where the first data calculation code is written in a first language, and the second data calculation code is written in a second language; calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file; drawing the target map based on the first data calculation code and the binary file; and displaying the target map on the installation-free platform. Therefore, the second data calculation codes are converted into the binary code files to run, the code running speed is improved, the first data calculation codes and the binary code files are mutually called to realize map drawing, the code running amount is reduced, the code running time is shortened, the map drawing speed is improved, the problem of map display blockage is solved, and the user experience is improved.
In a possible example, the electronic device further includes a map engine, and the drawing unit 603 is specifically configured to draw the target map based on the first data calculation code and the binary code file: generating a map data package based on the first data calculation code and the binary code file; controlling the installation-free platform to load the map data packet; and operating the map engine to draw the target map.
In a possible example, the map data packet is generated based on the first data calculation code and the binary code file, and the drawing unit 603 is specifically configured to: acquiring a bag body structure rule of the installation-free platform; acquiring preset display resource data; and processing the first data calculation code, the binary code file and the display resource data based on the inclusion structure rule to obtain the map data packet.
In a possible example, the control unit is configured to control the installation-free platform to load the map data package, and the drawing unit 603 is specifically configured to: controlling the installation-free platform to load the binary code file in the map data packet, and storing the binary code file to a preset memory area; calling the installation-free platform to compile and run the binary code file to obtain a compilation result, wherein the compilation result comprises: one or more algorithms, each algorithm corresponding to an algorithm name.
In a possible example, the operation mapping engine maps the target map, and the mapping unit 603 is specifically configured to: sending the compilation result and the first data computation code to the map engine; and running the first data codes through the map engine, and calling one or more algorithms in the compiling result through the algorithm names to execute drawing operation to obtain the target map.
In a possible example, the display unit 604 is specifically configured to display the target map on the installation-free platform: acquiring the target map; processing the target map based on the preset display resource data to obtain an installation-free map; and displaying the installation-free map on the installation-free platform.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A map display method is applied to an electronic device comprising an installation-free platform, and comprises the following steps:
acquiring a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language;
calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
drawing the target map based on the first data calculation code and the binary file;
and displaying the target map on the installation-free platform.
2. The method of claim 1, wherein the electronic device further comprises a map engine, wherein said drawing a target map based on the first data computing code and the binary file comprises:
generating a map data package based on the first data calculation code and the binary code file;
controlling the installation-free platform to load the map data packet;
and operating the map engine to draw the target map.
3. The method of claim 2, wherein generating a map data package based on the first data computation code and the binary file comprises:
acquiring a bag body structure rule of the installation-free platform;
acquiring preset display resource data;
and processing the first data calculation code, the binary code file and the display resource data based on the inclusion structure rule to obtain the map data packet.
4. The method of claim 2 or 3, wherein the controlling the installation-free platform to load the map data package comprises:
controlling the installation-free platform to load the binary code file in the map data packet, and storing the binary code file to a preset memory area;
calling the installation-free platform to compile and run the binary code file to obtain a compilation result, wherein the compilation result comprises: one or more algorithms, each algorithm corresponding to an algorithm name.
5. The method of claim 2, wherein the running mapping engine renders the target map, comprising:
sending the compilation result and the first data computation code to the map engine;
and running the first data codes through the map engine, and calling one or more algorithms in the compiling result through the algorithm names to execute drawing operation to obtain the target map.
6. The method of any of claims 1-4, wherein the displaying the target map on the installation-free platform comprises:
acquiring the target map;
processing the target map based on the preset display resource data to obtain an installation-free map;
and displaying the installation-free map on the installation-free platform.
7. A map display device, which is applied to an electronic device comprising a mounting-free platform, the device comprising:
an acquisition unit configured to acquire a first data calculation code and a second data calculation code for drawing a map, wherein the first data calculation code is written in a first language, and the second data calculation code is written in a second language;
the calling unit is used for calling a preset code tool to execute conversion operation on the second data calculation code to obtain a binary code file;
a drawing unit configured to draw the target map based on the first data calculation code and the binary code file;
and the display unit is used for displaying the target map on the installation-free platform.
8. The apparatus according to claim 7, wherein the electronic device further comprises a mapping engine, and in connection with the drawing of the target map based on the first data computing code and the binary file, the drawing unit is specifically configured to:
generating a map data package based on the first data calculation code and the binary code file;
controlling the installation-free platform to load the map data packet;
and operating the map engine to draw the target map.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN202010162179.6A 2020-03-10 2020-03-10 Map display method and related products Active CN111367623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010162179.6A CN111367623B (en) 2020-03-10 2020-03-10 Map display method and related products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010162179.6A CN111367623B (en) 2020-03-10 2020-03-10 Map display method and related products

Publications (2)

Publication Number Publication Date
CN111367623A true CN111367623A (en) 2020-07-03
CN111367623B CN111367623B (en) 2023-10-03

Family

ID=71208558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010162179.6A Active CN111367623B (en) 2020-03-10 2020-03-10 Map display method and related products

Country Status (1)

Country Link
CN (1) CN111367623B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060282897A1 (en) * 2005-05-16 2006-12-14 Caleb Sima Secure web application development and execution environment
EP3413192A1 (en) * 2017-06-08 2018-12-12 HOB GmbH & Co. KG Internet-based communication system
CN110032614A (en) * 2019-04-18 2019-07-19 成都四方伟业软件股份有限公司 Map vector rendering method and device based on wasm
CN110187931A (en) * 2019-05-17 2019-08-30 北京百度网讯科技有限公司 The operation method and device of small routine
CN110533469A (en) * 2019-08-27 2019-12-03 腾讯科技(深圳)有限公司 Advertisement operation method, device, server, intelligent terminal and storage medium
CN110765381A (en) * 2019-10-10 2020-02-07 许昌许继软件技术有限公司 Web publishing method and system of distribution network main station based on WebAssembly technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060282897A1 (en) * 2005-05-16 2006-12-14 Caleb Sima Secure web application development and execution environment
EP3413192A1 (en) * 2017-06-08 2018-12-12 HOB GmbH & Co. KG Internet-based communication system
CN110032614A (en) * 2019-04-18 2019-07-19 成都四方伟业软件股份有限公司 Map vector rendering method and device based on wasm
CN110187931A (en) * 2019-05-17 2019-08-30 北京百度网讯科技有限公司 The operation method and device of small routine
CN110533469A (en) * 2019-08-27 2019-12-03 腾讯科技(深圳)有限公司 Advertisement operation method, device, server, intelligent terminal and storage medium
CN110765381A (en) * 2019-10-10 2020-02-07 许昌许继软件技术有限公司 Web publishing method and system of distribution network main station based on WebAssembly technology

Also Published As

Publication number Publication date
CN111367623B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN109388453B (en) Application page display method and device, storage medium and electronic equipment
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN108984064B (en) Split screen display method and device, storage medium and electronic equipment
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN109857403B (en) Page updating method and device, page processing method and device
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
CN106502703B (en) Function calling method and device
CN111338530B (en) Control method of application program icon and electronic equipment
CN105975190B (en) Graphical interface processing method, device and system
CN108984095A (en) gesture interaction method, device, storage medium and electronic equipment
KR20100013539A (en) User interface apparatus and method for using pattern recognition in handy terminal
CN106484283A (en) A kind of display control method and mobile terminal
CN109062468B (en) Split screen display method and device, storage medium and electronic equipment
CN109584341B (en) Method and device for drawing on drawing board
CN107908407B (en) Compiling method and device and terminal equipment
CN110475020B (en) Equipment control method and related product
CN108769234A (en) Using method for down loading, device, storage medium and electronic equipment
US11290591B2 (en) Dialing method and mobile terminal
CN111104180B (en) Application program optimization method and device, storage medium and electronic equipment
CN108536388A (en) split screen processing method, device, storage medium and electronic equipment
CN109062469B (en) Split screen display method and device, storage medium and electronic equipment
CN110837404A (en) Shortcut operation processing method and device for internal function module and storage medium
CN105335434B (en) Log management method and device and electronic equipment
CN111343321B (en) Backlight brightness adjusting method and related product

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