Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for instantly drawing leaflet electronic map arrows and application

An electronic map and arrow technology, which is applied in the field of arrow drawing, can solve problems such as no method for creating arrows, inability to satisfy the diversity of plotting scenes, complex arrow drawing, inability to use leaflet, etc., to achieve the purpose and advantages of concise and easy-to-understand effect

Pending Publication Date: 2022-04-01
CITY CLOUD TECH HANGZHOU CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current map engines, including but not limited to leaflet, only have APIs for creating surfaces, and there is no method for creating specific arrows.
[0003] In order to solve the problem of drawing arrows, the developer has developed a plug-in for drawing arrows. Currently, the drawing plug-in for the leaflet map engine can only draw simple arrows, and cannot meet the needs of drawing complex arrows that are involved in the plotting scene; and realize the arrow The plotting plug-ins for diversity drawing are strongly coupled with the corresponding map engine and cannot be applied to leaflet
In other words, there is currently no way to draw diversity arrows on leaflet

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for instantly drawing leaflet electronic map arrows and application
  • Method and device for instantly drawing leaflet electronic map arrows and application
  • Method and device for instantly drawing leaflet electronic map arrows and application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] The purpose of this application is to propose a method for real-time drawing of four types of arrows, single arrow, right-angled arrow, swallowtail arrow, and double arrow, on an electronic map. It does not need to configure complicated plotting plug-ins to achieve multiple plots in different scenarios. Style for drawing arrows.

[0028] Specifically, this solution provides a method for real-time drawing of leaflet electronic map arrows on a leaflet electronic map. Leaflet is a modern, open-source JavaScript library developed for building mobile-friendly interactive maps. A single arrow is a polyline object , Create a single arrow through the Polyline function of leaflet, and the other three kinds of arrows are polygon objects, and create arrows such as right-angle arrows, swallowtail arrows, and double arrows through the Polygon function of leaflet.

[0029] The embodiment of the present application provides a method for instant drawing of leaflet electronic map arrows...

Embodiment 2

[0061] Based on the same idea, refer to Figure 5 , this application also proposes a device for instant drawing of leaflet electronic map arrows, including:

[0062] The drawing mode selection module is used to select an arrow drawing mode, wherein the arrow drawing mode includes but not limited to a right angle arrow drawing mode, a single arrow drawing mode, a double arrow drawing mode and a dovetail arrow drawing mode;

[0063] The monitoring module is used to monitor and obtain the coordinate points at the bottom of the two arrow bodies and the end point at the top of the arrow;

[0064]The arrow coordinate set calculation module is used to process the bottom coordinate point of the arrow body and the top end point of the arrow based on the arrow calculation rule corresponding to the arrow drawing mode through the Create.TailedArrow function of leaflet, and obtain the arrow body coordinate set and the arrow head collection of departmental coordinates;

[0065] The drawin...

Embodiment 3

[0068] This embodiment also provides an electronic device, refer to Figure 6 , including a memory 404 and a processor 402, the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any one of the above-mentioned method embodiments for drawing arrows on a leaflet electronic map in real time.

[0069] Specifically, the above-mentioned processor 402 may include a central processing unit (CPU), or an Application Specific Integrated Circuit (ASIC for short), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0070] Wherein, the memory 404 may include a mass memory 404 for data or instructions. For example without limitation, the memory 404 may include a hard disk drive (HardDiskDrive, referred to as HDD), a floppy disk drive, a solid state drive (SolidStateDrive, referred to as SSD), flash memory, optical disk, magneto-optical disk, magnetic tape ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for instantly drawing a leaflet electronic map arrow. The invention discloses a device and application, and the method comprises the steps: selecting an arrow drawing mode which comprises but is not limited to a right-angle arrow drawing mode, a single-arrow drawing mode, a double-arrow drawing mode and a dovetail arrow drawing mode; monitoring to obtain two arrow body bottom coordinate points and an arrow top end point; processing the arrow body bottom coordinate point and the arrow top end point based on an arrow calculation rule corresponding to the arrow drawing mode, and obtaining an arrow body coordinate set and an arrow head coordinate set; and fitting the arrow body coordinate set and the arrow coordinate set to obtain a drawn arrow, so that the aim of instantly drawing various arrows on the electronic map can be fulfilled.

Description

technical field [0001] The present application relates to the field of arrow drawing, in particular to a method, device and application for instant drawing of leaflet electronic map arrows. Background technique [0002] Computer software such as drawing software and office software often need to use arrow symbols to play an indicating role. In particular, it is often necessary to draw arrows on electronic maps to show the direction of path movement or indicate the orientation. In addition, different styles of arrows need to be drawn in different scenarios, and the styles of arrows include but are not limited to single arrows, right-angled arrows, dovetail arrows, and double arrows. However, the current map engines, including but not limited to leaflet, only have an API for creating surfaces, and there is no method for creating specific arrows. [0003] In order to solve the problem of drawing arrows, the developer has developed a plug-in for drawing arrows. Currently, the d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T11/20G06F3/04845G06F3/0487
Inventor 陈斌梁盛麟黄笑
Owner CITY CLOUD TECH HANGZHOU CO LTD