CN109036096A - A kind of map is slotting along the line to put a control method and device - Google Patents

A kind of map is slotting along the line to put a control method and device Download PDF

Info

Publication number
CN109036096A
CN109036096A CN201710427255.XA CN201710427255A CN109036096A CN 109036096 A CN109036096 A CN 109036096A CN 201710427255 A CN201710427255 A CN 201710427255A CN 109036096 A CN109036096 A CN 109036096A
Authority
CN
China
Prior art keywords
target
insertion point
point
line
map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710427255.XA
Other languages
Chinese (zh)
Other versions
CN109036096B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710427255.XA priority Critical patent/CN109036096B/en
Publication of CN109036096A publication Critical patent/CN109036096A/en
Application granted granted Critical
Publication of CN109036096B publication Critical patent/CN109036096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods

Abstract

The present invention, which provides, inserts a point control method and device along a kind of map, this method comprises: loaded and displayed map, obtains the current target proportion ruler of map;Target insertion line target insertion point to be shown is determined according to the corresponding relationship of the insertion point of target proportion ruler and target insertion line;Corresponding relationship includes: the point on the basis of a default insertion point, it screens according to the corresponding bolting house of each scale bar every presetting insertion point to other, determine that the corresponding insertion point of each scale bar, the default insertion point are inserted into the insertion point of line for the target under the maximum ratio ruler of map;Corresponding virtual objects are inserted into based on the target insertion point.Due to target insertion point to be shown under the scale bar different as other of screening insertion point in the default insertion point that is shown under maximum ratio ruler, therefore only need to calculate the position of insertion point under maximum ratio ruler in embodiments of the present invention, it can determine the position of insertion point under all proportions ruler, to insert the position calculation amount of point along reducing.

Description

