CN110362242A - A kind of map methods of exhibiting and terminal device - Google Patents

A kind of map methods of exhibiting and terminal device Download PDF

Info

Publication number
CN110362242A
CN110362242A CN201810336443.6A CN201810336443A CN110362242A CN 110362242 A CN110362242 A CN 110362242A CN 201810336443 A CN201810336443 A CN 201810336443A CN 110362242 A CN110362242 A CN 110362242A
Authority
CN
China
Prior art keywords
mentioned
presented
visible area
map
rectangle
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
CN201810336443.6A
Other languages
Chinese (zh)
Other versions
CN110362242B (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
Tencent Dadi Tongtu Beijing Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Dadi Tongtu Beijing Technology 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, Tencent Dadi Tongtu Beijing Technology Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810336443.6A priority Critical patent/CN110362242B/en
Publication of CN110362242A publication Critical patent/CN110362242A/en
Application granted granted Critical
Publication of CN110362242B publication Critical patent/CN110362242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Human Computer Interaction (AREA)
  • Instructional Devices (AREA)
  • User Interface Of Digital Computer (AREA)
  • Navigation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a kind of map methods of exhibiting and terminal devices, which comprises obtains element to be presented, the element to be presented is content to be presented in map interface;Obtain the full content that the element to be presented is shown in the visible area of equipment, required target proportion ruler and center position;The center position is the position of the central point of the peripheral rectangle of the element to be presented;The element to be presented is shown in the map interface with the target proportion ruler and the center position.Using the present invention, the element to be presented in map can be completely shown with optimum field, improve map bandwagon effect.

Description

A kind of map methods of exhibiting and terminal device
Technical field
The present invention relates to field of computer technology more particularly to a kind of map methods of exhibiting and terminal device.
Background technique
With the universal and mobile Internet business development of terminal device, use is arrived on more and more terminal devices Map Services, Map Services also have very in this process also at essential component part in public daily life The multifactor access and displaying that restrict map in Map Services.For the map bandwagon effect provided, it is general according to It shows that the position of element calculates scale bar and map center point coordinate, and map is adjusted according to the parameter of calculating, so that map exhibition The visual field shown is more preferably.However current such processing method is only capable of processing point data, and cannot by accurately calculate face data come Optimize the visual field that map is shown.
Usual display elements mark needs to mark element with complete route with best on map to indicate anchor point The visual field is shown on map, wherein optimum field refers to showing element to be presented into complete situation on map, however shows There is algorithm that can not calculate the optimal parameter of map displaying, the place name shown on element mark, which will appear, shows infull feelings Condition, and when the shape of element mark is larger (such as destination locations in the arrow prompt digital map navigation eye-catching with one), If element mark is in screen edge, it is also possible to will appear a part of element mark without showing the feelings in screen ranges Condition.This is because generally only considering the coordinate points of element when being calculated, a peripheral rectangle is found according to all coordinate points, By peripheral rectangular projection to Mercator's coordinate system, size according to the map calculates suitable scale bar and central point.But due to The coordinate points of element are only capable of indicating a point, cannot indicate complete element mark, so when the peripheral rectangle of element is larger, Element can not be marked and show that completely the bandwagon effect on map is poor by existing scheme.
Evading the way of problem above at present is that the upper and lower, left and right of to map reserve one when calculating optimum field Fixed back gauge, all parts of element to be included in above-mentioned visual range as far as possible.But due under different scale Rectangle corresponding screen coordinate in element periphery is different, and institute can only improve to a small extent bandwagon effect in this way, map Bandwagon effect is still poor.
Summary of the invention
The embodiment of the present invention provides a kind of map methods of exhibiting and terminal device, can completely show ground with optimum field Element to be presented in figure improves map bandwagon effect.
One aspect of the present invention provides a kind of map methods of exhibiting, comprising:
Element to be presented is obtained, the element to be presented is content to be presented in map interface;
Obtain and show the full content of the element to be presented in the visible area of equipment, required target proportion ruler with And center position;The center position is the position of the central point of the peripheral rectangle of the element to be presented;
The element to be presented is shown in the map interface with the target proportion ruler and the center position.
Another aspect of the present invention provides a kind of terminal device, comprising:
Element obtains module, and for obtaining element to be presented, the element to be presented is to be presented in map interface Content;
Module is obtained, it is required for obtaining the full content for showing the element to be presented in the visible area of equipment Target proportion ruler and center position;The center position is the central point of the peripheral rectangle of the element to be presented Position;
Display module, it is described wait open up for being shown with the target proportion ruler and center position in the map interface Show element.
Another aspect of the present invention provides a kind of terminal device, comprising: processor and memory;
The processor is connected with memory, wherein for storing program code, the processor is used for the memory Said program code is called, to execute such as the method in the embodiment of the present invention in one side.
On the other hand the embodiment of the present invention provides a kind of computer storage medium, the computer storage medium is stored with Computer program, the computer program include program instruction, and described program instructs when being executed by a processor, execute such as this hair Method in bright embodiment in one side.
After the present invention is implemented by obtaining content to be presented in map interface, acquisition is opened up in the visible area of equipment Show the full content of above-mentioned element to be presented, required target proportion ruler and center position, then with above-mentioned target proportion ruler And above-mentioned center position shows above-mentioned element to be presented in above-mentioned map interface, it can is shown in map with optimum field Element to be presented full content, avoid element to be presented and show incomplete situation in visible area, can be improved Map bandwagon effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of equipment interface schematic diagram of common map methods of exhibiting provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of map methods of exhibiting provided in an embodiment of the present invention;
Fig. 3 is a kind of equipment interface schematic diagram of map methods of exhibiting provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another map methods of exhibiting provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of determining interface center position provided in an embodiment of the present invention;
Fig. 6 is the equipment interface schematic diagram of another map methods of exhibiting provided in an embodiment of the present invention;
Fig. 7 is the flow diagram of another map methods of exhibiting provided in an embodiment of the present invention;
Fig. 8 is the equipment interface schematic diagram of another map methods of exhibiting provided in an embodiment of the present invention;
Fig. 9 is the flow diagram of another map methods of exhibiting provided in an embodiment of the present invention;
Figure 10 is the equipment interface schematic diagram of another map methods of exhibiting provided in an embodiment of the present invention;
Figure 11 is the equipment interface schematic diagram of another map methods of exhibiting provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of another terminal device provided in an embodiment of the present invention.
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.
Term " includes " in description and claims of this specification and above-mentioned attached drawing and " having " and they appoint What is deformed, it is intended that is covered and non-exclusive is included.Such as contain the process, method, system, production of series of steps or module Product or equipment are not limited to listed step or module, but optionally further comprising the step of not listing or module, or Optionally further comprising other steps or module intrinsic for these process, methods, product or equipment.
It is also understood that the term used in this description of the invention be for for the purpose of describing particular embodiments and It is not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless context Other situations are clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.Such as It is such used in this specification and in the appended claims, term " if " can be interpreted according to context " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if Detect [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to determination " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, equipment described in the embodiment of the present invention, it can be understood as terminal device, the terminal device packet Include but be not limited to mobile phone such as with touch sensitive surface (for example, touch-screen display and/or touch tablet), on knee Other portable devices of computer or tablet computer etc.It is to be further understood that in certain embodiments, the equipment Not portable communication device, but the desk-top meter with touch sensitive surface (for example, touch-screen display and/or touch tablet) Calculation machine.
In following discussion, the terminal device including display and touch sensitive surface is described.However, should manage Solution, terminal device may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Terminal device can support various application programs, such as one of the following or multiple: drawing application program, demonstration are answered Application program, disk imprinting application program, spreadsheet applications, game are created with program, word-processing application, website Application program, telephony application, videoconference application, email application, instant messaging applications, It takes exercise and supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing Application program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on the terminal device Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal device on surface.In this way, the public physics frame of terminal device Structure (for example, touch sensitive surface) can be supported various using journey with user interface intuitive and transparent for a user Sequence.
It referring to Figure 1, is a kind of schematic diagram of a scenario of common map methods of exhibiting provided in an embodiment of the present invention.In Fig. 1 Terminal device be mobile phone, as example, user can be opened from terminal device map or title map class application software, ground Figure can be shown in the visible area of terminal device.
Visible area mentioned in the present invention can be regarded as all or part of display area of the display screen of terminal device;Ground Figure can be shown in the visible area of terminal device, refer to that map may be displayed on the entire display screen of the terminal device In, it also may be displayed on the partial region of the display screen of the terminal device, at this time can also include other areas in display screen area Domain (can be used for showing other information), it can be understood as, above-mentioned map can with window form the terminal device display screen On be shown, to sum up, above-mentioned visible area be terminal device display screen in actual map display area.For example, As shown in Figure 1, the display screen area c of terminal device includes visible area c2 and region c1, map denotation is in the terminal device Display screen area c visible area c2 in, visible area c2 is above-mentioned map display area, and region c1 is shown pair The navigation that route is marked in map indicates information.Due to only accounting for showing the coordinate points of element, in water droplet packetized elementary b mark Position, title and the callout box a of address for prompting the position show incomplete, some has exceeded visible area c2, only It can see partial address --- " shallow lake area Haidian street 38 ", also, the arrow m on the right side of the visible area c2 of terminal device is not yet Display completely, is influenced user and is carried out checking the functions such as address, navigation routine using map, it can be seen that, general map is shown The bandwagon effect of method to map is bad.
Further, Fig. 2 is referred to, is a kind of flow diagram of map methods of exhibiting provided in an embodiment of the present invention. As shown in Fig. 2, the method may include:
Step S101, obtains element to be presented, and above-mentioned element to be presented is content to be presented in map interface;
Wherein, above equipment can be sets including mobile phone, tablet computer, laptop, palm PC, mobile Internet Standby (mobile internet device, MID), point of sale (point of sales, POS) machine, wearable device (such as intelligence Can wrist-watch, Intelligent bracelet etc.) terminal device.
Specifically, generally the map shown in map class application includes map interface and displaying element, above-mentioned map circle Face can be understood as map base map, refer to the basic map of no mark, and optionally, above-mentioned map base map can store above-mentioned In equipment, i.e., user can select somewhere (such as: Sichuan Province or Beijing) in the case where above equipment connects network Map cached, when above equipment is in off-line state, still available above-mentioned map base map.Show what element referred to It is the content shown in above-mentioned map interface, and above-mentioned element to be presented refers to preparation content shown in map interface, it can It is the element mark for needing to show on map interface to be interpreted as mark element to be presented, it may include: line segment mark and seat Punctuate mark;Line segment mark is often applied in navigation feature, and equipment can mark above-mentioned line based on map interface on it Segment mark note, prompts programme path, to guide user to travel according to above-mentioned programme path;Coordinate points are labeled as on map to presence The mark that the coordinate points position of building carries out, can specifically be shown as the label symbol of the shapes such as arrow, circle, polygon, Or the callout box of the information such as title and/or address for prompting the position of point element mark, usually marked with above-mentioned line segment It shows simultaneously.For example, water droplet packetized elementary a as shown in figure 1 and arrow m, the callout box b comprising text, can range Above-mentioned coordinate points mark;In map shown in Fig. 1, from the coordinate position of water droplet packetized elementary a meaning to the coordinate of arrow m meaning Position, has marked a planning path, which can be understood as above-mentioned line segment mark.
After user opens above-mentioned map class application, equipment can load map interface from map office, wherein map office can To be stored in the local file of terminal device, needing to show can directly search in local file when map and obtain map Information;Also it can store in server beyond the clouds, need to show to access when map by network and cloud server and obtain map Information.The equipment can determine present position coordinate according to equipment location information, and then obtain above-mentioned element to be presented, Huo Zhegen According to the selection operation (such as geographical location of user's input) of user, above-mentioned element to be presented is obtained.
Step S102 obtains the full content that above-mentioned element to be presented is shown in the visible area of equipment, required mesh Mark scale bar and center position;
Specifically, equipment is needed to be determined how will be above-mentioned to be presented in above-mentioned visible area after obtaining element to be presented Element completely shows that due to different above-mentioned visible area sizes, different scale bars etc., above-mentioned element to be presented is upper It states in different positions in map interface, the size of above-mentioned element to be presented is also different, therefore will appear different map exhibitions Show effect.Need to obtain above-mentioned target proportion ruler and above-mentioned center position, to carry out map displaying.
The equipment can determine present position coordinate according to location information, or operate according to the user's choice (such as with The geographical location of family input), primarily determine the map interface that needs are shown.The positioning of terminal device is it is to be understood that pass through spy Fixed location technology obtains the location information (latitude and longitude coordinates) of terminal device, is marked on the electronic map by positioning object The technology or service of position.In general, one is fixed based on the whole world there are two types of the location technologies of mobile terminal (such as mobile phone) The positioning of position system (Global Positioning System, GPS), one is the positioning of the base station based on mobile operation network. Positioning method based on GPS be using the GPS positioning module on mobile terminal by self-position signal be sent to positioning backstage come Realize positioning.Base station location is then the measuring and calculating using base station at a distance from mobile terminal to determine the position of mobile terminal.The latter Mobile terminal is not needed with GPS positioning ability, but its estimation precision depends greatly on distribution and the covering model of base station The size enclosed;The former positioning accuracy is higher.In addition there are existed using Wireless Fidelity (WIreless-Fidelity, Wi-Fi) technology A small range positioning method.Wi-Fi is a kind of technology for allowing electronic equipment to be connected to a WLAN (WLAN), connection It is usually to have cryptoguard, but can also be open to WLAN, allows for any setting within the scope of WLAN in this way Standby access network.
Map is shown in the visible area of equipment, which needs to obtain required scale bar and map center Point.Scale bar mentioned in the present invention indicates the ratio between the physical length for scheming the length line segment corresponding to ground of a upper line segment, root The distance of the corresponding practical point-to-point transmission of any two points on the diagram can be calculated according to scale bar.Above-mentioned map center point, Ke Yili When solution is shows map in the visible area of equipment, the central point of above-mentioned map display area.Center, literal interpretation can be With the equidistant position of surrounding, such as the round center of circle, but the center of so standard sometimes can not find, such as in rectangle, Above-mentioned central point then can be understood as two cornerwise intersection points of rectangle.For example, if map interface equipment entire display Screen shows that map display area is display screen area, and display screen is rectangle in region, then the cornerwise intersection point of the rectangle is (aobvious Display screen central point) it is above-mentioned map center point;If partial region of the map displaying in above-mentioned visible area, in above-mentioned map The central point of heart point partial region (map display area) thus.It is that above-mentioned display screen area is with above-mentioned map display area Example, before showing map, determine above-mentioned map center point, then equipment displaying map when, can by map center point with it is above-mentioned Display screen central point is overlapped, and is come to map interface and is shown, then map and the relative position of above-mentioned display screen area are determined, The zoom of map can be determined by scale bar at this time, and map center point is constant.It can be seen that by aforementioned proportion ruler with it is upper Map center point is stated, the map content shown in the above-mentioned visible area of above equipment can be uniquely determined.
Above-mentioned target proportion ruler refers to showing the full content of above-mentioned element to be presented in above-mentioned visible area When, required scale bar;Above-mentioned center position refers to showing the full content of above-mentioned element to be presented above-mentioned visual When in region, required above-mentioned map center point.By above-mentioned target proportion ruler and above-mentioned center position, can uniquely determine The map shown in the visible area of equipment, and in the map shown at this time include above-mentioned element to be presented full content, Can completely show all elements to be presented, equipment obtain above-mentioned required target proportion ruler and center position it Afterwards, step S103 can be executed.
Step S103, it is above-mentioned wait open up in the displaying of above-mentioned map interface with above-mentioned target proportion ruler and above-mentioned center position Show element.
Specifically, equipment obtains the full content that the element to be presented is shown in the visible area of equipment, it is required After target proportion ruler and center position, which can show ground with above-mentioned target proportion ruler and above-mentioned center position Scheme, include the full content of above-mentioned element to be presented in map interface at this time, is not in element to be presented above-mentioned visual Infull situation is shown in region.
Fig. 3 is referred to, is a kind of interface schematic diagram of map methods of exhibiting provided in an embodiment of the present invention.As shown in figure 3, The content shown in the display screen area c ' of terminal device includes visible area c2 ' (map display area) and region c1 ', In, the center position z of map is overlapped with the central point of visible area c2 ', to determine map interface location, above-mentioned visible area Callout box a ' and the arrow m shown in c2 ' can completely be shown in the c2 ' of visible area, pass through above-mentioned display interface, Yong Huke Clearly to obtain marked content, compared with map shown in FIG. 1, the address information in callout box a ' can be completely shown " Haidian Street, Haidian District, Beijing City 38 ", improves map bandwagon effect.
The embodiment of the present invention is in be presented in map interface by obtaining element to be presented, above-mentioned element to be presented Hold;Obtain and show the full content of above-mentioned element to be presented in the visible area of equipment, required target proportion ruler and in Heart point position;It is shown with above-mentioned target proportion ruler and center position and shows above-mentioned element to be presented in above-mentioned map interface. It can be seen that the full content of above-mentioned element to be presented is shown in the visible area of equipment by obtaining, to calculate mesh Scale bar and center position are marked, member to be presented is shown in above-mentioned map interface with above-mentioned scale bar and center position Element can be shown the full content of the element to be presented in map with optimum field, avoid element to be presented in visible area The interior incomplete situation of display, can be improved map bandwagon effect.
Further, Fig. 4 is referred to, is the process signal of another map methods of exhibiting provided in an embodiment of the present invention Figure.As shown in figure 4, the method can include:
Step S201, obtains element to be presented, and above-mentioned element to be presented is content to be presented in map interface;
The step of step S202 and step S203 is the specific descriptions to step S102 in embodiment corresponding to above-mentioned Fig. 2, It may include steps of:
Step S202, using the central point of the peripheral rectangle of above-mentioned element to be presented as above-mentioned center position;
Specifically, the peripheral rectangle of above-mentioned element to be presented can be obtained after equipment obtains above-mentioned element to be presented, into And using the central point of the peripheral rectangle of above-mentioned element to be presented as above-mentioned center position, above-mentioned periphery rectangle can be understood as The rectangle that the equal frame of full content of above-mentioned element to be presented is entered, the periphery rectangle can not show in above-mentioned map interface, Using the periphery rectangle as boundary line, equipment can integrally consider all elements to be presented, with the display of the above-mentioned element to be presented of determination Position is convenient for judging whether to show the full content of above-mentioned element to be presented in above-mentioned visible area.
Specifically may refer to a kind of interface schematic diagram of map methods of exhibiting shown in fig. 5, as shown in figure 5, it is therein to Show that element includes: mark a ', mark b ', mark m ' and mark n ', the peripheral rectangle of above-mentioned element to be presented is figure acceptance of the bid Peripheral rectangle Q out, is shown using the central point y of peripheral rectangle Q as above-mentioned center position z.It can be seen that making periphery Rectangle Q can guarantee the full content of above-mentioned element to be presented in above-mentioned visible area in above-mentioned visible area.
Step S203 adjusts scale bar, makes the peripheral rectangle of above-mentioned element to be presented in above-mentioned visible area, will adjust Obtained scale bar is as above-mentioned target proportion ruler;
Specifically, using the central point of the peripheral rectangle of above-mentioned element to be presented as above-mentioned center position after, in order to Completely show that above-mentioned element to be presented, the adjustable scale bar of equipment make above-mentioned element to be presented in above-mentioned visible area Peripheral rectangle in above-mentioned visible area, will the obtained scale bar of adjustment as above-mentioned target proportion ruler.Above-mentioned adjustment ratio Ruler can use traversal, and the scale bar by traversing map find above-mentioned target proportion ruler, can be by when executing above-mentioned traversal It is carried out according to the mode gradually successively decreased from maximum ratio ruler.For example, as shown in fig. 6, the terminal device display screen area In, peripheral rectangle Q2 is not in the c2 ' of visible area, and the adjustable scale bar of terminal device, finding makes peripheral rectangle Q2 visual In the c2 ' of region (it is at this time the target proportion ruler of peripheral rectangle Q1), it can be with above-mentioned target proportion ruler and peripheral rectangle Q2 Central point carries out map displaying as map center point.
Map is shown using above-mentioned target proportion ruler, above-mentioned peripheral rectangle can be completely contained in above-mentioned visible area In domain, although the actual displayed in above-mentioned visible area, the periphery rectangle do not include above-mentioned to be presented above-mentioned periphery rectangle The full content of element can be shown in above-mentioned visible area.
Step S204, it is above-mentioned wait open up in the displaying of above-mentioned map interface with above-mentioned target proportion ruler and above-mentioned center position Show element.
Wherein, step S201 and step S204 can be respectively referring to step S101 in above-mentioned embodiment shown in Fig. 2 and step The specific descriptions of rapid S103, do not repeat no more herein.
The embodiment of the present invention is by making above-mentioned peripheral rectangle in above-mentioned visible area, it can so that above-mentioned member to be presented The full content of element is in above-mentioned visible area.After using scale bar adjusted as above-mentioned target proportion ruler, equipment can be with Above-mentioned element to be presented is shown in above-mentioned map interface with above-mentioned target proportion ruler and above-mentioned center position, completely to open up The full content for showing above-mentioned element to be presented is not in that element to be presented shows infull situation in above-mentioned visible area, Improve map bandwagon effect.
Further, Fig. 7 is referred to, is the process signal of another map methods of exhibiting provided in an embodiment of the present invention Figure.As shown in fig. 7, the method can include:
Step S301, obtains element to be presented, and above-mentioned element to be presented is content to be presented in map interface;
Step S302, using the central point of the peripheral rectangle of above-mentioned element to be presented as above-mentioned center position;
The step of step S303 is the specific descriptions to step S203 in embodiment corresponding to above-mentioned Fig. 2, may include as Lower step:
Step S303, calculates the peripheral rectangle of above-mentioned element to be presented under above-mentioned map interface maximum ratio ruler, in judgement Peripheral rectangle is stated whether in above-mentioned visible area;
Specifically, using the central point of the peripheral rectangle of above-mentioned element to be presented as above-mentioned center position after, in order to Above-mentioned element to be presented is completely shown in above-mentioned visible area, equipment can calculate under above-mentioned map interface maximum ratio ruler The peripheral rectangle of above-mentioned element to be presented, above-mentioned maximum ratio ruler are that the equipment shows maximum ratio in scale bar used in map Example ruler.
Specifically, equipment calculates the peripheral rectangle of above-mentioned element to be presented under above-mentioned map interface maximum ratio ruler, can be with The length and width of above-mentioned peripheral rectangle are obtained, further, equipment can more above-mentioned peripheral rectangle and above-mentioned visible area Range, it can the wide width for whether being greater than above-mentioned visible area of more above-mentioned periphery rectangle, the height of above-mentioned periphery rectangle are The no height greater than above-mentioned visible area, it should be noted that the length of above-mentioned periphery rectangle and the length of above-mentioned visible area refer to Both be the same side side length, that is, the length on the one side being parallel to each other, likewise, the width of above-mentioned periphery rectangle and it is above-mentioned can The width of viewed area is also referred to as the side length of the two the same side, that is, the length on the one side being parallel to each other.
If the length of above-mentioned periphery rectangle is greater than the length of above-mentioned visible area or the width of above-mentioned peripheral rectangle is greater than The width of above-mentioned visible area, then step S304 can be performed not in above-mentioned visible area in above-mentioned peripheral rectangle;If above-mentioned periphery The length of rectangle is less than or equal to the length of above-mentioned visible area, alternatively, the width of above-mentioned periphery rectangle is less than or equal to The width of above-mentioned visible area, then above-mentioned peripheral rectangle does not execute step S304, scale bar at this time in above-mentioned visible area It can be used as above-mentioned target proportion ruler.
Step S304 reduces aforementioned proportion ruler;
Above-mentioned contraction scale exactly reduces the range of above-mentioned peripheral rectangle, makes above-mentioned peripheral rectangle upper to reach State the effect in visible area.If the length of above-mentioned periphery rectangle is greater than the length of above-mentioned visible area or above-mentioned peripheral rectangle Width be greater than the width of above-mentioned visible area, then above-mentioned peripheral rectangle is not in above-mentioned visible area, therefore equipment can contract Small aforementioned proportion ruler, so that above-mentioned periphery rectangle is in above-mentioned visible area.
Optionally, above-mentioned contraction scale includes: the amount for gradually decreasing contraction scale.Equipment calculates above-mentioned map interface It is above-mentioned outer due to maximum ratio ruler is larger under maximum ratio ruler in the case where the peripheral rectangle of above-mentioned element to be presented (the high in other words or wide) meeting of area for enclosing rectangle is more much larger than the area (high in other words or wide) of above-mentioned visible area, Above-mentioned periphery rectangle cannot show completely not in above-mentioned visible area, then need contraction scale;Equipment can repeatedly reduce Aforementioned proportion ruler, until with above-mentioned peripheral rectangle in above-mentioned visible area, due to becoming closer to just during diminution By the situation that above-mentioned peripheral rectangle includes in above-mentioned visible area, equipment can gradually subtract during contraction scale The amount of few contraction scale, i.e., the amount of each contraction scale are less than the amount of last contraction scale, for example, scale bar a1 by During tapered as low as scale bar a5, the value of scale bar a1-a5 is successively are as follows: 1/20,1/100,1/350,1/700,1/ 900, wherein the amount of each contraction scale is the difference of two neighboring scale bar, and the difference of above-mentioned two neighboring scale bar is gradually It is lesser, i.e. equipment amount that contraction scale is gradually decreased during contraction scale.
If the length of above-mentioned periphery rectangle is less than or equal to the length of above-mentioned visible area, alternatively, above-mentioned periphery rectangle Width be less than or equal to the width of above-mentioned visible area, then above-mentioned peripheral rectangle no longer contracts in above-mentioned visible area Small scale, step S305.
Whether step S305 judges the peripheral rectangle obtained after contraction scale in above-mentioned visible area;
Specifically, after reducing aforementioned proportion ruler every time, equipment may determine that the peripheral square obtained after contraction scale Shape may refer to the specific descriptions in above-mentioned steps S303, details are not described herein again whether in above-mentioned visible area.If drawdown ratio The peripheral rectangle that obtains executes step S304 still not in above-mentioned visible area again after example ruler, it is to be understood that can be with It is repeated several times and executes step S304 and step S305, the peripheral rectangle obtained after contraction scale is in above-mentioned visible area It is interior, then follow the steps S306.
Step S306, using the scale bar after diminution as above-mentioned target proportion ruler, with above-mentioned target proportion ruler and above-mentioned Center position shows above-mentioned element to be presented in above-mentioned map interface.
For example, as shown in fig. 6, in the display screen area of the terminal device, peripheral rectangle Q2 is not in visible area In c2 ', terminal device can reduce aforementioned proportion ruler, until peripheral rectangle Q2 (is at this time peripheral rectangle in the c2 ' of visible area Q1), at this point, the scale bar after reducing is as above-mentioned target proportion ruler.Specifically, using the central point of peripheral rectangle Q2 as map When central point carries out map displaying, the high H of the high H2 and visible area c2 ' of the available peripheral rectangle Q2 of terminal device are compared Compared with, and obtain the wide L of the wide L2 and visible area c2 ' of peripheral rectangle Q2 and be compared, H2 can be obtained and be less than in H2, L2 greater than L, The wide L2 of i.e. peripheral rectangle Q2 has exceeded the wide L of visible area c2 ', it can be understood as peripheral rectangle Q2 has exceeded visible area The range of c2 ', i.e. terminal device can reduce aforementioned proportion ruler, until L2 again smaller than or be equal to L, such as be reduced into peripheral square The wide L1 of shape Q1, peripheral rectangle Q1 are less than the wide L of visible area c2 ', and the high H1 of peripheral rectangle Q1 is less than the height of visible area c2 ' H, then no longer contraction scale, scale bar at this time can be used as the target proportion ruler of map displaying.
In a kind of optional embodiment, with above-mentioned target proportion ruler and above-mentioned center position in above-mentioned map It, can be the following steps are included: if above-mentioned periphery rectangle be in above-mentioned visible area before the above-mentioned element to be presented of showing interface Then magni-scale, and the amount of the scale bar amplified is less than the amount of reduced scale;Using amplified scale bar as above-mentioned Target proportion ruler shows above-mentioned member to be presented in above-mentioned map interface with above-mentioned target proportion ruler and above-mentioned center position Element.
When equipment is adjusted by contraction scale, if above-mentioned periphery rectangle is in above-mentioned visible area, equipment can Ruler in an enlarged scale, and the amount of the scale bar amplified is less than the amount of reduced scale, since contraction scale makes above-mentioned periphery Rectangle can be shown in after above-mentioned visible area, it is possible that the back gauge on the side of above-mentioned periphery rectangle and above-mentioned visible area From farther out the case where, i.e. aforementioned proportion ruler is too small, it is above-mentioned periphery rectangle it is also smaller in above-mentioned visible area, bandwagon effect is not It is good.Specifically, in the case where putting position centered on the central point of above-mentioned peripheral rectangle, the available first distance of equipment with Second distance, the width that above-mentioned first distance is equal to visible area subtract the half of the wide value of peripheral rectangle, above-mentioned second distance Half equal to the high value that the height of visible area subtracts peripheral rectangle (if gained is negative value, represents the periphery rectangle not upper State in visible area, it is contemplated herein that the case where gained is positive value), difference L4 and L3 as shown in Figure 7;Equipment can be with above-mentioned First distance, as reference, amplifies aforementioned proportion ruler with the smallest one in above-mentioned second distance.Specifically, if it is above-mentioned First distance is less than above-mentioned second distance, and equipment may determine that whether above-mentioned first distance is greater than first distance threshold value, if more than, Equipment can amplify aforementioned proportion ruler, and the amount of above-mentioned magni-scale is less than the amount of last time reduced scale;If Above-mentioned second distance is less than above-mentioned first distance, and equipment may determine that whether above-mentioned second distance is greater than second distance threshold value, if It is greater than, equipment can amplify aforementioned proportion ruler, and the amount of above-mentioned magni-scale is less than last time reduced scale Amount, by the above method can guarantee above-mentioned peripheral rectangle still can in above-mentioned visible area, while make above-mentioned peripheral rectangle with Suitable size is shown;Wherein, above-mentioned first distance threshold value is greater than 0 and is less than the wide half of above-mentioned visible area, on Second distance threshold value is stated greater than 0 and is less than the high half of above-mentioned visible area.Above-mentioned first distance threshold value with above-mentioned second away from It can be configured, take the mobile phone as an example in advance from threshold value, since the display screen of mobile phone is wide relatively high relatively narrow, usually be examined with width Consider, then user can be configured above-mentioned first distance threshold value and above-mentioned second distance threshold value, and first distance threshold value is less than the Two distance thresholds.For example, by taking Fig. 8 as an example, the peripheral rectangle Q1 in Fig. 8 is after peripheral rectangle Q2 shown in Fig. 6 reduces It obtains, due to contraction scale, so that above-mentioned periphery rectangle Q1 is shown in after the c2 ' of visible area, the side peripheral rectangle Q1 With the side (length of L3 and L4) of visible area c2 ' distance farther out, i.e., since scale bar at this time is too small, above-mentioned periphery rectangle Q1 is also smaller in above-mentioned visible area c2 ', and bandwagon effect is bad, and user possibly can not see content therein, therefore equipment clearly Aforementioned proportion ruler can be amplified, to adjust the size of peripheral rectangle Q1,.
Due to being less than L3 with the back gauge L4 of visible area c2 ', terminal device judges that L4 is less than above-mentioned first distance threshold value, then Magni-scale, and the amount of above-mentioned magni-scale is less than the amount of last time reduced scale, by above-mentioned amplification ratio After example ruler, peripheral rectangle Q1 is enlarged into above-mentioned peripheral rectangle Q3, it can be seen that, above-mentioned periphery rectangle Q3 still can be above-mentioned visual In region, while it is shown above-mentioned peripheral rectangle with suitable size, map bandwagon effect is more.
By the above method, after executing step S305, the amplification ratio if above-mentioned peripheral rectangle is in above-mentioned visible area Example ruler, and the amount of the scale bar amplified is less than the amount of reduced scale;Using amplified scale bar as above-mentioned target proportion Ruler shows above-mentioned element to be presented in above-mentioned map interface with above-mentioned target proportion ruler and above-mentioned center position, it is ensured that Above-mentioned periphery rectangle still can be in above-mentioned visible area, while is shown above-mentioned peripheral rectangle with suitable size.
Optionally, above-mentioned steps S302 can before step S306 whenever execution.
Map is shown using above-mentioned target proportion ruler, above-mentioned peripheral rectangle can be completely contained in above-mentioned visible area In domain, although the actual displayed in above-mentioned visible area, the periphery rectangle do not include above-mentioned to be presented above-mentioned periphery rectangle The full content of element can be shown in above-mentioned visible area.
Wherein, step S301, step 302 and step S306 can be respectively referring to steps in above-mentioned embodiment shown in Fig. 4 The specific descriptions of S201, step S201 and step S204, do not repeat no more herein.
Above by the amount for gradually decreasing contraction scale, contraction scale, until above-mentioned peripheral rectangle is above-mentioned visual In region, above-mentioned target proportion ruler can get;Also, due to being the amount for gradually decreasing contraction scale, the variation of scale bar is got over It is next smaller, until making above-mentioned peripheral rectangle within above-mentioned visible area, " shake " in this manner, it is possible to reduce calculate consumption When, and the full content of above-mentioned element to be presented can be shown to the above-mentioned visible area in equipment using above-mentioned target proportion ruler It in domain, and is shown with relatively suitable size, improves map bandwagon effect.
The peripheral rectangle of above-mentioned element to be presented judges above-mentioned peripheral rectangle not in above-mentioned visible area, if above-mentioned outer Rectangle is enclosed not in above-mentioned visible area, then contraction scale, until above-mentioned peripheral rectangle is in above-mentioned visible area, can get Above-mentioned target proportion ruler, it is above-mentioned to be presented in the displaying of above-mentioned map interface with above-mentioned target proportion ruler and above-mentioned center position Element can completely show the full content of above-mentioned element to be presented, be not in element to be presented in above-mentioned visible area It shows infull situation, improves map bandwagon effect.
Further, Fig. 9 is referred to, is the process signal of another map methods of exhibiting provided in an embodiment of the present invention Figure, is obtained on the basis of Fig. 4 the embodiment described, as shown in figure 9, the method may include following steps:
Step S401, obtains element to be presented, and above-mentioned element to be presented is content to be presented in map interface;
Step S402 is obtained and is shown the full content of above-mentioned element to be presented in the visible area of equipment, it is required in Heart point position;
Step S403 obtains extension distance value;Above-mentioned extension distance value is, in the case where reference scale bar, it is above-mentioned to Show the difference of the width or height in the peripheral rectangle and above-mentioned element to be presented of element between the peripheral rectangle of point element;
Specifically, point element can be the coordinate points in Fig. 1 on map described in step S101 in above-mentioned element to be presented Element can specifically be shown as the label symbol of the shapes such as arrow, circle, polygon, but should be noted that point element indicates Be above-mentioned label symbol coordinate points, non-above-mentioned label symbol ontology, for example, above-mentioned line segment mark with above-mentioned coordinate points mark Corresponding coordinate points.The peripheral rectangle of point element in above-mentioned element to be presented, refers in the whole of above-mentioned element to be presented Rong Zhong, by the rectangle that wherein all point element frames enter, for example, as shown in Figure 10, peripheral rectangle Q4 is element to be presented (b ', m ' And route mark n ') in point element peripheral rectangle, be according to the coordinate points of element b ' to be presented, m ' and n ' determine, Because its middle conductor mark n ' also is understood as the line segment of multiple coordinate points compositions;As it can be seen that if only considering, above-mentioned point element is formed Peripheral rectangle Q4, actually the full content of element to be presented (a ', b ', m ' and n ') is not included, i.e., cannot be made The full content (a ', b ', m ' and n ') of above-mentioned element to be presented is in the c3 of visible area.
Wherein, above-mentioned can be completely to show needed for the peripheral rectangle of point element in above-mentioned element to be presented with reference to scale bar Scale bar, in the prior art, the adjustable scale bar of equipment makes the peripheral rectangle of point element in above-mentioned element to be presented exist In above-mentioned visible area, the scale bar obtained in the case is above-mentioned with reference to scale bar.It is to be understood that stating ginseng in use In the case where examining scale bar displaying map, in the biggish situation of element to be presented, the periphery of above-mentioned element to be presented cannot be made Rectangle cannot completely show the full content of above-mentioned element to be presented in above-mentioned visible area in above-mentioned visible area.
Further, equipment can obtain extension distance value, and above-mentioned extension distance value is, in the above-mentioned feelings with reference to scale bar Width or height under condition, in the peripheral rectangle of above-mentioned element to be presented and above-mentioned element to be presented between the peripheral rectangle of point element The difference of degree.
Can be found in a kind of interface schematic diagram of map methods of exhibiting as shown in figure 11, in figure periphery rectangle Q4 for it is above-mentioned to Show that the peripheral rectangle of point element in element, peripheral rectangle Q5 are the peripheral rectangle of above-mentioned element to be presented;As shown in Figure 10, exist In common technology, terminal device can quickly determine the peripheral rectangle (i.e. periphery rectangle Q4) of point element in element to be presented, Proper ratio ruler of the peripheral rectangle Q4 in the c3 of visible area of sening as an envoy to is calculated, which is above-mentioned with reference to scale bar, but is made The reference scale bar obtained with this method cannot be guaranteed that the peripheral rectangle Q4 of above-mentioned element to be presented in above-mentioned visible area, is opened up Show that effect may refer to above-mentioned Figure 10.Further, terminal device with it is above-mentioned show map with reference to scale bar in the case where, can be with Obtain above-mentioned outer distance value, i.e. difference s1, s2 of width between periphery rectangle Q4 and peripheral rectangle Q5 or the difference of height s3。
Step S404 refers to scale bar and above-mentioned extension distance value according to above-mentioned, calculates target proportion ruler;
Specifically, above-mentioned target proportion ruler, refers to showing the full content of above-mentioned element to be presented above-mentioned visual When in region, required scale bar.Equipment can calculate on the basis of above-mentioned reference scale bar, increase above-mentioned extension distance value institute Need reduced scale value;Above-mentioned target proportion ruler is obtained with reference to scale compression aforementioned proportion value by above-mentioned.Wherein, aforementioned proportion The effect of value is to reduce above-mentioned with reference to scale compression according to aforementioned proportion value, obtain above-mentioned target proportion ruler.
In step S402, if showing map with reference to scale bar with above-mentioned, above-mentioned extension distance value is above-mentioned to be presented The peripheral rectangle of element is beyond the distance value outside visible area.The width of peripheral rectangle in above-mentioned element to be presented is plus above-mentioned outer Prolong distance value.It is to be understood that the width of the peripheral rectangle of point element is plus above-mentioned extension distance value etc. in above-mentioned element to be presented In the width of the peripheral rectangle of above-mentioned element to be presented, alternatively, the height of the peripheral rectangle of point element adds in above-mentioned element to be presented The high terminal that above-mentioned extension distance value is equal to the peripheral rectangle of above-mentioned element to be presented can be according to the outer of above-mentioned element to be presented The height of rectangle is enclosed, equipment can be calculated according to above method, such as obtain the width of the peripheral rectangle of above-mentioned element to be presented, Further, if on the basis of above-mentioned reference scale bar, being wider than for the peripheral rectangle of above-mentioned element to be presented is above-mentioned visual The width in region, then equipment in above-mentioned visible area it can be calculated that increase the required contracting that above-mentioned extension distance value is shown Small ratio value, above-mentioned required reduced scale value, further, equipment can refer to scale compression aforementioned proportion for above-mentioned Value, to obtain above-mentioned target proportion ruler, is shown using obtained aforementioned proportion value, can make above-mentioned element to be presented Peripheral rectangle is in above-mentioned visible area, it can the complete whole element to be presented shown in map.Specifically, aforementioned proportion Value can be the positive number less than 1, and equipment can be multiplied above-mentioned with reference to scale bar with aforementioned proportion value, above-mentioned after being reduced Target proportion ruler.
It is above-mentioned illustrated with Figure 11 on the basis of, continue to illustrate, the map bandwagon effect in Figure 11 in the c3 of visible area can To regard the interface schematic diagram for executing and obtaining after above-mentioned steps S303 as.By taking above-mentioned outer distance value is the difference of width as an example, Terminal device can obtain the width of peripheral rectangle Q4, and obtain extension distance value (peripheral rectangle Q4 and peripheral rectangle Q5 it Between width difference s1, s2), terminal device to make the peripheral rectangle Q5 of element to be presented (a ', b ', n ', m ') it is above-mentioned can In viewed area c3, terminal device can be calculated according to above-mentioned reference scale bar and extension distance value s1, s2 in peripheral rectangle Q4 Width on the basis of increase s1, s2 (width of i.e. peripheral rectangle Q5) and shown, the amount (ratio reduced needed for the map Value), then scale compression aforementioned proportion value is referred to by above-mentioned, so as to obtain above-mentioned target proportion ruler, such as: terminal device calculates Aforementioned proportion value is 3/4 out, and above-mentioned reference scale bar is 1:300, is multiplied, can obtain with aforementioned proportion value with reference to scale bar by above-mentioned Target proportion ruler is 1:400.Using target proportion ruler, as shown in figure 11, it can make peripheral rectangle Q5 in above-mentioned visible area It is interior, it can completely show the whole element to be presented in map, improve map bandwagon effect.
Step S405 shows above-mentioned member to be presented in above-mentioned map interface with above-mentioned scale bar and above-mentioned center position Element.
Wherein, the specific implementation process of step S401 and step S405 can be found in embodiment corresponding to above-mentioned Fig. 2 to step The description of rapid S101 and step S103, will not continue to repeat here.
The embodiment of the present invention is by obtaining extension distance value, and wherein extension distance value is, in the case where reference scale bar, The difference of width or height in the peripheral rectangle and element to be presented of element to be presented between the peripheral rectangle of point element;Foundation Above-mentioned to refer to scale bar and above-mentioned extension distance value, equipment can rapidly calculate above-mentioned target proportion ruler, and equipment passes through Target proportion ruler to map obtained by the above method is shown, can make the peripheral rectangle of above-mentioned element to be presented it is above-mentioned can In viewed area, it can quickly determine optimum field, completely show the whole element to be presented in map, improve map Bandwagon effect.
Further, referring to Figure 12, it is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention, such as schemes Shown in 12, which may include: that element obtains module 10, obtain module 20 and display module 30;
Element obtains module 10, and for obtaining element to be presented, above-mentioned element to be presented is to be presented in map interface Content;
Module 20 is obtained, for obtaining the full content for showing above-mentioned element to be presented in the visible area of equipment, institute The target proportion ruler and center position needed;
Display module 30, for being shown with above-mentioned target proportion ruler and above-mentioned center position in above-mentioned map interface exhibition Show above-mentioned element to be presented.
Wherein, above-mentioned element obtains module 10, and the concrete function implementation for obtaining module 20 and display module 30 can be with Referring to the step S101- step S103 in above-mentioned Fig. 2 corresponding embodiment, it is not discussed here.
Optionally, above-mentioned acquisition module 20 specifically can be used for the central point of the peripheral rectangle of above-mentioned element to be presented As above-mentioned middle line point position.
Optionally, above-mentioned acquisition module 20 includes adjustment unit 210, and above-mentioned adjustment unit 210 makes for adjusting scale bar The peripheral rectangle of above-mentioned element to be presented is in above-mentioned visible area, and the scale bar that adjustment is obtained is as above-mentioned target proportion Ruler.
Optionally, above-mentioned acquisition module 20 further includes computing unit 220;
Above-mentioned computing unit 220, for calculating the periphery of above-mentioned element to be presented under above-mentioned map interface maximum ratio ruler Rectangle;
Above-mentioned adjustment unit 210 is specifically used for, the range of more above-mentioned periphery rectangle and above-mentioned visible area, if above-mentioned outer Enclosing rectangle, then contraction scale will be reduced until above-mentioned peripheral rectangle is in above-mentioned visible area not in above-mentioned visible area Scale bar afterwards is as above-mentioned target proportion ruler.
Optionally, above-mentioned adjustment unit 210 is also used to, the magnification ratio if above-mentioned peripheral rectangle is in above-mentioned visible area Ruler, and the amount of the scale bar amplified is less than the amount of reduced scale.
Wherein, above-mentioned adjustment unit 210, it is corresponding that the concrete function implementation of computing unit 220 may refer to above-mentioned Fig. 4 The step S303 and step S304 in step S202 and step S203 or Fig. 7 corresponding embodiment in embodiment, here no longer It is repeated.
Optionally, above-mentioned acquisition module 20 is also used to, and obtains extension distance value;Above-mentioned extension distance value is, in reference ratio In the case where example ruler, in the peripheral rectangle of above-mentioned element to be presented and above-mentioned element to be presented between the peripheral rectangle of point element The difference of width or height;
Above-mentioned computing unit 220 is also used to, and is referred to scale bar and above-mentioned extension distance value according to above-mentioned, is calculated above-mentioned mesh Mark scale bar.
Above-mentioned computing unit 220 is particularly used in, and is calculated on the basis of above-mentioned reference scale bar, is increased above-mentioned extension distance Reduced scale value needed for being worth;Above-mentioned target proportion ruler is obtained with reference to scale compression aforementioned proportion value by above-mentioned.
Wherein, above-mentioned acquisition module 20, computing unit 220 concrete function implementation to may refer to above-mentioned Fig. 9 corresponding Step S403- step S404 in embodiment, is not discussed here.
After the present invention is implemented by obtaining content to be presented in map interface, acquisition is opened up in the visible area of equipment Show the full content of above-mentioned element to be presented, required target proportion ruler and center position, then with above-mentioned target proportion ruler And above-mentioned center position shows above-mentioned element to be presented in above-mentioned map interface, it can is shown in map with optimum field Element to be presented full content, avoid element to be presented and show incomplete situation in visible area, can be improved Map bandwagon effect.
Referring to Figure 13, it is the structural schematic diagram of another terminal device provided in an embodiment of the present invention.As shown in figure 13, The terminal device may include: one or more processors 1001;One or more input equipments 1002, one or more output Equipment 1003 and memory 1004.Above-mentioned processor 1001, input equipment 1002, output equipment 1003 and memory 1004 pass through Communication bus 1005 connects.For memory 1004 for storing computer program, above-mentioned computer program includes program instruction, In, processor 1001 is used to execute the program instruction of the storage of memory 1004.
Memory 1004 can be high speed RAM memory, be also possible to non-labile memory (non-volatile Memory), a for example, at least magnetic disk storage.Memory 1004 optionally can also be that at least one is located remotely from aforementioned place Manage the storage device of device 1001.And processor 1001 can be used for calling the equipment stored in memory 1004 control using journey Sequence, to realize:
Element to be presented is obtained, above-mentioned element to be presented is content to be presented in map interface;
Obtain and show the full content of above-mentioned element to be presented in the visible area of equipment, required target proportion ruler with And center position;
Above-mentioned element to be presented is shown in above-mentioned map interface with above-mentioned target proportion ruler and above-mentioned center position.
In one embodiment, above-mentioned processor 1001 is shown in the visible area of equipment above-mentioned in the above-mentioned acquisition of execution The full content of element to be presented when required center position, specifically executes following steps:
Using the central point of the peripheral rectangle of above-mentioned element to be presented as above-mentioned center position.
In one embodiment, above-mentioned processor 1001 is shown in the visible area of equipment above-mentioned in the above-mentioned acquisition of execution The full content of element to be presented when required target proportion ruler, specifically executes following steps:
Scale bar is adjusted, makes the peripheral rectangle of above-mentioned element to be presented in above-mentioned visible area, the ratio that adjustment is obtained Example ruler is as above-mentioned target proportion ruler.
In one embodiment, above-mentioned processor 1001 is executing above-mentioned adjustment scale bar, makes above-mentioned element to be presented Peripheral rectangle is in above-mentioned visible area, and for the scale bar that adjustment is obtained as when above-mentioned target proportion ruler, specific execution is following Step:
Calculate the peripheral rectangle of above-mentioned element to be presented under above-mentioned map interface maximum ratio ruler, more above-mentioned periphery rectangle With the range of above-mentioned visible area, the contraction scale if above-mentioned peripheral rectangle is not in above-mentioned visible area, until above-mentioned outer Rectangle is enclosed in above-mentioned visible area, using the scale bar after diminution as above-mentioned target proportion ruler.
Optionally, above-mentioned 1001 contraction scale of processor includes: that above-mentioned processor 1001 gradually decreases contraction scale Amount.
In one embodiment, above-mentioned processor 1001 also executes following steps:
The magni-scale if above-mentioned peripheral rectangle is in above-mentioned visible area, and the amount of the scale bar amplified is less than diminution Scale bar amount.
In one embodiment, above-mentioned processor 1001 is shown in the visible area of equipment above-mentioned in the above-mentioned acquisition of execution The full content of element to be presented when required target proportion ruler, specifically executes following steps:
Obtain extension distance value;Above-mentioned extension distance value is, in the case where reference scale bar, above-mentioned element to be presented The difference of width or height in peripheral rectangle and above-mentioned element to be presented between the peripheral rectangle of point element;
Scale bar and above-mentioned extension distance value are referred to according to above-mentioned, calculates above-mentioned target proportion ruler.
In one embodiment, above-mentioned processor 1001 is above-mentioned above-mentioned to be presented completely to show with reference to scale bar in execution Scale bar needed for the peripheral rectangle of point element in element, it is above-mentioned to refer to scale bar and above-mentioned extension distance value according to above-mentioned, When calculating above-mentioned target proportion ruler, following steps are specifically executed:
It calculates on the basis of above-mentioned reference scale bar, reduced scale value needed for increasing above-mentioned extension distance value;It will be above-mentioned Above-mentioned target proportion ruler is obtained with reference to scale compression aforementioned proportion value.
Above-mentioned processor 1001 can execute element in the corresponding terminal device of Figure 12 and obtain module 10, obtain module 20 Function;Above-mentioned output equipment 1003 can execute the function of display module 30 in the corresponding terminal device of Figure 12.
The embodiment of the present invention is in be presented in map interface by obtaining element to be presented, above-mentioned element to be presented Hold;Obtain and show the full content of above-mentioned element to be presented in the visible area of equipment, required target proportion ruler and in Heart point position;It is shown with above-mentioned target proportion ruler and center position and shows above-mentioned element to be presented in above-mentioned map interface. It can be seen that terminal device shows the full content of above-mentioned element to be presented by obtaining in the visible area of equipment, pass through Face data is handled, target proportion ruler and center position are calculated, is existed with above-mentioned scale bar and center position Above-mentioned map interface shows above-mentioned element to be presented, and terminal device can completely be shown to be presented in map with optimum field Element avoids element to be presented and shows incomplete situation in visible area, map bandwagon effect can be improved.
It should be appreciated that terminal device described in the embodiment of the present invention is executable, Fig. 2, Fig. 4, Fig. 7 and Fig. 9 are any above Description in a corresponding embodiment to above-mentioned map methods of exhibiting, also can be performed in embodiment corresponding to Figure 12 above to above-mentioned The description of terminal device, details are not described herein.In addition, being described to using the beneficial effect of same procedure, also no longer repeated.
In addition, it need to be noted that: the embodiment of the invention also provides a kind of computer storage medium, and above-mentioned meter Computer program is stored in calculation machine storage medium, and above-mentioned computer program includes program instruction, when above-mentioned processor executes When above procedure instructs, it is able to carry out in any one corresponding embodiment of Fig. 2, Fig. 4, Fig. 7 and Fig. 9 above and above-mentioned map is shown Therefore the description of method will be repeated no longer here.In addition, to using same procedure beneficial effect describe, also no longer into Row repeats.For undisclosed technical detail in computer storage medium embodiment according to the present invention, the present invention is please referred to The description of embodiment of the method.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, above-mentioned program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, above-mentioned storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..

Claims (10)

1. a kind of map methods of exhibiting characterized by comprising
Element to be presented is obtained, the element to be presented is content to be presented in map interface;
Obtain and show the full content of the element to be presented in the visible area of equipment, required target proportion ruler and in Heart point position;The center position is the position of the central point of the peripheral rectangle of the element to be presented;
The element to be presented is shown in the map interface with the target proportion ruler and the center position.
2. method according to claim 1, which is characterized in that the acquisition shows described wait open up in the visible area of equipment Show that the full content of element, required target proportion ruler include:
Scale bar is adjusted, makes the peripheral rectangle of the element to be presented in the visible area, the scale bar that adjustment is obtained As the target proportion ruler.
3. method according to claim 2, which is characterized in that the adjustment scale bar makes the periphery of the element to be presented In the visible area, will adjust obtained scale bar includes: rectangle as the target proportion ruler
Calculate the peripheral rectangle of the element to be presented under the map interface maximum ratio ruler, the periphery rectangle and institute State the range of visible area;
The contraction scale if the peripheral rectangle is not in the visible area, if the periphery rectangle is in the visible area Inside then magni-scale, and the amount of the scale bar amplified is less than the amount of reduced scale;
Until the peripheral rectangle is in the visible area, using the scale bar after diminution as the target proportion ruler.
4. method according to claim 1, which is characterized in that the acquisition shows described wait open up in the visible area of equipment Show that the full content of element, required target proportion ruler include:
Obtain extension distance value;The extension distance value is, in the case where reference scale bar, the periphery of the element to be presented The difference of width or height in rectangle and the element to be presented between the peripheral rectangle of point element;
Scale bar and the extension distance value are referred to according to described, calculates the target proportion ruler.
5. method according to claim 4, which is characterized in that the reference scale bar is completely to show the element to be presented Scale bar needed for the peripheral rectangle of middle point element, it is described to refer to scale bar and the extension distance value according to described, it calculates The target proportion ruler includes:
It calculates on the basis of the reference scale bar, reduced scale value needed for increasing the extension distance value;By the reference Ratio value described in scale compression obtains the target proportion ruler.
6. a kind of terminal device characterized by comprising
Element obtains module, and for obtaining element to be presented, the element to be presented is content to be presented in map interface;
Module is obtained, for obtaining the full content for showing the element to be presented in the visible area of equipment, required mesh Mark scale bar and center position;The center position is the position of the central point of the peripheral rectangle of the element to be presented It sets;
Display module, it is described wait open up in map interface displaying for being shown with the target proportion ruler and center position Show element.
7. terminal device according to claim 6, which is characterized in that the acquisition module includes adjustment unit, the tune Whole unit makes the peripheral rectangle of the element to be presented in the visible area, adjustment is obtained for adjusting scale bar Scale bar is as the target proportion ruler.
8. terminal device according to claim 7, which is characterized in that the acquisition module further includes computing unit;
The computing unit, for calculating the peripheral rectangle of the element to be presented under the map interface maximum ratio ruler;
The adjustment unit is specifically used for, the range of the periphery rectangle and the visible area, if the periphery rectangle The then contraction scale not in the visible area, the magni-scale if the peripheral rectangle is in the visible area, and The amount of the scale bar of amplification is less than the amount of reduced scale;Until the peripheral rectangle is in the visible area, will reduce Scale bar afterwards is as the target proportion ruler.
9. a kind of terminal device characterized by comprising processor and memory;
The processor is connected with memory, wherein the memory is for storing program code, and the processor is for calling Said program code, to execute the method according to claim 1 to 5.
10. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with computer program, described Computer program includes program instruction, and described program is instructed when being executed by a processor, executed such as any one of claim 1-5 institute The method stated.
CN201810336443.6A 2018-04-11 2018-04-11 Map display method and terminal equipment Active CN110362242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810336443.6A CN110362242B (en) 2018-04-11 2018-04-11 Map display method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810336443.6A CN110362242B (en) 2018-04-11 2018-04-11 Map display method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110362242A true CN110362242A (en) 2019-10-22
CN110362242B CN110362242B (en) 2022-05-24

Family

ID=68214614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810336443.6A Active CN110362242B (en) 2018-04-11 2018-04-11 Map display method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110362242B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176507A (en) * 2019-12-25 2020-05-19 北京趣拿软件科技有限公司 Map processing method and device, storage medium and electronic device
CN111258703A (en) * 2020-02-17 2020-06-09 深圳震有科技股份有限公司 Map display control method, intelligent terminal and storage medium
CN111966771A (en) * 2020-07-23 2020-11-20 汉海信息技术(上海)有限公司 Map interface display method and device, electronic equipment and storage medium
CN112085814A (en) * 2020-09-07 2020-12-15 北京百度网讯科技有限公司 Electronic map display method, device, equipment and readable storage medium
CN112800163A (en) * 2021-02-08 2021-05-14 腾讯科技(深圳)有限公司 Map interface display method and device, computer equipment and storage medium
CN112988928A (en) * 2021-02-08 2021-06-18 北京金和网络股份有限公司 Catering store map display method and device
CN113934351A (en) * 2021-10-15 2022-01-14 北京房江湖科技有限公司 Map screenshot method and device and computer-readable storage medium
CN115952372A (en) * 2023-03-14 2023-04-11 智道网联科技(北京)有限公司 High-precision map data acquisition method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279539A (en) * 2013-06-04 2013-09-04 百度在线网络技术(北京)有限公司 Interest point set displaying method, electronic map displaying method, interest point set displaying device and electronic map displaying device
CN103578347A (en) * 2012-08-01 2014-02-12 高德软件有限公司 Method and device for displaying POI in electronic map and mobile terminal
US20150369623A1 (en) * 2014-06-20 2015-12-24 Apple Inc. Graphical representation generation for multiple points of interest
CN105865483A (en) * 2016-03-31 2016-08-17 百度在线网络技术(北京)有限公司 Control method and apparatus of navigation map
CN106225795A (en) * 2016-06-30 2016-12-14 深圳市智汇十方科技有限公司 A kind of air navigation aid, navigation server and mobile terminal
CN107329652A (en) * 2017-06-22 2017-11-07 巴拉巴网络科技(北京)有限公司 Object identity method, device, system and machinable medium
CN107895537A (en) * 2017-11-13 2018-04-10 青岛海信通信有限公司 A kind of display methods of electronic map, relevant apparatus and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578347A (en) * 2012-08-01 2014-02-12 高德软件有限公司 Method and device for displaying POI in electronic map and mobile terminal
CN103279539A (en) * 2013-06-04 2013-09-04 百度在线网络技术(北京)有限公司 Interest point set displaying method, electronic map displaying method, interest point set displaying device and electronic map displaying device
US20150369623A1 (en) * 2014-06-20 2015-12-24 Apple Inc. Graphical representation generation for multiple points of interest
CN105865483A (en) * 2016-03-31 2016-08-17 百度在线网络技术(北京)有限公司 Control method and apparatus of navigation map
CN106225795A (en) * 2016-06-30 2016-12-14 深圳市智汇十方科技有限公司 A kind of air navigation aid, navigation server and mobile terminal
CN107329652A (en) * 2017-06-22 2017-11-07 巴拉巴网络科技(北京)有限公司 Object identity method, device, system and machinable medium
CN107895537A (en) * 2017-11-13 2018-04-10 青岛海信通信有限公司 A kind of display methods of electronic map, relevant apparatus and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
J. O. STENFLO: ""Collapsed, uncollapsed, and hidden magnetic flux on the quiet Sun"", 《ASTRONOMY & ASTROPHYSICS (A&A》 *
WEIXIN_34355559: ""百度地图之添加控件——比例尺、缩略图、平移缩"", 《HTTPS://BLOG.CSDN.NET/WEIXIN_34355559/ARTICLE/DETAILS/86275568》 *
白小双 等: ""中小比例尺基础电子地图多尺度显示的尺度划分"", 《测绘科学》 *
高平 等: ""导航电子地图的多比例尺可视化的实现"", 《江西测绘》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176507A (en) * 2019-12-25 2020-05-19 北京趣拿软件科技有限公司 Map processing method and device, storage medium and electronic device
CN111176507B (en) * 2019-12-25 2021-12-10 北京趣拿软件科技有限公司 Map processing method and device, storage medium and electronic device
CN111258703A (en) * 2020-02-17 2020-06-09 深圳震有科技股份有限公司 Map display control method, intelligent terminal and storage medium
CN111966771A (en) * 2020-07-23 2020-11-20 汉海信息技术(上海)有限公司 Map interface display method and device, electronic equipment and storage medium
CN112085814A (en) * 2020-09-07 2020-12-15 北京百度网讯科技有限公司 Electronic map display method, device, equipment and readable storage medium
CN112085814B (en) * 2020-09-07 2024-05-14 北京百度网讯科技有限公司 Electronic map display method, device, equipment and readable storage medium
CN112800163A (en) * 2021-02-08 2021-05-14 腾讯科技(深圳)有限公司 Map interface display method and device, computer equipment and storage medium
CN112988928A (en) * 2021-02-08 2021-06-18 北京金和网络股份有限公司 Catering store map display method and device
CN112800163B (en) * 2021-02-08 2021-12-14 腾讯科技(深圳)有限公司 Map interface display method and device, computer equipment and storage medium
CN113934351A (en) * 2021-10-15 2022-01-14 北京房江湖科技有限公司 Map screenshot method and device and computer-readable storage medium
CN115952372A (en) * 2023-03-14 2023-04-11 智道网联科技(北京)有限公司 High-precision map data acquisition method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110362242B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN110362242A (en) A kind of map methods of exhibiting and terminal device
US10783480B1 (en) Variable delivery zones for delivery orders
US8825080B1 (en) Predicting geographic population density
CN109242300B (en) Method and device for displaying service index value and computer equipment
CN107093096A (en) A kind of Traffic prediction method and device
US20130054647A1 (en) Information processing apparatus, information processing method, and program
TWI601020B (en) Graphical analysis system and graphical analysis method
US20170068902A1 (en) Modeling of Geospatial Location Over Time
CN103017767B (en) Use the method and apparatus of the position of the accuracy measurement terminal of measurement position
US9582161B2 (en) Configurable animated scatter plots
US10936978B2 (en) Models for visualizing resource allocation
EP4130961A1 (en) Shape selection method and apparatus, electronic device, storage medium and computer program
CN109949063A (en) A kind of address determines method, apparatus, electronic equipment and readable storage medium storing program for executing
US10157356B2 (en) Activity based resource allocation modeling
CN105844572A (en) Congestion risk monitoring method and congestion risk monitoring device
CN114758034A (en) Map generation method and device, computer-readable storage medium and electronic device
CN110045907A (en) Information display method and device
JP6135454B2 (en) Estimation program, estimation apparatus, and estimation method
CN105043377A (en) Method and device for recording running routes, and electronic equipment
US10726367B2 (en) Resource allocation forecasting
CN111641921A (en) UWB-based pipe gallery positioning method, terminal equipment and storage medium
CN115759574A (en) Material storage method and device, computer equipment and storage medium
CN109993767A (en) Image processing method and system
CN110148009A (en) Building room rate data generation method, device, equipment and computer storage medium
CN106611100A (en) Analysis method and device for user behaviors

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