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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


