CN111324826B - Map viewpoint dynamic method and device based on Mapbox in user following mode - Google Patents

Map viewpoint dynamic method and device based on Mapbox in user following mode Download PDF

Info

Publication number
CN111324826B
CN111324826B CN202010078366.6A CN202010078366A CN111324826B CN 111324826 B CN111324826 B CN 111324826B CN 202010078366 A CN202010078366 A CN 202010078366A CN 111324826 B CN111324826 B CN 111324826B
Authority
CN
China
Prior art keywords
user
following
map
mapbox
road section
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
CN202010078366.6A
Other languages
Chinese (zh)
Other versions
CN111324826A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010078366.6A priority Critical patent/CN111324826B/en
Publication of CN111324826A publication Critical patent/CN111324826A/en
Application granted granted Critical
Publication of CN111324826B publication Critical patent/CN111324826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Computational Linguistics (AREA)
  • Instructional Devices (AREA)
  • Navigation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a map viewpoint dynamic method and device, computer equipment and medium in a user following mode based on Mapbox, wherein the method comprises the following steps: acquiring a GPS user equipment list and selecting a following target; when the following user is monitored to have position update, analyzing the released user position change event parameters, and acquiring the latest position coordinates of the following user; calculating the relevant parameters of the road section formed by the two points according to the last coordinate position of the following user and the current latest coordinate position, and uniformly dividing the relevant parameters to obtain a sub road section set; traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element; and calling a viewpoint switching API provided by a mapbox on the condition that the constructed map viewpoint switching parameter object is used, and switching the map to a proper viewing angle for display in a gentle animation mode. The invention can realize automatic visual command and dispatch, has simple and convenient operation and high operation efficiency, and is convenient for users to use.

Description

