CN103943026A - Target point automatic distribution method based on pixel distances - Google Patents
Target point automatic distribution method based on pixel distances Download PDFInfo
- Publication number
- CN103943026A CN103943026A CN201410168262.9A CN201410168262A CN103943026A CN 103943026 A CN103943026 A CN 103943026A CN 201410168262 A CN201410168262 A CN 201410168262A CN 103943026 A CN103943026 A CN 103943026A
- Authority
- CN
- China
- Prior art keywords
- impact point
- pixel distance
- map
- method based
- point
- 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
Links
Abstract
The invention relates to a target point automatic distribution method based on pixel distances. The method comprises the steps that a current screen/window display map is drawn according to map moving and precision; the pixel distances between all target points on the current screen/window display map are calculated according to geographic position data; if only one target point exists within the pixel distance range that the target point is used as the center and a set threshold is used as the radius, a point is drawn at the position, corresponding to the target point, on the current screen/window display map and the name of the target point is labeled by characters; if a plurality of target points exist within the pixel distance range that one target point is used as a center and a set threshold is used as the radius, a point is drawn at the position, corresponding to the target point, on the current screen/window display map and the names of all the target points are labeled by characters. The target point automatic distribution method enables information to be complete and images to be concise, meets habits of people, and provides better user experience.
Description
Technical field
The present invention relates to computer image processing technology, be specifically related to a kind of impact point automatic placement method based on pixel distance.
Background technology
Along with the development of mobile Internet, the demand developing software on map is also increasing, how information as much as possible being presented in limited screen, and can allowing user obtain easily the information of wanting, is the very important direction that present map develops software.
It is to show that a digital watch is shown with how many people in this region that general demonstration at present has how many people's methods within the specific limits, but this method has following multiple shortcoming:
1. can not show very intuitively in this region and have those people to exist.
2. in the time that the accuracy of map zooms in or out, show dumbly, can not automatically upgrade and in polymerization, have how many people.
3. can not be in the same localities and show multiple people's name.
Even if 4. can auto arrangement also can not calculate distance according to pixel, but the base area radius of a ball calculates the space length between 2, carries out a large amount of calculating.
5. the list showing is unclear, has the problems such as overlapping.
6. can not on same map, be divided into the unit of multiple auto arrangement.
Summary of the invention
The technical issues that need to address of the present invention are, how a kind of impact point automatic placement method based on pixel distance is provided, can according to image size adjustment aim point display effect and information be comprehensive, image is succinct, thus bring better experience to user.
Above-mentioned technical matters of the present invention solves like this: builds a kind of impact point automatic placement method based on pixel distance, comprises the geographic position data that obtains impact point, it is characterized in that, further comprising the steps of:
Map making: mobile and precision is drawn current screen/window demonstration map according to the map;
Calculating pixel distance: calculate at current screen/window and show the pixel distance between the each impact point on map according to described geographic position data;
Render target point: if impact point centered by it, radius only has self impact point within the scope of setting the pixel distance of thresholding, shows on map the title to drawing a point this impact point of words identification on should the position of an impact point at current screen/window; If impact point centered by it, radius has multiple impact points within the scope of setting the pixel distance of thresholding, shows on map the title to drawing a point all described multiple impact points of words identification on should the position of an impact point at current screen/window.
According to the impact point automatic placement method based on pixel distance provided by the invention, described calculating pixel distance comprises according to described geographic position data computer memory distance, calculate at current screen/window and show the pixel distance between the each impact point on map according to space length again, or directly calculate at current screen/window and show the pixel distance between the each impact point on map according to the space length of buffer memory.
According to the impact point automatic placement method based on pixel distance provided by the invention, it is GPS longitude and latitude data or Beidou satellite navigation system longitude and latitude data that described geographic position data includes, but are not limited to.
According to the impact point automatic placement method based on pixel distance provided by the invention, the method is included in while zooming in or out map, repaints map, calculating pixel distance and render target point.
According to the impact point automatic placement method based on pixel distance provided by the invention, when render target point, each impact point at most only occurs once.
According to the impact point automatic placement method based on pixel distance provided by the invention, it is one or more in people, dining room or refuelling station that described impact point includes, but are not limited to.
According to the impact point automatic placement method based on pixel distance provided by the invention, the title of all described multiple impact points of words identification is from top to bottom, list shows each title line by line.
According to the impact point automatic placement method based on pixel distance provided by the invention, the height in described list between title is 16-20 pixel, and list widths is 120-150 pixel.
According to the impact point automatic placement method based on pixel distance provided by the invention, described setting thresholding is 18-22 pixel, preferably 20 pixels.
According to the impact point automatic placement method based on pixel distance provided by the invention, the method realizes based on HTML and JAVASCRIP.
Impact point automatic placement method based on pixel distance provided by the invention, separates or merges impact point by precision, compared with prior art has the following advantages:
1. be widely used in Android system, IOS system and WINDOWS system, computer or mobile phone;
2. support various browsers;
3. impact point meets people's custom, automatically merge/separately.
Brief description of the drawings
Below in conjunction with the drawings and specific embodiments, further the present invention is described in detail.
Fig. 1 is the computer process schematic diagram of the inventive method specific implementation;
Fig. 2 is the concrete interface one corresponding with flow process shown in Fig. 1;
Fig. 3 is the concrete interface two corresponding with flow process shown in Fig. 1.
Embodiment
As shown in Figure 1, in the preferred embodiment of the present invention, specifically comprise following computer software process step:
101) position that first shows each point according to the longitude of GPS and latitude data is on map;
102), in the time that the accuracy of map zooms in or out, GPS position should precision according to the map change display position automatically;
103) calculate the distance between mutual 2 on map, go out the space length between 2 according to GPS positional information calculation, calculate distance rear according to the precision size of the map of current demonstration, calculate the pixel distance showing between 2 on interface.
104) obtain after the pixel distance between 2, judge 2 dot spacings from value, if be greater than the value of setting, think that location comparison is apart far away, can not think in the scope covering at point.
105) if the distance between obtain 2 is less than the value of setting, think in the coverage of same point, now think that they are in same point range.
106) when the accuracy of map is exaggerated or dwindle after, whether recalculate pixel distance between points, with equally rejudging in the coverage of same point above.
107) when one of them some position has changed, do equally the calculating of this point and other some distances, whether judgement can be in same point coverage, if do not have this point just to delete from list, if in this point, just add this point in list.
Secondly, the key in above-mentioned steps is:
1. the preferred embodiment of the present invention, in showing many people position on map, can be converted into actual range auto arrangement name according to the pixel distance showing.
2. the preferred embodiment of the present invention is also included in the auto arrangement name page HTML and the JavaScript code that in browser, load.
3. the preferred embodiment of the present invention also comprises and in the later system equipment of Android2.2 version, loads the auto arrangement name page HTML and the JavaScript code that in html page program, load.
4. the preferred embodiment of the present invention also comprises and in iOS system equipment, loads the auto arrangement name page HTML and the JavaScript code that in html page program, load.
5. the preferred embodiment of the present invention also comprises that Windows (comprises windowsXP, windows visita, windows7, windows8) load the auto arrangement name page HTML and the JavaScript code that in html page program, load in system equipment.
6. the preferred embodiment of the present invention also comprises and in Mac OS system equipment, loads the auto arrangement name page HTML and the JavaScript code that in html page program, load.
7. the preferred embodiment of the present invention is used the javascript of standard and css language compilation, can support the browser of all platforms, can be at Android, iOS, Windows, Mac OS, moves on the browser browser moving on linux system, and browser comprises IE6+, Mazilla FireFox, Chome,, Safari etc.
8. the preferred embodiment of the present invention also comprises in the time that the accuracy of map is dwindled, and is presented at people adjacent on map when distance is less than after certain pixel distance on screen, many people can be presented to the same place on map, shows everyone name with the form of list.
9. the preferred embodiment of the present invention also comprises in the time that the accuracy of map is amplified, be presented at people adjacent on map when distance on screen, be greater than after certain pixel distance, can scatter being presented at multiple people in same place on map, from list, remove people's name, be presented on map with the form of an independent point.
10. the preferred embodiment of the present invention also comprises that in people's list of file names, the mutual height of everyone name is 20 pixels, and list widths is 150 pixels, and font is the refined dark red font of Microsoft.
11. preferred embodiment of the present invention also comprise when precision zooms in or out according to the map, automatically add or delete name in list.
Again, the preferred embodiment of the present invention is implemented at the map page of the fast travelling purse mobile phone of match, in the time that user zooms in or out map interface, people's list of file names is the change of distance of the more each point of amendment automatically, dwindle map as shown in Figure 2, as shown in Figure 3, in Fig. 2,2 people are merged into a bit and show enlarged map, and Fig. 3 separately shows.
Finally, in those of ordinary skill in the art understand scope, within the scope of the claims in the present invention, various variations all belong to protection scope of the present invention.
Claims (10)
1. the impact point automatic placement method based on pixel distance, comprises the geographic position data that obtains impact point, it is characterized in that, further comprising the steps of:
Map making: mobile and precision is drawn current screen/window demonstration map according to the map;
Calculating pixel distance: calculate at current screen/window and show the pixel distance between the each impact point on map according to described geographic position data;
Render target point: if impact point centered by it, radius only has self impact point within the scope of setting the pixel distance of thresholding, shows on map the title to drawing a point this impact point of words identification on should the position of an impact point at current screen/window; If impact point centered by it, radius has multiple impact points within the scope of setting the pixel distance of thresholding, shows on map the title to drawing a point all described multiple impact points of words identification on should the position of an impact point at current screen/window.
2. the impact point automatic placement method based on pixel distance according to claim 1, it is characterized in that, described calculating pixel distance comprises according to described geographic position data computer memory distance, calculate at current screen/window and show the pixel distance between the each impact point on map according to space length again, or directly calculate at current screen/window and show the pixel distance between the each impact point on map according to the space length of buffer memory.
3. the impact point automatic placement method based on pixel distance according to claim 2, is characterized in that, described geographic position data is GPS longitude and latitude data or Beidou satellite navigation system longitude and latitude data.
4. the impact point automatic placement method based on pixel distance according to claim 1, is characterized in that, the method is included in while zooming in or out map, repaints map, calculating pixel distance and render target point.
5. the impact point automatic placement method based on pixel distance according to claim 1, is characterized in that, when render target point, each impact point at most only occurs once.
6. the impact point automatic placement method based on pixel distance according to claim 1, is characterized in that, described impact point comprises one or more in people, dining room or refuelling station.
7. the impact point automatic placement method based on pixel distance according to claim 1, is characterized in that, the title of all described multiple impact points of words identification is from top to bottom, list shows each title line by line.
8. the impact point automatic placement method based on pixel distance according to claim 7, is characterized in that, the height in described list between title is 16-20 pixel, and list widths is 120-150 pixel.
9. the impact point automatic placement method based on pixel distance according to claim 1, is characterized in that, described setting thresholding is 18-22 pixel.
10. according to the impact point automatic placement method based on pixel distance described in any one in claim 1-9, it is characterized in that, the method realizes based on HTML and JAVASCRIP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410168262.9A CN103943026B (en) | 2014-04-24 | 2014-04-24 | A kind of impact point automatic placement method based on pixel distance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410168262.9A CN103943026B (en) | 2014-04-24 | 2014-04-24 | A kind of impact point automatic placement method based on pixel distance |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103943026A true CN103943026A (en) | 2014-07-23 |
CN103943026B CN103943026B (en) | 2016-02-24 |
Family
ID=51190669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410168262.9A Expired - Fee Related CN103943026B (en) | 2014-04-24 | 2014-04-24 | A kind of impact point automatic placement method based on pixel distance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103943026B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582749A (en) * | 2018-10-17 | 2019-04-05 | 深圳壹账通智能科技有限公司 | Multiple spot display methods, device and storage medium, computer equipment in map |
CN112445989A (en) * | 2020-11-23 | 2021-03-05 | 北京思特奇信息技术股份有限公司 | WebGIS (Web geographic information System) -based map text label avoidance display method and device |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6563509B1 (en) * | 2000-02-25 | 2003-05-13 | Adobe Systems Incorporated | Seeding map having intermediate seed values |
CN1488067A (en) * | 2001-01-29 | 2004-04-07 | ���µ�����ҵ��ʽ���� | Position information transmitting method and device digital map |
CN1517679A (en) * | 2003-01-08 | 2004-08-04 | 日本先锋公司 | Navigation equipment, navigation map data obtaining method and computer readable recording medium |
US20040217884A1 (en) * | 2003-04-30 | 2004-11-04 | Ramin Samadani | Systems and methods of viewing, modifying, and interacting with "path-enhanced" multimedia |
WO2005114109A1 (en) * | 2004-04-20 | 2005-12-01 | Thales | Method for estimating an aircraft distance taking into account air navigation constraints |
WO2005121706A1 (en) * | 2004-06-11 | 2005-12-22 | Matsushita Electric Industrial Co., Ltd. | Map display device and map display method |
US20070130153A1 (en) * | 2005-12-02 | 2007-06-07 | Palm, Inc. | Techniques to communicate and process location information from communications networks on a mobile computing device |
CN101014831A (en) * | 2004-03-23 | 2007-08-08 | 咕果公司 | A digital mapping system |
CN101166327A (en) * | 2006-03-31 | 2008-04-23 | 捷讯研究有限公司 | Methods and apparatus for dynamically labeling map objects in visually displayed maps |
CN101390414A (en) * | 2006-02-24 | 2009-03-18 | 雅虎公司 | User-defined private maps |
WO2010087750A1 (en) * | 2009-01-30 | 2010-08-05 | Telefonaktiebolaget L M Ericsson (Publ) | Presentation of a digital map |
CN102007377A (en) * | 2008-05-02 | 2011-04-06 | 通腾科技股份有限公司 | A navigation device and method for emphasising a map route |
CN102230968A (en) * | 2011-04-01 | 2011-11-02 | 搜船(北京)网络技术有限公司 | System and method for updating and displaying dynamic object mark position in real time |
CN102576501A (en) * | 2009-10-27 | 2012-07-11 | 三菱电机株式会社 | Map drawing device |
CN102929956A (en) * | 2012-10-09 | 2013-02-13 | 广东欧珀移动通信有限公司 | Image display method and device |
US20130044137A1 (en) * | 2011-08-17 | 2013-02-21 | Nils Forsblom | Selective map marker aggregation |
CN103154666A (en) * | 2011-06-14 | 2013-06-12 | 日产自动车株式会社 | Distance measurement device and environment map generation apparatus |
-
2014
- 2014-04-24 CN CN201410168262.9A patent/CN103943026B/en not_active Expired - Fee Related
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6563509B1 (en) * | 2000-02-25 | 2003-05-13 | Adobe Systems Incorporated | Seeding map having intermediate seed values |
CN1488067A (en) * | 2001-01-29 | 2004-04-07 | ���µ�����ҵ��ʽ���� | Position information transmitting method and device digital map |
CN1517679A (en) * | 2003-01-08 | 2004-08-04 | 日本先锋公司 | Navigation equipment, navigation map data obtaining method and computer readable recording medium |
US20040217884A1 (en) * | 2003-04-30 | 2004-11-04 | Ramin Samadani | Systems and methods of viewing, modifying, and interacting with "path-enhanced" multimedia |
CN101014831A (en) * | 2004-03-23 | 2007-08-08 | 咕果公司 | A digital mapping system |
WO2005114109A1 (en) * | 2004-04-20 | 2005-12-01 | Thales | Method for estimating an aircraft distance taking into account air navigation constraints |
WO2005121706A1 (en) * | 2004-06-11 | 2005-12-22 | Matsushita Electric Industrial Co., Ltd. | Map display device and map display method |
US20070130153A1 (en) * | 2005-12-02 | 2007-06-07 | Palm, Inc. | Techniques to communicate and process location information from communications networks on a mobile computing device |
CN101390414A (en) * | 2006-02-24 | 2009-03-18 | 雅虎公司 | User-defined private maps |
CN101166327A (en) * | 2006-03-31 | 2008-04-23 | 捷讯研究有限公司 | Methods and apparatus for dynamically labeling map objects in visually displayed maps |
CN102007377A (en) * | 2008-05-02 | 2011-04-06 | 通腾科技股份有限公司 | A navigation device and method for emphasising a map route |
WO2010087750A1 (en) * | 2009-01-30 | 2010-08-05 | Telefonaktiebolaget L M Ericsson (Publ) | Presentation of a digital map |
CN102576501A (en) * | 2009-10-27 | 2012-07-11 | 三菱电机株式会社 | Map drawing device |
CN102230968A (en) * | 2011-04-01 | 2011-11-02 | 搜船(北京)网络技术有限公司 | System and method for updating and displaying dynamic object mark position in real time |
CN103154666A (en) * | 2011-06-14 | 2013-06-12 | 日产自动车株式会社 | Distance measurement device and environment map generation apparatus |
US20130044137A1 (en) * | 2011-08-17 | 2013-02-21 | Nils Forsblom | Selective map marker aggregation |
CN102929956A (en) * | 2012-10-09 | 2013-02-13 | 广东欧珀移动通信有限公司 | Image display method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582749A (en) * | 2018-10-17 | 2019-04-05 | 深圳壹账通智能科技有限公司 | Multiple spot display methods, device and storage medium, computer equipment in map |
CN112445989A (en) * | 2020-11-23 | 2021-03-05 | 北京思特奇信息技术股份有限公司 | WebGIS (Web geographic information System) -based map text label avoidance display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103943026B (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102344012B1 (en) | Method and apparatus for displaying point of interest | |
US20190086214A1 (en) | Image processing device, image processing method, and program | |
US10074180B2 (en) | Photo-based positioning | |
US10025985B2 (en) | Information processing apparatus, information processing method, and non-transitory computer-readable storage medium storing program | |
US10657669B2 (en) | Determination of a geographical location of a user | |
KR101790655B1 (en) | Feedback method for bus information inquiry, mobile terminal and server | |
US11815359B2 (en) | Method, device and system for processing positioning information | |
CN104580499A (en) | Method and device for accurately labeling positions | |
CN105474622A (en) | Method and apparatus for generating an all-in-focus image | |
US11205346B2 (en) | Traffic information update method and apparatus | |
US8290706B2 (en) | Map data display control apparatus, map data display control method, and program for the same | |
CN110288549B (en) | Video repairing method and device and electronic equipment | |
US11394871B2 (en) | Photo taking control method and system based on mobile terminal, and storage medium | |
US20220076469A1 (en) | Information display device and information display program | |
CN107656961B (en) | Information display method and device | |
US20160018238A1 (en) | Route inspection portals | |
US9418351B2 (en) | Automated network inventory using a user device | |
US20160155250A1 (en) | Map obtaining method | |
CN103943026B (en) | A kind of impact point automatic placement method based on pixel distance | |
CN114624751A (en) | Auxiliary positioning method and device, electronic equipment and storage medium | |
US9031281B2 (en) | Identifying an area of interest in imagery | |
CN115619904A (en) | Image processing method, device and equipment | |
US9032287B2 (en) | Systems and methods of modifying a web page based on environmental factors | |
US10108882B1 (en) | Method to post and access information onto a map through pictures | |
CN110807164B (en) | Automatic image area adjusting method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160224 Termination date: 20170424 |
|
CF01 | Termination of patent right due to non-payment of annual fee |