A kind of map is slotting along the line to put a control method and device
Technical field
The present invention relates to point control method and device are inserted along field of communication technology more particularly to a kind of map.
Background technique
In electronic map, especially map or it is based on LBS (Location Based Services, positioning service) Application in have the demand that more and more objects are arranged along route, such as close a road to traffic Marker (label), roadside little tree, telephone booth and Car etc..Common practice is: being calculated according to the size of the length of route and the scale bar of current display map in each ratio The position of point is inserted along under example ruler, is then inserted into corresponding virtual objects in the position for inserting point along the line.Due in each ratio It is required to insert the position of point along calculating under ruler, so that calculation amount is larger.
Summary of the invention
The embodiment of the present invention provides and inserts a point control method and device along a kind of map, in terms of the position that point is inserted along solving Larger problem is measured in calculation.
In a first aspect, the embodiment of the invention provides insert point control method along a kind of map, comprising:
Loaded and displayed map obtains the current target proportion ruler of map;
Determine that target insertion line is to be shown according to the corresponding relationship of the target proportion ruler and the insertion point of target insertion line Target insertion point;The corresponding relationship includes: the point on the basis of a default insertion point, according to the corresponding screening of each scale bar Interval is preset insertion point to other and is screened, and determines that the corresponding insertion point of each scale bar, the default insertion point are map Maximum ratio ruler under target insertion line insertion point;
Corresponding virtual objects are inserted into based on the target insertion point.
Second aspect, the embodiment of the invention also provides point control device is inserted along a kind of map, comprising:
Module is obtained, loaded and displayed map is used for, obtains the current target proportion ruler of map;
Target insertion point determining module, for the corresponding pass according to the target proportion ruler and the insertion point of target insertion line It is the target insertion point for determining that target insertion line is to be shown;The corresponding relationship includes: the point on the basis of a default insertion point, is pressed It screens according to the corresponding bolting house of each scale bar every presetting insertion point to other, determines the corresponding insertion of each scale bar Point, the default insertion point are inserted into the insertion point of line for the target under the maximum ratio ruler of map;
Object is inserted into module, for being inserted into corresponding virtual objects based on the target insertion point.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, comprising:
One or more processors;
Memory;And
One or more programs, wherein one or more of programs are stored in the memory, and are configured It is executed at by one or more of processors, which is characterized in that described program, which is performed, realizes slotting point along above-mentioned map Step in control method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, which is characterized in that the computer program is realized when being executed by processor to be inserted along above-mentioned map in point control method Step.
In this way, in embodiments of the present invention, loaded and displayed map obtains the current target proportion ruler of map;According to described The corresponding relationship of the insertion point of target proportion ruler and target insertion line determines target insertion line target insertion point to be shown;It is described Corresponding relationship includes: the point on the basis of a default insertion point, according to the corresponding bolting house of each scale bar every default slotting to other Access point is screened, and determines that the corresponding insertion point of each scale bar, the default insertion point are institute under the maximum ratio ruler of map State the insertion point of target insertion line;Corresponding virtual objects are inserted into based on the target insertion point.Due under maximum ratio ruler Target insertion point to be shown under the scale bar different as other of screening insertion point in the default insertion point of display, therefore at this The position for only needing to calculate insertion point under maximum ratio ruler in inventive embodiments, that is, can determine the position of insertion point under all proportions ruler It sets, to insert the position calculation amount of point along reducing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart that the map that one embodiment of the invention provides inserts point control method along the line;
Fig. 2 is to insert partial target in point control method along the map of one embodiment of the invention offer to be inserted into line in high specific The distribution figure of insertion point under example ruler;
Fig. 3 is to insert partial target in point control method along the map of one embodiment of the invention offer to be inserted into line in high specific The distribution figure of insertion point under the next stage scale bar of example ruler;
Fig. 4 is the flow chart that the map that further embodiment of this invention provides inserts point control method along the line;
Fig. 5 is the structure chart that the map that one embodiment of the invention provides inserts point control device along the line;
Fig. 6 is the structure chart for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, the embodiment of the invention provides point control method is inserted along a kind of map, as shown in Figure 1, the map edge Line inserts point control method
Step 101, loaded and displayed map obtains the current target proportion ruler of map.
Point control method is inserted along map provided in an embodiment of the present invention to be mainly used in electronic map, such as high moral Figure, Tencent's map and Baidu map etc., for managing the position of the virtual objects shown in electronic map.
In the step, when opening electronic map or changing the scale bar of electronic map, it is required to again according to working as The target proportion ruler loaded and displayed electronic map of preceding display.Such as user is when zooming in and out adjustment map size, it will according to Current scaling carries out display map.The scale bar of common map is configured according to certain rank, when user is every One input once zooms in or out when instructing, it will the scale bar of one rank of adjustment.Such as the rank of the scale bar of map It is 20 grades, maximum rank is the 20th grade, and the smallest rank is the 1st grade, wherein the 20th grade is maximum scale bar, than Example ruler is bigger, and the practical expression of pixel indicates in kind finer apart from smaller on screen.
It should be understood that scale bar is jumped in adjacent rank in general, certainly when user zooms in and out finger When enabling input interval smaller, skipping a grade for scale bar may be implemented and jump, be also possible to for directly inputting specified scale bar grade Not, the scale bar rank that user inputs directly is jumped to from current scale bar rank, to realize that skipping a grade for scale bar jumps.
Step 102, determine that target is inserted into according to the corresponding relationship of the insertion point of the target proportion ruler and target insertion line Line target insertion point to be shown.
In the step, above-mentioned corresponding relationship includes: the point on the basis of a default insertion point, corresponding according to each scale bar Bolting house is screened every presetting insertion point to other, determines that the corresponding insertion point of each scale bar, the default insertion point are The insertion point of the target insertion line under the maximum ratio ruler of map.
Specifically, above-mentioned target insertion line can be it is one or more of, it is that user is preset which, which is inserted into line, It is inserted into line, in the embodiment of the present invention, point is inserted along the line and refers to the position being arranged along target insertion line interval for being inserted into virtual objects It sets a little.It is default insertion point in the point of insertion line ascender line arrangement.On insertion line in the default insertion point of all arrangements, Need insertion point to be shown different under different scale bars, to being the ratio in requisition for all insertion points of display under each scale bar Target insertion point to be shown under example ruler.
Said reference point can with any default insertion point, in this embodiment, it is preferred that, the datum mark be target be inserted into line Midpoint, which is also a default insertion point.
In the present embodiment, above-mentioned bolting house is related every the amplification factor between adjacent two-stage scale bar, in the prior art In, the amplification factor being usually arranged between the adjacent two-stage scale bar of electronic map is 2 times.In following embodiment, with adjacent Amplification factor between two-stage scale bar is illustrated for being 2 times.Specifically, in datum mark to all insertions between the end of a thread It presses and configures in order index value a little (being 1 closest to the insertion point of datum mark) according to putting in order, in datum mark between line tail All insertion points according to the collocation point that puts in order index value (closest to the insertion point of datum mark be 1).As shown in Fig. 2, A part of target insertion line is illustrated only in Fig. 2.Wherein, datum mark A, in datum mark to all insertion points between the end of a thread Position and index value constitute an independent insertion list A1, in position of the datum mark to all insertion points between line tail and rope Draw value and constitutes an independent insertion list A2.In insertion list A1, the index of insertion point includes 1,2,3,4 ... n, is being inserted into In list A2, the index of insertion point includes 1,2,3,4 ... n.The position of each insertion point may include longitude and latitude.
If the maximum level of scale bar is LeveMAX, the rank of target proportion ruler is Leve.In screening, said reference point For essential point, from insertion list A1 and it is inserted into the insertion point screened in list A2 are as follows: the Leve that index value is 2MAX- Leve times The point of the integral multiple of side.As shown in figure 3, illustrating only a part of target insertion line in Fig. 3.Fig. 2 and Fig. 3 shows adjacent two The arrangement situation of the insertion point of scale bar, the rank that Fig. 2 corresponds to the scale bar of map is LeveMAX, Fig. 3 corresponds to the ratio of map The rank of ruler is LeveMAX-1.Through the above way after calculating the default insertion point for obtaining maximum ratio ruler, it can screen to obtain The insertion point of the scale bar of other different stages.
In the present embodiment, due in the default insertion point that is shown under maximum ratio ruler screening insertion point as other differences Scale bar under target insertion point to be shown, so as to only once calculate to the position of insertion point setting, because This can reduce the position calculation amount for inserting point along the line.It wherein, can be according to reality for the different corresponding screening rules of scale bar Border needs to be configured, this is described in detail in following embodiment.
Step 103, corresponding virtual objects are inserted into based on the target insertion point.
In the step, it can be the same or different in the virtual objects that each insertion point is placed, for an insertion point Usually place a virtual objects, naturally it is also possible to place the similar virtual objects of same class and form object cluster, specifically, can be The similar virtual objects of same class are placed in certain radius.
It should be understood that each virtual objects have certain article size, the distance between adjacent default insertion point can root It is set according to the size of virtual objects, guarantees that the virtual objects between two neighboring insertion point will not gland.It is of course also possible to The attribute value that gland is run between virtual objects is set.Further, since the end of a thread and line tail of each target insertion line are largely Intersection or other effects of user are shown, generally according to scene setting, are reserved certain distance in the end of a thread and line tail and are not placed Insertion point, the distance are less than the distance between adjacent two default insertion point.
In this way, in embodiments of the present invention, loaded and displayed map obtains the current target proportion ruler of map;According to described The corresponding relationship of the insertion point of target proportion ruler and target insertion line determines target insertion line target insertion point to be shown;It is described Corresponding relationship includes: the point on the basis of a default insertion point, according to the corresponding bolting house of each scale bar every default slotting to other Access point is screened, and determines that the corresponding insertion point of each scale bar, the default insertion point are institute under the maximum ratio ruler of map State the insertion point of target insertion line;Corresponding virtual objects are inserted into based on the target insertion point.Due under maximum ratio ruler Target insertion point to be shown under the scale bar different as other of screening insertion point in the default insertion point of display, therefore at this The position for only needing to calculate insertion point under maximum ratio ruler in inventive embodiments, that is, can determine the position of insertion point under all proportions ruler It sets, to insert the position calculation amount of point along reducing.
It should be noted that the mode of the target insertion point to be shown for determination can be set according to actual needs It sets, such as in one embodiment, the target insertion point under each scale bar can be saved first, it is then true according to target proportion ruler Fixed corresponding target insertion point;In another embodiment, the attribute of default insertion point can also be configured, it is true according to attribute Fixed each default insertion point needs scale bar to be shown.This is described in detail below:
Such as in one embodiment, right in the case where screening each scale bar for determining target insertion line behind corresponding insertion point Target insertion line is stored in the corresponding insertion point of each scale bar, then can be closed according to corresponding in above-mentioned steps 102 The target insertion line is directly searched in locally-stored target insertion point corresponding with the target proportion ruler by system.
In another embodiment, above-mentioned steps 102 include:
According to the corresponding relationship, the display state of each default insertion point under the target proportion ruler is determined;
The default insertion point that will determine as display is set as the target insertion point.
In the present embodiment, an attribute can be arranged to each default insertion point, i.e., add to the object of each default insertion point Add a member.The member can be a Boolean type array, include two elements of key and value in the array, wherein Key indicates that scale bar, value indicate whether to show.It again may be by the screening rule in above-described embodiment and determine each ratio The corresponding target insertion point of example ruler, then determines display state of each insertion point under each scale bar, to form array It saves.When getting target proportion ruler, mesh is determined according to the display state under the target proportion ruler of each default insertion point Mark insertion point.It is primary due to only needing the data to default insertion point to save in the present embodiment, to save memory space.
Further, above-mentioned map includes ratio according to tactic multistage scale from big to small, the target It is the subset of the corresponding insertion point of upper level scale bar that line, which is inserted into, in the corresponding insertion point of next stage scale bar of map.
Specifically, if the maximum level of scale bar is LeveMAX, the rank of target proportion ruler is Leve.In screening, on Stating datum mark is essential point, from insertion list A1 and is inserted into the insertion point screened in list A2 are as follows: index value is 2 LeveMAXThe point of the integral multiple of-Leve power.That is the insertion point of next stage scale bar is upper level scale bar insertion point Using datum mark as starting point, interval takes a little identified insertion point.In the prior art, each scale bar rank is intended to calculate, by In precision is lost the problems such as, it is understood that there may be the position that calculates under different scale is different, in switching proportion ruler on map, object Position bounce.However in the present embodiment, the corresponding insertion point of next stage scale bar is the corresponding insertion point of upper level scale bar Subset.To which the point that once occurred during amplification do not disappear, show uniform, reasonable and does not beat, reducing Appearance point is not beated in journey, therefore improves display effect of electronic map during scaling.
It should be understood that can be set according to actual needs for the method for determination of each default insertion point on target insertion line It sets, specifically, referring to Fig. 4, before above-mentioned steps 101, the method also includes:
Step 104, the target for receiving user's input is inserted into line;
Step 105, a benchmark insertion point is determined on target insertion line;
Step 106, determine that the default insertion point, the default insertion point include institute using the benchmark insertion point as starting point State benchmark insertion point, the target is inserted into line setting according to the first spacing for the first line for being located at benchmark insertion point side Set multiple first insertion points and the target insertion line in be located at the benchmark insertion point other side the second route according to Multiple second insertion points are arranged in second spacing.
In the present embodiment, benchmark insertion point, multiple first insertion points and multiple second insertion points form above-mentioned default insertion Point.Above-mentioned target insertion line can be straight line, curve or broken line etc..Common, target is inserted into line walking along road or river Line is arranged, and is described in detail by taking broken line as an example in following embodiment.
User can directly input multiple coordinate points, and a target insertion line is made of the coordinate points.User at the same time An insertion line can also be inputted on map by other platforms, is then generated by platform according to the insertion line that user inputs more The target that multiple coordinate points of generation are inputted as user is finally inserted into line by a coordinate points.Including the endpoint at both ends, with And intermediate multiple inflection points, and the line between any two adjacent coordinate points is that straight line (can certainly be for certain The curve of curvature).
Specifically, said reference insertion point can be a coordinate points in multiple coordinate points, it can also two adjacent seats A point between punctuate.Preferably, in the present embodiment, which is the midpoint that target is inserted into line.
It should be understood that in the present embodiment, the distance of above-mentioned first spacing and the second spacing can carry out according to actual needs Setting, does not limit further herein, it is preferred that first spacing is equal to the second spacing, that is to say, that target is inserted on line The multiple default insertion points being arranged are equally distributed.Certainly the density that default insertion point is arranged in different target insertion lines can be with It is identical, it can also be different.
Multiple coordinate points also are provided with indexing, below to setting the first insertion point and the second insertion point set-up mode into Row is described in detail.
In the present embodiment, the length of target insertion line can be calculated by the total length for the multi-section-line that multiple coordinate points are constituted It obtains, finds the position of the central point of target insertion line first.Specifically, can be calculated since the end of a thread that target is inserted into line, According to the length of index every section of line that successively cumulative calculation is made of two adjacent coordinate points of coordinate points, if current accumulative meter The length of the end of a thread that the coordinate points of calculation are inserted into line to target is less than the half length of target insertion line, continues according under index calculating One coordinate points are inserted into the length of the end of a thread of line to target;If the coordinate points of current cumulative calculation are inserted into the length of the end of a thread of line to target Degree is equal to the half length of target insertion line, then the position of the coordinate points currently calculated is determined as to the central point of target insertion line Position, and determine it as benchmark insertion point;If the coordinate points of current cumulative calculation are inserted into the length of the end of a thread of line to target Greater than the half length of target insertion line, then the end of a thread that line is inserted into according to target is inserted into upper coordinate points cumulative length and target Difference between the half length of the end of a thread of line determines the position of central point.
After determining the position of central point, central point can be arranged as benchmark insertion point, then from benchmark insertion point point The position for determining each insertion point is not calculated to the end of a thread and line tail.Specifically, when calculating the position of the first insertion point to the end of a thread, it can To search the index with the nearest coordinate points in benchmark insertion point, whether the distance for then calculating the two is greater than the first spacing, if greatly In the first spacing, then an insertion point is determined according to the first spacing, then continue to count using determining insertion point as benchmark insertion point It calculates;If being equal to the first spacing, the coordinate points currently calculated are determined as insertion point, then using determining insertion point as benchmark Continue to calculate in insertion point;If calculating next coordinate points less than the first spacing and being accumulated to the distance of benchmark insertion point and whether be greater than First spacing.When the end of a thread is arrived in calculating, if the end of a thread calculates at a distance from determining benchmark insertion point with current less than or equal to first When spacing, the first insertion point is no longer set.
It should be noted that the calculation of above-mentioned second insertion point is consistent with the calculation of the first insertion point, herein It repeats no more.
It should be understood that line is inserted into due to may exist a plurality of target on the electronic map, when line with line surrender and still have by close phase There may be glands for a little objects, at this moment can integrally be avoided with quaternary tree again, to improve display effect.
Point control device is inserted along the map the present invention also provides point control device is inserted along a kind of map referring to Fig. 5 Include:
Module 501 is obtained, loaded and displayed map is used for, obtains the current target proportion ruler of map;
Target insertion point determining module 502, pair of the insertion point for being inserted into line according to the target proportion ruler and target It should be related to determining target insertion line target insertion point to be shown;The corresponding relationship includes: on the basis of a default insertion point Point screens every presetting insertion point to other according to the corresponding bolting house of each scale bar, determines that each scale bar is corresponding Insertion point, the default insertion point are inserted into the insertion point of line for the target under the maximum ratio ruler of map;
Object is inserted into module 503, for being inserted into corresponding virtual objects based on the target insertion point.
Optionally, target insertion point determining module 502 is specifically used for, and according to the corresponding relationship, searches the mesh Mark insertion line is in locally-stored target insertion point corresponding with the target proportion ruler.
Optionally, target insertion point determining module 502 includes:
Determination unit, for determining each default insertion point under the target proportion ruler according to the corresponding relationship Display state;
Setup unit, the default insertion point for will determine as display are set as the target insertion point.
Optionally, the map includes ratio according to tactic multistage scale from big to small, and the target is inserted Entering line in the corresponding insertion point of next stage scale bar of map is the subset of the corresponding insertion point of upper level scale bar.
Optionally, point control device is inserted along the map further include:
Receiving module, the target for receiving user's input are inserted into line;
Benchmark insertion point determining module, for determining a benchmark insertion point on target insertion line;
Insertion point setup module, it is described default for determining the default insertion point by starting point of the benchmark insertion point Insertion point include the benchmark insertion point, the target insertion line in be located at benchmark insertion point side first line by It is arranged in multiple first insertion points and target insertion line according to the first spacing and is located at the of the benchmark insertion point other side Multiple second insertion points are arranged according to the second spacing in two routes.
Optionally, the benchmark insertion point is the midpoint that the target is inserted into line.
Optionally, each target insertion point configures one or more virtual objects.
In this way, in embodiments of the present invention, loaded and displayed map obtains the current target proportion ruler of map;According to described The corresponding relationship of the insertion point of target proportion ruler and target insertion line determines target insertion line target insertion point to be shown;It is described Corresponding relationship includes: the point on the basis of a default insertion point, according to the corresponding bolting house of each scale bar every default slotting to other Access point is screened, and determines that the corresponding insertion point of each scale bar, the default insertion point are institute under the maximum ratio ruler of map State the insertion point of target insertion line;Corresponding virtual objects are inserted into based on the target insertion point.Due under maximum ratio ruler Target insertion point to be shown under the scale bar different as other of screening insertion point in the default insertion point of display, therefore at this The position for only needing to calculate insertion point under maximum ratio ruler in inventive embodiments, that is, can determine the position of insertion point under all proportions ruler It sets, to insert the position calculation amount of point along reducing.
Referring to Fig. 6, Fig. 6 is the structure chart of electronic equipment provided in an embodiment of the present invention, electronic equipment packet as shown in Figure 6 It includes: at least one processor 601, memory 602, at least one network interface 604 and user interface 603.In electronic equipment Various components are coupled by bus system 605.It is understood that bus system 605 is for realizing the company between these components Connect letter.Bus system 605 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But It is that various buses are all designated as bus system 605 in Fig. 6 for the sake of clear explanation.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball (track ball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronous connect Connect dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 602 of system and method described herein is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application The program or instruction stored in program 6022, processor 601 are used for: loaded and displayed map, obtain the current target proportion of map Ruler;Target insertion line target to be shown is determined according to the corresponding relationship of the insertion point of the target proportion ruler and target insertion line Insertion point;The corresponding relationship includes: the point on the basis of a default insertion point, according to the corresponding bolting house of each scale bar every right Other default insertion points are screened, and determine that the corresponding insertion point of each scale bar, the default insertion point are the maximum of map The insertion point of the target insertion line under scale bar;Corresponding virtual objects are inserted into based on the target insertion point.
Optionally, processor 601 is also used to: according to the corresponding relationship, searching the target insertion line locally-stored Target insertion point corresponding with the target proportion ruler.
Optionally, processor 601 is also used to: according to the corresponding relationship, being determined each described under the target proportion ruler The display state of default insertion point;The default insertion point that will determine as display is set as the target insertion point.
Optionally, the map includes ratio according to tactic multistage scale from big to small, and the target is inserted Entering line in the corresponding insertion point of next stage scale bar of map is the subset of the corresponding insertion point of upper level scale bar.
Optionally, processor 601 is also used to: the target for receiving user's input is inserted into line;On target insertion line really A fixed benchmark insertion point;Determine that the default insertion point, the default insertion point include institute using the benchmark insertion point as starting point State benchmark insertion point, the target is inserted into line setting according to the first spacing for the first line for being located at benchmark insertion point side Set multiple first insertion points and the target insertion line in be located at the benchmark insertion point other side the second route according to Multiple second insertion points are arranged in second spacing
Optionally, the benchmark insertion point is the midpoint that the target is inserted into line.
Optionally, each target insertion point configures one or more virtual objects.
In this way, in embodiments of the present invention, loaded and displayed map obtains the current target proportion ruler of map;According to described The corresponding relationship of the insertion point of target proportion ruler and target insertion line determines target insertion line target insertion point to be shown;It is described Corresponding relationship includes: the point on the basis of a default insertion point, according to the corresponding bolting house of each scale bar every default slotting to other Access point is screened, and determines that the corresponding insertion point of each scale bar, the default insertion point are institute under the maximum ratio ruler of map State the insertion point of target insertion line;Corresponding virtual objects are inserted into based on the target insertion point.Due under maximum ratio ruler Target insertion point to be shown under the scale bar different as other of screening insertion point in the default insertion point of display, therefore at this The position for only needing to calculate insertion point under maximum ratio ruler in inventive embodiments, that is, can determine the position of insertion point under all proportions ruler It sets, to insert the position calculation amount of point along reducing.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the meter Calculation machine program is realized when being executed by processor inserts along the map in any one above-mentioned embodiment of the method in point control method Step.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (14)

1. inserting point control method along a kind of map characterized by comprising
Loaded and displayed map obtains the current target proportion ruler of map;
Target insertion line mesh to be shown is determined according to the corresponding relationship of the insertion point of the target proportion ruler and target insertion line Mark insertion point;The corresponding relationship includes: the point on the basis of a default insertion point, according to the corresponding bolting house of each scale bar every Preset insertion point to other to screen, determine the corresponding insertion point of each scale bar, the default insertion point be map most The insertion point of the target insertion line under large scale;
Corresponding virtual objects are inserted into based on the target insertion point.
2. the method according to claim 1, wherein described be inserted into line according to the target proportion ruler and target The corresponding relationship of insertion point determines the step of target insertion line target insertion point to be shown, comprising:
According to the corresponding relationship, the target insertion line is searched in locally-stored target corresponding with the target proportion ruler Insertion point.
3. the method according to claim 1, wherein described be inserted into line according to the target proportion ruler and target The corresponding relationship of insertion point determines the step of target insertion line target insertion point to be shown, comprising:
According to the corresponding relationship, the display state of each default insertion point under the target proportion ruler is determined;
The default insertion point that will determine as display is set as the target insertion point.
4. according to the method in any one of claims 1 to 3, which is characterized in that the map includes ratio according to from big To small tactic multistage scale, the target insertion line is on the corresponding insertion point of next stage scale bar of map is The subset of the corresponding insertion point of level-one scale bar.
5. the method according to claim 1, wherein the loaded and displayed map, obtains the current target of map Before the step of scale bar, the method also includes:
The target for receiving user's input is inserted into line;
A benchmark insertion point is determined on target insertion line;
Determine that the default insertion point, the default insertion point include the benchmark insertion using the benchmark insertion point as starting point Be located at the first line of benchmark insertion point side in point, target insertion line is arranged multiple first according to the first spacing It is located at setting according to the second spacing for the second route of the benchmark insertion point other side in insertion point and target insertion line Set multiple second insertion points.
6. according to the method described in claim 5, it is characterized in that, the benchmark insertion point is that the target is inserted into line Point.
7. the method according to claim 1, wherein each target insertion point configures one or more void Quasi- object.
8. inserting point control device along a kind of map characterized by comprising
Module is obtained, loaded and displayed map is used for, obtains the current target proportion ruler of map;
Target insertion point determining module, for true according to the target proportion ruler and the corresponding relationship of the insertion point of target insertion line It sets the goal and is inserted into line target insertion point to be shown;The corresponding relationship includes: the point on the basis of a default insertion point, according to every The corresponding bolting house of one scale bar is screened every presetting insertion point to other, determines the corresponding insertion point of each scale bar, institute State the insertion point that the target under the maximum ratio ruler that default insertion point is map is inserted into line;
Object is inserted into module, for being inserted into corresponding virtual objects based on the target insertion point.
9. device according to claim 8, which is characterized in that target insertion point determining module is specifically used for, according to The corresponding relationship searches the target insertion line in locally-stored target insertion point corresponding with the target proportion ruler.
10. device according to claim 8, which is characterized in that target insertion point determining module includes:
Determination unit determines the aobvious of each default insertion point under the target proportion ruler for according to the corresponding relationship Show state;
Setup unit, the default insertion point for will determine as display are set as the target insertion point.
11. the device according to any one of claim 8 to 10, which is characterized in that the map include ratio according to from Small tactic multistage scale is arrived greatly, and the target insertion line is in the corresponding insertion point of next stage scale bar of map The subset of the corresponding insertion point of upper level scale bar.
12. device according to claim 8, which is characterized in that insert point control device along the map further include:
Receiving module, the target for receiving user's input are inserted into line;
Benchmark insertion point determining module, for determining a benchmark insertion point on target insertion line;
Insertion point setup module, for determining the default insertion point, the default insertion by starting point of the benchmark insertion point Point include the benchmark insertion point, be located in the target insertion line benchmark insertion point side first line according to the The second line for being located at the benchmark insertion point other side in multiple first insertion points and target insertion line is arranged in one spacing Multiple second insertion points are arranged according to the second spacing in road.
13. a kind of electronic equipment, comprising:
One or more processors;
Memory;And
One or more programs, wherein one or more of programs are stored in the memory, and be configured to by One or more of processors execute, which is characterized in that described program, which is performed, realizes any one of claim 1-7 institute The step in point control method is inserted along the map stated.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step inserted in point control method along map of any of claims 1-7 is realized when being executed by processor.
CN201710427255.XA 2017-06-08 2017-06-08 Method and device for controlling interpolation points along map line Active CN109036096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710427255.XA CN109036096B (en) 2017-06-08 2017-06-08 Method and device for controlling interpolation points along map line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710427255.XA CN109036096B (en) 2017-06-08 2017-06-08 Method and device for controlling interpolation points along map line

Publications (2)

Publication Number Publication Date
CN109036096A true CN109036096A (en) 2018-12-18
CN109036096B CN109036096B (en) 2022-11-08

Family

ID=64629477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710427255.XA Active CN109036096B (en) 2017-06-08 2017-06-08 Method and device for controlling interpolation points along map line

Country Status (1)

Country Link
CN (1) CN109036096B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004233264A (en) * 2003-01-31 2004-08-19 Nissan Motor Co Ltd Navigation system
CN1961198A (en) * 2004-05-26 2007-05-09 松下电器产业株式会社 Position information reception device and shape matching method
CN101469988A (en) * 2007-12-24 2009-07-01 厦门雅迅网络股份有限公司 Cutting method for map vector data in mobile phone network navigation
JP2010086039A (en) * 2008-09-29 2010-04-15 Nikon Corp Information processing apparatus and information processing program
CN101719335A (en) * 2009-11-12 2010-06-02 上海众恒信息产业有限公司 Grid picture electronic map for geographic information system
CN102543038A (en) * 2010-12-30 2012-07-04 上海博泰悦臻电子设备制造有限公司 Display method and display device
JP2012230258A (en) * 2011-04-26 2012-11-22 Canon Inc Imaging device and control method thereof
CN103150961A (en) * 2011-12-01 2013-06-12 株式会社电装 Map display manipulation apparatus
CN103915036A (en) * 2012-12-30 2014-07-09 高德信息技术有限公司 Method and device for calculating road name mark points
CN104036688A (en) * 2014-05-27 2014-09-10 厦门雅迅网络股份有限公司 Map load based method for dynamically screening electronic map point elements
CN104239329A (en) * 2013-06-18 2014-12-24 上海博泰悦臻电子设备制造有限公司 Method and device for saving and loading map road shape point data
CN102541418B (en) * 2010-12-30 2015-04-08 上海博泰悦臻电子设备制造有限公司 Processing method and device for realizing map display
CN106777074A (en) * 2016-12-13 2017-05-31 天津市骐高数码科技发展有限公司 Geographical information grid electronic map

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004233264A (en) * 2003-01-31 2004-08-19 Nissan Motor Co Ltd Navigation system
CN1961198A (en) * 2004-05-26 2007-05-09 松下电器产业株式会社 Position information reception device and shape matching method
CN101469988A (en) * 2007-12-24 2009-07-01 厦门雅迅网络股份有限公司 Cutting method for map vector data in mobile phone network navigation
JP2010086039A (en) * 2008-09-29 2010-04-15 Nikon Corp Information processing apparatus and information processing program
CN101719335A (en) * 2009-11-12 2010-06-02 上海众恒信息产业有限公司 Grid picture electronic map for geographic information system
CN102541418B (en) * 2010-12-30 2015-04-08 上海博泰悦臻电子设备制造有限公司 Processing method and device for realizing map display
CN102543038A (en) * 2010-12-30 2012-07-04 上海博泰悦臻电子设备制造有限公司 Display method and display device
JP2012230258A (en) * 2011-04-26 2012-11-22 Canon Inc Imaging device and control method thereof
CN103150961A (en) * 2011-12-01 2013-06-12 株式会社电装 Map display manipulation apparatus
CN103915036A (en) * 2012-12-30 2014-07-09 高德信息技术有限公司 Method and device for calculating road name mark points
CN104239329A (en) * 2013-06-18 2014-12-24 上海博泰悦臻电子设备制造有限公司 Method and device for saving and loading map road shape point data
CN104036688A (en) * 2014-05-27 2014-09-10 厦门雅迅网络股份有限公司 Map load based method for dynamically screening electronic map point elements
CN106777074A (en) * 2016-12-13 2017-05-31 天津市骐高数码科技发展有限公司 Geographical information grid electronic map

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李科: "多源、多比例尺军用地图数据集成研究与实践", 《中国优秀博硕士学位论文全文数据库 (硕士) 工程科技Ⅱ辑》 *

Also Published As

Publication number Publication date
CN109036096B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
KR101891765B1 (en) User interface for translation webpage
US8683417B2 (en) Multiple level spine routing
US9041742B2 (en) Displaying an image based on layers of a layer tree
CN108573325A (en) Logistics distribution method for optimizing route and terminal device
US7464348B1 (en) Method and system for mapping source elements to destination elements as interconnect routing assignments
EP1754955B1 (en) Navigation method and corresponding system for determining a travel related time
JP2010040661A (en) Method of designing semiconductor apparatus, program, and semiconductor apparatus
US6651232B1 (en) Method and system for progressive clock tree or mesh construction concurrently with physical design
CN110147632A (en) A kind of topology matching route bus method considering non-uniform track and barrier
Shi et al. TraPL: Track planning of local congestion for global routing
CN106294916A (en) A kind of automatic graph generation method of cable system circuit diagram
US8671376B2 (en) Computer system and method for performing a routing supply and demand analysis during the floor planning stage of an integrated circuit design process
US20130007089A1 (en) Distributing points of interest
CN109036096A (en) A kind of map is slotting along the line to put a control method and device
CN112652189A (en) Traffic distribution method, device and equipment based on policy flow and readable storage medium
CN109410626A (en) Website marker method, device, electronic equipment and computer readable storage medium
CN108834064B (en) Site matching method and device based on electronic fence map
JP2011198143A (en) Design support program, design support device, and design support method
CN103218458B (en) Recommendation method and recommendation server
US20210194710A1 (en) Information processing apparatus and service cost calculation method
CN107391728A (en) Data digging method and data mining device
US11838186B2 (en) Topology design apparatus, topology design method and program
CN112445621A (en) Static routing planning method and device, electronic equipment and storage medium
JP3530025B2 (en) Schematic wiring determination method and storage medium
Dai et al. GRPlacer: Improving routability and wire-length of global routing with circuit replacement

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