Map viewpoint dynamic method and device based on Mapbox in user following mode
Technical Field
The present invention relates to the field of map data processing technologies, and in particular, to a map viewpoint dynamic method and apparatus, a computer device, and a readable storage medium in a user following mode based on Mapbox.
Background
The map box is a global map platform facing a developer, is used as a high-efficiency map of a development source, covers a plurality of aspects related to the map, can realize a large number of GIS applications, can customize data and a server, and supports various personalized customization services.
In the prior art, when a monitoring management system based on the combination of a Mapbox map and a command scheduling system is used for daily command scheduling, a commander needs to know the real-time dynamic information of a certain GPS user (an outgoing dispatcher equipped with GPS real-time positioning equipment), the GPS user is often required to be searched by manually moving the map on a map interface, and the map is dragged along with movement, so that the GPS user is placed in a better visual range. The whole process needs manual operation, once the number of GPS users reaches a certain level, the operation steps are complicated, the efficiency is extremely low, and the use of users is inconvenient.
Accordingly, the prior art is in need of improvement.
Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides a map viewpoint dynamic switching method and device based on a Mapbox user following mode, computer equipment and a readable storage medium.
The technical scheme of the invention is as follows:
a map viewpoint dynamic method in a user following mode based on Mapbox, wherein the method comprises:
acquiring a GPS user equipment list, selecting a following target, and monitoring the position update of the following user;
judging whether the following user has position update or not;
when the following user is monitored to have position update, analyzing the released user position change event parameters, and acquiring the latest position coordinates of the following user;
calculating the relevant parameters of the road section formed by the two points according to the last coordinate position of the following user and the current latest coordinate position, and uniformly dividing the relevant parameters to obtain a sub road section set;
traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element;
and calling a viewpoint switching API provided by a mapbox on the condition that the constructed map viewpoint switching parameter object is used, and switching the map to a proper viewing angle for display in a gentle animation mode.
The map viewpoint dynamic method under the Mapbox-based user following mode, wherein the steps of acquiring a GPS user equipment list, selecting a following target and monitoring the following user position update comprise the following steps:
acquiring all GPS user lists;
one person is selected as a following user, monitoring of whether the following user has position update or not is started, the following user has position change, a scheduling system issues a following user position change event, and monitoring of the event is responded.
The map viewpoint dynamic method under the user following mode based on Mapbox, wherein the step of judging whether the following user has a position update or not further comprises the following steps of:
and if the following user is not monitored to have the position update, not performing any map operation, and continuing to monitor until the following user is monitored.
The map viewpoint dynamic method under the user following mode based on the Mapbox, wherein when the following user is monitored to have position update, analyzing the issued user position change event parameters, and acquiring the latest position coordinates of the following user comprises the following steps of:
when the following user is monitored to have position update, analyzing the released user position change event parameters, and obtaining the latest coordinate longitude and latitude of the following user through object analysis so as to obtain the latest position coordinate of the following user.
The map viewpoint dynamic method under the user following mode based on the Mapbox, wherein the step of calculating the relevant parameters of the road section formed by the two points according to the last coordinate position and the current latest coordinate position of the following user to obtain the sub road section set after being uniformly divided comprises the following steps:
according to the last coordinate position of the following user and the current latest coordinate position;
calculating relevant parameters of the road section formed by the two points comprises the following steps: the direction and the distance of the road section and the sub road section obtained by uniformly dividing the road section after setting the unit moving distance;
and calculating the total number of the sub-road segments after segmentation as a corresponding coordinate point set.
The map viewpoint dynamic method under the user following mode based on Mapbox, wherein elements in the sub road section set obtained after the traversing processing is evenly divided: the step of constructing a map viewpoint switching parameter object according to the element includes:
traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element, including: center point, map level, azimuth, tilt angle, and animation transition mode.
The map viewpoint dynamic method under the user following mode based on the Mapbox, wherein the step of calling a viewpoint switching API provided by the Mapbox and switching the map to a proper view angle display in a gentle animation mode under the condition of the constructed map viewpoint switching parameter object, further comprises the following steps:
judging whether the elements in the sub-road segment set after the segmentation are processed, if so, finishing the processing, and waiting for the next monitoring response.
Map viewpoint dynamic device in user following mode based on Mapbox, wherein the device comprises:
the acquisition module is used for acquiring a GPS user equipment list, selecting a following target and monitoring the position update of the following user;
the judging module is used for judging whether the following user has position update or not;
the monitoring module is used for analyzing the released user position change event parameters when the following user is monitored to have position update, and acquiring the latest position coordinates of the following user;
the calculation module is used for calculating the relevant parameters of the road section formed by the two points according to the last coordinate position of the following user and the current latest coordinate position, and uniformly dividing the relevant parameters to obtain a sub road section set;
the traversing and switching module is used for traversing elements in the sub-road section set obtained after the uniform segmentation: constructing a map viewpoint switching parameter object according to the element;
and the construction display module is used for calling the viewpoint switching API provided by the mapbox under the condition of the constructed map viewpoint switching parameter object and switching the map to the proper view angle for display in a gentle animation mode.
A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the map viewpoint dynamic method in Mapbox-based user following mode of any one of the claims.
A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the map viewpoint dynamic method in Mapbox-based user following mode of any of the claims.
Compared with the prior art, the embodiment of the invention has the following advantages:
the invention provides a map viewpoint dynamic method and device, computer equipment and readable storage medium based on Mapbox in a user following mode, which can better conduct automatic visual command and dispatch, control important GPS equipment or user information on an electronic sand table (GIS visual dispatch system) in real time, aim at following the user, automatically monitor and adjust map access points in real time, and provide convenience for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
Fig. 1 is a flow chart of a map viewpoint dynamic method in a user following mode based on Mapbox according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a map viewpoint dynamic method selection following target structure in a Mapbox-based user following mode according to an embodiment of the present invention.
Fig. 3 is a functional block diagram of a map viewpoint dynamic device in a user following mode based on Mapbox in an embodiment of the present invention.
Fig. 4 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The inventor finds that in the prior art, when a monitoring management system based on the combination of a Mapbox map and a command scheduling system in the prior art needs to know real-time dynamic information of a certain GPS user (an outgoing dispatcher equipped with GPS real-time positioning equipment) in daily command scheduling, the GPS user needs to be manually moved on a map interface to find the GPS user, and the map is dragged along with movement, so that the GPS user is placed in a better visual range. The whole process needs manual operation, and once the number of GPS users reaches a certain level, the operation steps are complicated, the efficiency is extremely low, and the use of users is inconvenient.
In order to better perform automatic visual command and dispatch, important GPS equipment or user information is controlled in real time on an electronic sand table (GIS visual dispatch system), and the above problem of map access point adjustment is automatically monitored in real time with the aim of following users, in the embodiment of the present invention, various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 shows a map viewpoint dynamic method in a user following mode based on Mapbox according to an embodiment of the present invention, the method includes the following steps:
step S1, acquiring a GPS user equipment list, selecting a following target, and monitoring the position update of the following user;
for example: acquiring a list of all GPS users, 8 people total, selecting one of them (such as Wu Binxue) as a following user, and starting to monitor whether the following user has a location update or not, as shown in fig. 2: the following user position is changed, the scheduling system can issue an event following the user position change, and the event is monitored and subscribed to, so that the scheduling system can respond.
The benefit of this is: the following targets can be replaced at any time, real-time dynamics can be better monitored for a specific user each time, and the map view point can be conveniently adjusted subsequently.
And S2, judging whether the following user has position updating or not, if so, entering into a step S3, otherwise, continuing to monitor without any map operation until the following user has position updating.
The invention monitors the position update of the following user, can effectively grasp the real-time dynamic state of the following user through the event publishing and subscribing mechanism, and can avoid invalid adjustment of the map when the following user is kept motionless.
S3, when the following user is monitored to have position update, analyzing the released user position change event parameters, and acquiring the latest position coordinates of the following user;
in the invention, when the following user is monitored to have position update, the released user position change event parameters are analyzed, for example: the change event parameters are:
{
id:’4002001’,
name, 'Wu Binxue',
coordinate:[114.362415,22.454154],
typeId:’2001’,
number:13345678452,
...
},
and obtaining the latest coordinate longitude and latitude of the following user through object analysis [113.996254,22.535164 ].
Benefits are: and providing a basis for data aspect for the subsequent map viewpoint switching.
Step S4, calculating a sub-road section set obtained by uniformly dividing relevant parameters of a road section formed by the two points according to the last coordinate position and the current latest coordinate position of the following user, wherein the step comprises the following steps: the direction and the distance of the road sections and the sub road section set obtained by uniformly dividing the road sections after setting the unit moving distance;
for example: the last coordinate position of the following user is: [113.993966,22.527961]; the following user current position is: [113.996254,22.535164];
the distance between two points is a plurality of meters, the direction and the north Fang Gajiao are 16.35 degrees, road sections are evenly divided according to 20 points per kilometer, the total number of the divided sub road sections is 418 and a corresponding coordinate point set is calculated, namely an array set formed by the longitude and latitude of 418 coordinate points, [ [113.993966,22.527961], [113.99397148192286,22.52797825893056], [113.99397696384706,22.527995517860933], [113.99398244577266,22.528012776791112] ];
the method has the advantages that: the direction of the road segment is calculated, the road segment is evenly cut into a plurality of sub-road segments, the amplitude is smaller when the map view point is switched, and the moving animation is smooth and not hard (the larger the number of the divided segment is, the smoother the animation is).
Step S5, traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element, including: center point, map level, azimuth angle, tilt angle, and animation transition mode;
for example: processing the first element, coordinate 113.993966,22.527961, the viewpoint switching parameter object can be constructed as:
Figure BDA0002379288550000071
the method has the advantages that: the map viewpoint switching parameters are built according to the latest coordinates cut by the following user, so that the map viewpoint can move along with the movement of the following user, and the map viewpoint is used as a viewpoint center, so that the map is transited and switched in a gentle mode while real-time monitoring and grasping of real-time dynamics can be realized, and the visual experience effect is better.
And S6, calling a viewpoint switching API provided by the mapbox under the condition of the constructed map viewpoint switching parameter object, (supporting a custom animation switching mode), and switching the map to a proper view angle in a gentle animation mode.
The method has the advantages that: and the animation does not need to be designed, the cut road section data is traversed and processed, the map viewpoint switching API provided by the map is circularly called, and a coherent and smooth animation is formed, so that the visual experience is good.
In the present invention, a further embodiment of the method further includes the steps of:
and judging whether the elements in the sub-road segment set after the segmentation are processed or not, if not, returning to the step S5 to repeat the processing, and if so, finishing the processing, and waiting for the next monitoring response.
The method has the following advantages: and the GPS user or equipment is dynamically monitored continuously in response to the change of the following user position, so that the operability and instantaneity of dispatching command can be improved.
From the above, the map viewpoint dynamic switching method based on the Mapbox user following mode is provided, and the method can realize automatic visual command and dispatch, is simple and convenient to operate, has high operation efficiency and is convenient for users to use.
In one embodiment, the present invention provides a map viewpoint dynamic device in a user following mode based on Mapbox, as shown in fig. 3, the device includes:
an acquisition module 41, configured to acquire a GPS user device list, select a following target, and monitor a following user location update;
a determining module 42, configured to determine whether a following user has a location update;
the monitoring module 43 is configured to, when it is monitored that the following user has a location update, parse the published user location change event parameter, and obtain the latest location coordinate of the following user;
the calculating module 44 is configured to calculate, according to a last coordinate position and a current latest coordinate position of the following user, a sub-road section set obtained by uniformly dividing relevant parameters of a road section formed by the two points;
the traversing and switching module 45 is configured to traverse elements in the sub-road segment set obtained after the uniform segmentation: constructing a map viewpoint switching parameter object according to the element;
the construction display module 46 is configured to call a viewpoint switching API provided by the mapbox, and switch the map to a suitable viewing angle for display in a gentle animation manner, on the condition that the constructed map viewpoint switching parameter object is; as described in detail above.
In one embodiment, the present invention provides a computer device, which may be a terminal, with an internal structure as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of generating a natural language model. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the block diagram of fig. 4 is merely a partial structure related to the present application and does not constitute a limitation of the computer device to which the present application is applied, and that a specific computer device may include more or less components than those shown in the drawings, or may combine some components, or have a different arrangement of components.
The embodiment of the invention provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
acquiring a GPS user equipment list, selecting a following target, and monitoring the position update of the following user;
judging whether the following user has position update or not;
when the following user is monitored to have position update, analyzing the released user position change event parameters, and acquiring the latest position coordinates of the following user;
calculating the relevant parameters of the road section formed by the two points according to the last coordinate position of the following user and the current latest coordinate position, and uniformly dividing the relevant parameters to obtain a sub road section set;
traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element;
and calling a viewpoint switching API provided by a mapbox on the condition that the constructed map viewpoint switching parameter object is used, and switching the map to a proper viewing angle for display in a gentle animation mode.
The step of acquiring the GPS user equipment list, selecting a following target and monitoring the updating of the following user position comprises the following steps of:
acquiring all GPS user lists;
one person is selected as a following user, monitoring of whether the following user has position update or not is started, the following user has position change, a scheduling system issues a following user position change event, and monitoring of the event is responded.
Wherein the step of determining whether the following user has a location update is monitored further comprises:
and if the following user is not monitored to have the position update, not performing any map operation, and continuing to monitor until the following user is monitored.
The map viewpoint dynamic method under the user following mode based on the Mapbox, wherein when the following user is monitored to have position update, analyzing the issued user position change event parameters, and acquiring the latest position coordinates of the following user comprises the following steps of:
when the following user is monitored to have position update, analyzing the released user position change event parameters, and obtaining the latest coordinate longitude and latitude of the following user through object analysis so as to obtain the latest position coordinate of the following user.
The step of calculating the sub-road section set after the relevant parameters of the road section formed by the two points are evenly divided according to the last coordinate position of the following user and the current latest coordinate position comprises the following steps:
according to the last coordinate position of the following user and the current latest coordinate position;
calculating relevant parameters of the road section formed by the two points comprises the following steps: the direction and the distance of the road section and the sub road section obtained by uniformly dividing the road section after setting the unit moving distance;
and calculating the total number of the sub-road segments after segmentation as a corresponding coordinate point set.
Wherein, elements in the sub-road section set obtained after the traversing processing is evenly divided: the step of constructing a map viewpoint switching parameter object according to the element includes:
traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element, including: center point, map level, azimuth, tilt angle, and animation transition mode.
The step of calling the viewpoint switching API provided by the mapbox to switch the map to the proper view angle display in a gentle animation mode, wherein the step of calling the viewpoint switching API provided by the mapbox on the condition of the constructed map viewpoint switching parameter object, further comprises:
judging whether the elements in the sub-road segment set after the segmentation are processed, if so, finishing the processing, and waiting for the next monitoring response; as described in detail above.
In summary, compared with the prior art, the embodiment of the invention has the following advantages:
the invention provides a map viewpoint dynamic method and device, computer equipment and readable storage medium based on Mapbox in a user following mode, which can better conduct automatic visual command and dispatch, control important GPS equipment or user information on an electronic sand table (GIS visual dispatch system) in real time, aim at following the user, automatically monitor and adjust map access points in real time, and provide convenience for the user.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A map viewpoint dynamic method in a user following mode based on Mapbox, the method comprising:
acquiring a GPS user equipment list, selecting a following target, and monitoring the position update of the following user;
judging whether the following user has position update or not;
when the following user is monitored to have position update, analyzing the released user position change event parameters, and acquiring the latest position coordinates of the following user;
calculating the relevant parameters of the road section formed by the two points according to the last coordinate position of the following user and the current latest coordinate position, and uniformly dividing the relevant parameters to obtain a sub road section set;
traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element;
and calling a viewpoint switching API provided by a mapbox on the condition that the constructed map viewpoint switching parameter object is used, and switching the map to a proper viewing angle for display in a gentle animation mode.
2. The map viewpoint dynamic method in Mapbox-based user following mode according to claim 1, wherein the steps of acquiring a GPS user equipment list, selecting a following target, and listening for a following user location update include:
acquiring all GPS user lists;
one person is selected as a following user, monitoring of whether the following user has position update or not is started, the following user has position change, a scheduling system issues a following user position change event, and monitoring of the event is responded.
3. The map viewpoint dynamic method in Mapbox-based user follow mode of claim 1, wherein the step of determining whether a follow-up user has a location update is monitored further comprises:
and if the following user is not monitored to have the position update, not performing any map operation, and continuing to monitor until the following user is monitored.
4. The map viewpoint dynamic method in user following mode based on Mapbox according to claim 1, wherein when it is monitored that the following user has a location update, the step of parsing the published user location change event parameters and obtaining the latest location coordinates of the following user includes:
when the following user is monitored to have position update, analyzing the released user position change event parameters, and obtaining the latest coordinate longitude and latitude of the following user through object analysis so as to obtain the latest position coordinate of the following user.
5. The map viewpoint dynamic method in user following mode based on Mapbox according to claim 1, wherein the step of calculating the sub-road segment set after uniformly dividing the relevant parameters of the road segment formed by the last coordinate position and the current latest coordinate position of the following user comprises:
according to the last coordinate position of the following user and the current latest coordinate position;
calculating relevant parameters of the road section formed by the two points comprises the following steps: the direction and the distance of the road section and the sub road section obtained by uniformly dividing the road section after setting the unit moving distance;
and calculating the total number of the sub-road segments after segmentation as a corresponding coordinate point set.
6. The map viewpoint dynamic method in the Mapbox-based user following mode according to claim 1, wherein the traversing process uniformly segments elements in the sub-road segment set: the step of constructing a map viewpoint switching parameter object according to the element includes:
traversing elements in the sub-road section set obtained after uniform segmentation: constructing a map viewpoint switching parameter object according to the element, including: center point, map level, azimuth, tilt angle, and animation transition mode.
7. The map viewpoint dynamic method in user following mode based on Mapbox according to claim 1, wherein the step of calling a viewpoint switching API provided by Mapbox to switch the map to a suitable viewing angle for display in a gentle animation manner further comprises:
judging whether the elements in the sub-road segment set after the segmentation are processed, if so, finishing the processing, and waiting for the next monitoring response.
8. Map viewpoint dynamic device in user following mode based on Mapbox, characterized in that it comprises:
the acquisition module is used for acquiring a GPS user equipment list, selecting a following target and monitoring the position update of the following user;
the judging module is used for judging whether the following user has position update or not;
the monitoring module is used for analyzing the released user position change event parameters when the following user is monitored to have position update, and acquiring the latest position coordinates of the following user;
the calculation module is used for calculating the relevant parameters of the road section formed by the two points according to the last coordinate position of the following user and the current latest coordinate position, and uniformly dividing the relevant parameters to obtain a sub road section set;
the traversing and switching module is used for traversing elements in the sub-road section set obtained after the uniform segmentation: constructing a map viewpoint switching parameter object according to the element;
and the construction display module is used for calling the viewpoint switching API provided by the mapbox under the condition of the constructed map viewpoint switching parameter object and switching the map to the proper view angle for display in a gentle animation mode.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the map viewpoint dynamic method in Mapbox-based user following mode of any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the steps of the Mapbox-based user-following-mode map view dynamic method of any one of claims 1 to 7.
CN202010078366.6A 2020-02-03 2020-02-03 Map viewpoint dynamic method and device based on Mapbox in user following mode Active CN111324826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010078366.6A CN111324826B (en) 2020-02-03 2020-02-03 Map viewpoint dynamic method and device based on Mapbox in user following mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010078366.6A CN111324826B (en) 2020-02-03 2020-02-03 Map viewpoint dynamic method and device based on Mapbox in user following mode

