CN111367623B - Map display method and related products - Google Patents

Map display method and related products Download PDF

Info

Publication number
CN111367623B
CN111367623B CN202010162179.6A CN202010162179A CN111367623B CN 111367623 B CN111367623 B CN 111367623B CN 202010162179 A CN202010162179 A CN 202010162179A CN 111367623 B CN111367623 B CN 111367623B
Authority
CN
China
Prior art keywords
map
data
code
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.)
Active
Application number
CN202010162179.6A
Other languages
Chinese (zh)
Other versions
CN111367623A (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

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 code file; 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 products
Technical Field
The application relates to the technical field of electronic equipment, in particular to a map display method and related products.
Background
Along with the rapid development of technology, intelligent terminal equipment becomes electronic equipment which cannot be obtained in daily life, and functions of the intelligent terminal equipment are more and more, wherein the functions comprise mobile phone maps, and the daily life is greatly facilitated through the mobile phone maps.
The current mobile phone map is displayed in an online platform mode, a large amount of graphic processing and real-time drawing are needed to be carried out on the online map, but the efficiency of language operation supported by the current online platform is low, when intensive calculation is needed, the time consumption is long when the calculation is carried out, the display of the map is blocked, and the user experience is low.
Disclosure of Invention
The embodiment of the application provides a map display method and related products, wherein a map is drawn by calling a first data calculation code and a binary code and displayed on an installation-free platform, so that the code running amount is reduced, and the code running time is shortened, thereby improving the map drawing speed, being beneficial to solving the map display cartoon problem and improving the user experience.
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 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 code file;
displaying the target map on the installation-free platform.
In a second aspect, an embodiment of the present application provides a map display apparatus applied to an electronic device including a mounting-free platform, the apparatus including:
an acquisition unit 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 drawing a map;
the calling unit is used for calling a preset code tool to execute conversion operation on the second data computing code to obtain a binary code file;
a drawing unit for drawing 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, the programs including instructions for performing steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform part or all of the steps as described in any of the methods of the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any 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 code file; displaying the target map on the installation-free platform. Therefore, the code can be calculated through the second data and converted into the binary code file for operation, the code operation rate is improved, the first data is used for calculating the code and the binary code file to mutually call for realizing map drawing, the code operation amount is reduced, and the code operation time is shortened, so that the map drawing speed is improved, the map display katon problem is solved, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the 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 schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a map display method according to an embodiment of the present application;
FIG. 3 is a flowchart of another map display method according to an embodiment of the present application;
FIG. 4 is a flowchart of another map display method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a functional unit block diagram of a map display apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 may be included in at least one embodiment of the application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application, the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, wherein:
The electronic device 100 may include control circuitry that may include storage and processing circuitry 110. The storage and processing circuit 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., as embodiments of the application are not limited. Processing circuitry in the storage and processing circuitry 110 may be used to control the operation of the 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 installation-free platforms and mapping engines, internet browsing applications, voice over internet protocol (Voice over Internet Protocol, VOIP) telephone call applications, email applications, media playing applications, operating system functions, and the like. Such software may be used to perform some control operations, such as image acquisition based on a camera, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on status indicators such as status indicators of light emitting diodes, touch event detection based on a touch sensor, functions associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in electronic device 100, to name a few.
The electronic device 100 may include an input-output circuit 150. The input-output circuit 150 is operable to cause the electronic device 100 to effect input and output of 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 an external device. The input-output circuit 150 may further include a sensor 170. The sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, a fingerprint recognition module, a touch sensor (e.g., based on an optical touch sensor and/or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used independently as a touch sensor structure), such as an acceleration sensor and other sensors, etc.
The electronic device 100 may also include a camera 140, the camera 140 comprising: infrared camera, color image camera etc. the camera can be leading camera or rear-end camera, and fingerprint identification module can integrate in the display screen below for gather fingerprint image, fingerprint identification module can be for following at least one kind: an optical fingerprint recognition module, an ultrasonic fingerprint recognition module, or the like, is not limited herein. 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 in practical application, the front camera or the rear camera may also be a lifting structure.
The input-output circuit 150 may also include one or more displays, one of which may be disposed in front of the electronic device and another of which may be disposed behind the electronic device, such as display 130, in the case of multiple displays, such as 2 displays. The display 130 may include one or a combination of several of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. Display 130 may include an array of touch sensors (i.e., display 130 may be a touch-sensitive display). The touch sensor may be a capacitive touch sensor formed of an array of transparent touch sensor electrodes, such as Indium Tin Oxide (ITO) electrodes, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, etc., as embodiments of the application are not limited.
The communication circuitry 120 may be used to provide the electronic device 100 with the ability 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 the communication circuitry 120 may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. Wherein the communication circuit 120 may comprise a long range local area network communication module. For example, the wireless communication circuitry in the communication circuitry 120 may include circuitry for supporting near field communication (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 communication circuit 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
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, levers, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, and other status indicators, etc.
A user may control the operation of the electronic device 100 by inputting commands through the input-output circuit 150, and may use output data of the input-output circuit 150 to enable receiving status information and other outputs from the electronic device 100.
The electronic device described based on fig. 1 above is used 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 code file;
displaying the target map on the installation-free platform.
Referring to fig. 2, fig. 2 is a flow chart of a map display method according to an embodiment of the present application, which is applied to the electronic device shown in fig. 1, and the local map 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 in a first language, and the second data calculation code is written in a second language;
optionally, before acquiring the first data calculation code and the second data calculation code for mapping, the method further includes: collecting target area data, wherein the target area data can comprise: target area image data and/or target area video data, 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 computing code for drawing the map is obtained, wherein the first data computing code is written in a first language, and extraction operation is performed on the first data computing code for the target map drawing element to obtain an algorithm set corresponding to the target map drawing element, and the algorithm set may include: and sending an algorithm reconstruction instruction to a preset terminal by using the drawing line algorithm, the drawing surface algorithm and other drawing algorithms, wherein the algorithm reconstruction instruction comprises: and the algorithm set is used for indicating 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 computing code for drawing the map is obtained, where the first data computing code is written in a first language, and a pull operation is performed on the first data computing code for the target map drawing element, so as to obtain an algorithm set corresponding to the target map drawing element, where the algorithm set may include: the method comprises the steps of sending an algorithm acquisition instruction to a preset cloud server by a drawing line algorithm, a drawing surface algorithm and other drawing algorithms, wherein the algorithm acquisition instruction comprises: the algorithm acquisition instruction is used for indicating the cloud server to return a second data calculation code corresponding to the algorithm set and receiving an algorithm acquisition response returned by the cloud server, wherein the algorithm acquisition response comprises: the second data calculates a code.
Wherein the first data calculation code may include: the coordinate calculation algorithm of the plurality of building elements, the height calculation algorithm of the plurality of buildings, the distance calculation algorithm between the plurality of buildings, the road length calculation algorithm, the road shape calculation algorithm, the traffic line shape calculation algorithm, the traffic sign position calculation algorithm, the traffic sign shape calculation algorithm, and the like included in the target area data are not limited herein.
Wherein, the first language may include an transliterated script language JavaScript or the like, and the second language may include an object-oriented high-level programming language c++ or the like, which is 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, and the second data computing code is used as input of the code tool to obtain the binary code file, wherein the binary code file may include a wasm file corresponding to webassembly language through a network, and the like, which is not limited herein.
The WebAssembly is a new coding mode, can be operated in a modern Web browser, is a low-level class assembly language, has a compact binary format, can be operated close to the original performance, and provides a compiling target for languages such as C/C++ so that the languages can be operated on the Web. It is also designed to coexist 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 first data calculation code is operated through a map engine, the binary code file is called, and the target map is drawn.
Step 204, displaying the target map on the installation-free platform.
In a possible example, the electronic device further includes a map engine that calculates a code and the binary code file to draw a target map based on the first data, including: generating a map data packet 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 computing code and the binary code file, the map data packet is sent to the installation-free platform, and the map data packet is used for drawing a map.
In one possible example, the generating a map data packet based on the first data calculation code and the binary code file includes: acquiring a inclusion structure rule of the mounting-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 inclusion structure rule is used for processing data to generate a data packet conforming to the inclusion structure rule, and the inclusion structure rule corresponds to the decompression rule of the mounting-free platform, namely is used for generating the data packet conforming to 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 inclusion structure rule of the mounting-free platform; acquiring preset display resource data; obtaining basic codes of a map engine, wherein the basic codes can comprise: the base code, the first data calculation code, the binary code file, and the display resource data are processed based on the inclusion structure rule to obtain the map data packet.
In one possible example, the controlling the installation-free platform to load map data packets includes: controlling the installation-free platform to load the binary code file in the map data packet, and storing the binary code file into a preset memory area; invoking the installation-free platform to compile and run the binary code file to obtain a compiling result, wherein the compiling result comprises: one or more algorithms, each corresponding to an algorithm name.
Optionally, the decompression format corresponding to the installation-free platform is obtained, the installation-free platform is controlled to decompress the map data packet to obtain the first data calculation code, a binary code file and preset display resource data, the first data calculation code is sent to a 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 to obtain a compiling result corresponding to the binary code file, and the compiling result comprises: one or more algorithms, and an algorithm name corresponding to each algorithm, the compiling result being used to call the binary code.
In one possible example, the running map engine draws the target map, including: transmitting the compiling result and the first data calculation code to the map engine; and running the first data code through the map engine, and calling one or more algorithms in the compiling result through algorithm names to execute drawing operation to obtain the target map.
Optionally, running the first data code through the map engine, and calling one or more algorithms in the compiled result through an algorithm name to perform a drawing operation, including: and operating a map engine, and operating the first data code through the map engine to acquire an algorithm calling request returned by the map engine, wherein the algorithm calling request comprises: the algorithm name is used for requesting to call the algorithm corresponding to the algorithm name, and an algorithm call response is returned to the map engine, wherein the algorithm call response comprises the following steps: and controlling the map engine to call the algorithm to draw a map according to the algorithm information corresponding to the algorithm name. In one 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: acquiring a display icon set from the preset display resource, wherein the display icon set may include: a building icon set, a road icon set, a line segment icon set, and the like, without limitation, and performing an icon replacement operation on the target map based on the display icon set, to obtain the installation-free map.
In a specific implementation, it is assumed that the set of display icons includes a set of building icons that includes: the method comprises the steps of determining a bank position, a school position, an office building position and a resident building position contained in a target map, marking the bank position through the bank icon, marking the school position through the school icon, marking the office building position through the office building icon, marking the resident building position through the resident building icon, and storing a current map 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 code file; displaying the target map on the installation-free platform. Therefore, the code can be calculated through the second data and converted into the binary code file for operation, the code operation rate is improved, the first data is used for calculating the code and the binary code file to mutually call for realizing map drawing, the code operation amount is reduced, and the code operation time is shortened, so that the map drawing speed is improved, the map display katon problem is solved, and the user experience is improved.
Referring to fig. 3, fig. 3 is a flowchart of another map display method according to an embodiment of the present application, which is applied to the electronic device shown in fig. 1, and the local map display method includes:
step 301, acquiring a first data computing code and a second data computing code for drawing a map, wherein the first data computing code is written in a first language, and the second data computing code is written in 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;
step 304, controlling the installation-free platform to load the map data packet;
step 305, running the map engine to draw the target map;
step 306, displaying the target map on the installation-free platform.
The specific description of the steps 301 to 306 may refer to the response step of the map display method described in fig. 2, and will not be repeated herein.
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 acquired, 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 packet 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; displaying the target map on the installation-free platform. Therefore, the code operation rate can be improved by converting the second data calculation code into the binary code file, and the algorithm support is provided for the first data calculation code, so that the operation rate of the first data calculation code is improved, the operation time is shortened, the map drawing speed is improved, the map display cartoon problem is solved, and the user experience is improved.
Referring to fig. 4, fig. 4 is a flowchart of another map display method according to an embodiment of the present application, which is applied to the electronic device shown in fig. 1, and the local map display method includes:
step 401, acquiring a first data computing code and a second data computing code for drawing a map, wherein the first data computing code is written in a first language, and the second data computing code is written in 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 inclusion structure rules 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 inclusion structure rule to obtain the map data packet;
step 405, controlling the installation-free platform to load the map data packet;
step 406, running the map engine to draw the target map;
step 407, displaying the target map on the installation-free platform.
The specific description of the steps 401 to 407 may refer to the response step of the map display method described in fig. 2, and will not be repeated herein.
It can be seen that, in the embodiment of the present application, the 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; acquiring inclusion structure rules of the mounting-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; displaying the target map on the installation-free platform. Therefore, the map data packet can be generated through the inclusion 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, arithmetic support is provided for drawing a map, operation time is shortened, and therefore map drawing speed and user experience are improved.
Referring to fig. 5, in accordance with the embodiments shown in fig. 2, 3, and 4, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application, as shown in the drawings, 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 code file;
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 code file; displaying the target map on the installation-free platform. Therefore, the code can be calculated through the second data and converted into the binary code file for operation, the code operation rate is improved, the first data is used for calculating the code and the binary code file to mutually call for realizing map drawing, the code operation amount is reduced, and the code operation time is shortened, so that the map drawing speed is improved, the map display katon problem is solved, and the user experience is improved.
In a possible example, the electronic device further includes a map engine, the computing code and the binary code file drawing a target map based on the first data, and the instructions in the program are specifically configured to: generating a map data packet 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 computing code and the binary code file generate a map data packet based on the first data, and the instructions in the program are specifically configured to: acquiring a inclusion structure rule of the mounting-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 instructions in the program are specifically configured to control the installation-free platform to load a map data packet: controlling the installation-free platform to load the binary code file in the map data packet, and storing the binary code file into a preset memory area; invoking the installation-free platform to compile and run the binary code file to obtain a compiling result, wherein the compiling result comprises: one or more algorithms, each corresponding to an algorithm name.
In a possible example, the running map engine draws the target map, and the instructions in the program are specifically configured to: transmitting the compiling result and the first data calculation code to the map engine; and running the first data code through the map engine, and calling one or more algorithms in the compiling result through 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, the instructions in the program are specifically for: 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 foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will 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 implemented as hardware or computer software driven 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.
The embodiment of the application can divide the functional units of the electronic device according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one control unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Referring to fig. 6, fig. 6 is a block diagram illustrating 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 as described 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 obtaining unit 601, configured to obtain a first data calculation code and a second data calculation code for mapping, where the first data calculation code is written in a first language, and the second data calculation code is written in a second language;
a calling unit 602, configured to call a preset code tool to perform a conversion operation on the second data computing 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;
and 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 code file; displaying the target map on the installation-free platform. Therefore, the code can be calculated through the second data and converted into the binary code file for operation, the code operation rate is improved, the first data is used for calculating the code and the binary code file to mutually call for realizing map drawing, the code operation amount is reduced, and the code operation time is shortened, so that the map drawing speed is improved, the map display katon problem is solved, and the user experience is improved.
In a possible example, the electronic device further includes a map engine, the drawing unit 603 is specifically configured to draw a target map based on the first data calculation code and the binary code file: generating a map data packet 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 inclusion structure rule of the mounting-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 603 is configured to control the installation-free platform to load a map data packet, specifically: controlling the installation-free platform to load the binary code file in the map data packet, and storing the binary code file into a preset memory area; invoking the installation-free platform to compile and run the binary code file to obtain a compiling result, wherein the compiling result comprises: one or more algorithms, each corresponding to an algorithm name.
In a possible example, the running map engine is configured to map the target map, and the mapping unit 603 is specifically configured to: transmitting the compiling result and the first data calculation code to the map engine; and running the first data code through the map engine, and calling one or more algorithms in the compiling result through 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, the displaying unit 604 is 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 embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of 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 part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as 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 with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over 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.
In addition, each functional unit in the embodiments of the present application 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. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (7)

1. A map display method, applied to an electronic device including a mounting-free platform, the electronic device including a map engine, the method comprising:
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 a target map based on the first data calculation code and the binary code file, including: generating a map data packet 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;
displaying the target map on the installation-free platform;
wherein the generating the map data package based on the first data calculation code and the binary code file includes: acquiring inclusion structure rules of the installation-free platform, acquiring preset display resource data, and processing the first data calculation code, the binary code file and the preset display resource data based on the inclusion structure rules to obtain the map data packet.
2. The method of claim 1, 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 into a preset memory area;
Invoking the installation-free platform to compile and run the binary code file to obtain a compiling result, wherein the compiling result comprises: one or more algorithms, each corresponding to an algorithm name.
3. The method of claim 2, wherein the running the map engine to map the target map comprises:
transmitting the compiling result and the first data calculation code to the map engine;
and running the first data calculation code through the map engine, and calling one or more algorithms in the compiling result through algorithm names to execute drawing operation to obtain the target map.
4. The method of claim 1 or 2, 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.
5. A map display apparatus for application to an electronic device including a mounting-free platform, the electronic device including a map engine, the apparatus comprising:
An acquisition unit 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 drawing a map;
the calling unit is used for calling a preset code tool to execute conversion operation on the second data computing code to obtain a binary code file;
a drawing unit for drawing a target map based on the first data calculation code and the binary code file;
a display unit for displaying the target map on the mounting-free platform;
in the aspect of drawing the target map based on the first data calculation code and the binary code file, the drawing unit is specifically configured to generate a map data packet based on the first data calculation code and the binary code file, control the installation-free platform to load the map data packet, and operate the map engine to draw the target map;
in the aspect of generating the map data packet based on the first data calculation code and the binary code file, the drawing unit is specifically configured to obtain a inclusion structure rule of the installation-free platform, obtain preset display resource data, and process the first data calculation code, the binary code file and the preset display resource data based on the inclusion structure rule to obtain the map data packet.
6. 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-4.
7. 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 of claims 1-4.
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 CN111367623A (en) 2020-07-03
CN111367623B true 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8800042B2 (en) * 2005-05-16 2014-08-05 Hewlett-Packard Development Company, L.P. Secure web application development and execution environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111367623A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN106775637B (en) Page display method and device for application program
CN111984165B (en) Method and device for displaying message and terminal equipment
CN110795666B (en) Webpage generation method, device, terminal and storage medium
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
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
CN105975190B (en) Graphical interface processing method, device and system
CN111338530B (en) Control method of application program icon and electronic equipment
CN110796725B (en) Data rendering method, device, terminal and storage medium
CN109584341B (en) Method and device for drawing on drawing board
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
CN110475020B (en) Equipment control method and related product
US11290591B2 (en) Dialing method and mobile terminal
CN109062468A (en) Multi-screen display method, device, storage medium and electronic equipment
CN110049187B (en) Display method and terminal equipment
CN109165033B (en) Application updating method and mobile terminal
CN109408072B (en) Application program deleting method and terminal equipment
CN110888705A (en) Method for processing unread message corner mark and electronic equipment
CN110990032B (en) Application program installation method and electronic equipment
CN105095259B (en) Waterfall flow object display method and device
CN110837404A (en) Shortcut operation processing method and device for internal function module and storage medium
CN109062469B (en) Split screen display method and device, storage medium and electronic equipment
CN109032547A (en) split screen processing method, device, storage medium 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