Publications (2)

Publication Number Publication Date
CN111324826A CN111324826A (en) 2020-06-23
CN111324826B true CN111324826B (en) 2023-05-30

Family

ID=71167061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010078366.6A Active CN111324826B (en) 2020-02-03 2020-02-03 Map viewpoint dynamic method and device based on Mapbox in user following mode

Country Status (1)

Country Link
CN (1) CN111324826B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860834B (en) * 2021-02-05 2024-09-13 深圳力维智联技术有限公司 WEBGIS-based third party map docking device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102636172A (en) * 2012-05-04 2012-08-15 深圳市凯立德科技股份有限公司 Electronic map dynamic view angle adjusting method and terminal
CN102708754A (en) * 2012-05-04 2012-10-03 深圳市凯立德科技股份有限公司 Dynamic electronic map displaying method and terminal
CN109743535A (en) * 2018-11-26 2019-05-10 厦门市美亚柏科信息股份有限公司 A kind of method, apparatus and storage medium for realizing that monitoring device follows automatically based on real time GPS position
CN110717003A (en) * 2019-09-27 2020-01-21 四川长虹电器股份有限公司 Intelligent shopping cart autonomous navigation and automatic following method based on path planning

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2996088B1 (en) * 2014-09-10 2018-08-29 My Virtual Reality Software AS Method for visualising surface data together with panorama image data of the same surrounding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102636172A (en) * 2012-05-04 2012-08-15 深圳市凯立德科技股份有限公司 Electronic map dynamic view angle adjusting method and terminal
CN102708754A (en) * 2012-05-04 2012-10-03 深圳市凯立德科技股份有限公司 Dynamic electronic map displaying method and terminal
CN109743535A (en) * 2018-11-26 2019-05-10 厦门市美亚柏科信息股份有限公司 A kind of method, apparatus and storage medium for realizing that monitoring device follows automatically based on real time GPS position
CN110717003A (en) * 2019-09-27 2020-01-21 四川长虹电器股份有限公司 Intelligent shopping cart autonomous navigation and automatic following method based on path planning

Also Published As

Publication number Publication date
CN111324826A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
CN109215486B (en) Electronic map marking and displaying method and device, terminal equipment and storage medium
US9507750B2 (en) Dynamic search partitioning
CN109831532B (en) Data sharing method, device, equipment and medium
US20150185990A1 (en) Personalized viewports for interactive digital maps
CA3006903C (en) Location based information service application
JP2017130920A (en) Method for recommending position of photography, computer program and system for recommending position of photography
CN112069285A (en) Map generation method and device based on three-dimensional high-precision map slice and electronic equipment
US9026489B2 (en) Updating a conference invitation responsive to user location
CN107430631A (en) From position, report determines semantic place name
CN111324826B (en) Map viewpoint dynamic method and device based on Mapbox in user following mode
CN112818259A (en) Content recommendation method, electronic device and computer-readable storage medium
CN111135558A (en) Game synchronization method, game client, computer storage medium and electronic device
CN116680493B (en) Route map data pre-caching method, storage medium and electronic equipment
CN112966592A (en) Hand key point detection method, device, equipment and medium
CN110134884B (en) Control method and device for displaying navigation information
CN111949186B (en) Method and device for assisting in finding target object in cluster and electronic equipment
CN115170714A (en) Scanned image rendering method and device, electronic equipment and storage medium
CN114625983A (en) House resource information display method and device, electronic equipment and readable storage medium
KR101662214B1 (en) Method of providing map service, method of controlling display, and computer program for processing thereof
CN111694035A (en) Differential positioning method, device, terminal and storage medium
CN106464735A (en) Implementation of third party services in a digital service platform
CN112416189A (en) Cross-page focus searching method and device and electronic equipment
CN106131638B (en) Information display method and equipment
JP2006350673A (en) Optimization calculation system
KR102347500B1 (en) Method and apparatus for providing street view

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