CN107665205A - A kind of map rendering intent and device - Google Patents

A kind of map rendering intent and device Download PDF

Info

Publication number
CN107665205A
CN107665205A CN201610603172.7A CN201610603172A CN107665205A CN 107665205 A CN107665205 A CN 107665205A CN 201610603172 A CN201610603172 A CN 201610603172A CN 107665205 A CN107665205 A CN 107665205A
Authority
CN
China
Prior art keywords
map
denotation
map denotation
parameter
file
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
CN201610603172.7A
Other languages
Chinese (zh)
Other versions
CN107665205B (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.)
Alibaba China Co Ltd
Original Assignee
Autonavi Information 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 Autonavi Information Technology Co Ltd filed Critical Autonavi Information Technology Co Ltd
Priority to CN201610603172.7A priority Critical patent/CN107665205B/en
Publication of CN107665205A publication Critical patent/CN107665205A/en
Application granted granted Critical
Publication of CN107665205B publication Critical patent/CN107665205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Abstract

This application discloses a kind of map rendering intent and device, method to include:Respond map denotation request, obtain map denotation parameter and map datum to be shown, according to the map denotation parameter of setting and the corresponding relation of pattern file, pattern file corresponding with the map denotation parameter of the acquisition is obtained as target patterns file, pattern file describes the rendering style of map datum, the rendering style for the map datum recorded according to target patterns file, treats show map data and is rendered.The map of the application renders mode and meets individual demand of the user under a variety of search scenes.

Description

A kind of map rendering intent and device
Technical field
The application is related to map Rendering field, more specifically to a kind of map rendering intent and device.
Background technology
Electronic map can be user's travel route planning, greatly facilitate the go off daily of user.Actually using Journey, user are obtained map datum to be shown, and profit by client by the client transmitting path searching request of electronic map Map datum is rendered with built-in pattern file, and then shown.
Inventor has found that prior art client please for the route searching of different user to prior art research Ask, rendered using show map data are treated with a pattern file.And due to different user actual search scene not Together, focus is different.User pays close attention to gas station, parking lot information such as under scene of driving, and user is closed under public transport scene Note the information such as subway line, subway station.
Prior art is rendered using fixed a pattern file to map datum, it is impossible to meets user a variety of The individual demand searched under scene.
The content of the invention
In view of this, this application provides a kind of map rendering intent and device, fixation is used for solving prior art A pattern file map datum is rendered, can not meet that individual demand of the user under a variety of search scenes being asked Topic.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of map rendering intent, applied to client, this method includes:
Map denotation request is responded, obtains map denotation parameter and map datum to be shown;
According to the map denotation parameter of setting and the corresponding relation of pattern file, obtain and join with the map denotation obtained Pattern file corresponding to number describes the rendering style of map datum as target patterns file, the pattern file;
The rendering style for the map datum recorded according to the target patterns file, the map datum to be shown is carried out Render.
Preferably, the response map denotation acquisition request map denotation parameter, including:
The entrained map denotation parameter of the map denotation request is obtained, the map denotation parameter includes map denotation Pattern and display scene.
Preferably, methods described further comprises:
It is determined that respond the time of the map denotation request;
The time is added in the map denotation parameter.
Preferably, the target patterns file describes the display level and the rendering style of each element in map datum;
It is described the map datum to be shown to be rendered according to the rendering style as defined in the target patterns file, Including:
The display level of each element, judges the client in the map datum recorded according to the target patterns file Map denotation engineer's scale under, whether each element in the map datum to be shown can show;
It is the element that can be shown to judged result in the map datum to be shown, according in the target patterns file The rendering style corresponding to the element is rendered.
Preferably, it is described according to the target patterns file record map datum in each element display level, sentence Under the map denotation engineer's scale for the client of breaking, whether each element in the map datum to be shown can show, including:
The display level of each element in the map datum to be shown recorded according to the target patterns file, judge aobvious When showing the corresponding element display of dictates in corresponding map denotation engineer's scale, if include the map denotation of the client Engineer's scale;
It is to include the map denotation ratio of the client during display in corresponding map denotation engineer's scale for judged result The element of example chi, determines that it can show;
It is not include the map denotation of the client during display in corresponding map denotation engineer's scale for judged result The element of engineer's scale, determine that it cannot show.
Preferably, each element in the map datum to be shown is identified with unique key assignments, the target patterns text The rendering style of each element is specifically, the rendering style corresponding to the key assignments of each element in the map datum that part is recorded;
Described is the element that can be shown to judged result in the map datum to be shown, according to target patterns text The rendering style corresponding to the element is rendered in part, including:
According to the key assignments that judged result in the map datum to be shown is the element that can be shown, in the target patterns Find key value corresponding the rendering style in file;
The element of corresponding key assignments is rendered using the rendering style found.
Preferably, each element in the map datum to be shown is identified with unique key assignments, the target patterns text The display level of each element is specifically, display level corresponding to the key assignments of each element in the map datum that part is recorded;
The display level of each element, sentences in the map datum to be shown recorded according to the target patterns file As defined in disconnected display level during corresponding element display in corresponding map denotation engineer's scale, if include the map of the client Displaying ratio chi, including:
According to the key assignments of each element in the map datum to be shown, found key value in the target patterns file correspondingly Display level;
As defined in the display level that judgement is found, corresponding map denotation engineer's scale when the element of corresponding key assignments is shown In, if the map denotation engineer's scale comprising the client.
Preferably, present invention also offers a kind of map rendering device, applied to client, the device includes:
Map denotation parameter acquiring unit, for responding map denotation request, obtain map denotation parameter;
Map datum acquiring unit, for responding map denotation request, obtain map datum to be shown;
Target patterns file obtaining unit, for the corresponding relation of the map denotation parameter according to setting and pattern file, Pattern file corresponding with the map denotation parameter obtained is obtained to describe as target patterns file, the pattern file The rendering style of map datum;
Rendering unit, for the rendering style for the map datum recorded according to the target patterns file, wait to show to described Pictorial map data are rendered.
Preferably, the map denotation parameter acquiring unit includes:
First map denotation parameter acquiring subelement, the map denotation ginseng entrained for obtaining the map denotation request Number, the map denotation parameter include map display mode and display scene.
Preferably, the map denotation parameter acquiring unit also includes:
Second map denotation parameter acquiring subelement, for determining the time of the response map denotation request;
3rd map denotation parameter acquiring subelement, for the time to be added in the map denotation parameter.
Preferably, the target patterns file describes the display level and the rendering style of each element in map datum;
The rendering unit includes:
Judging unit is shown, the display level for each element in the map datum recorded according to the target patterns file Not, under the map denotation engineer's scale for judging the client, whether each element in the map datum to be shown can show;
Render processing unit, for being the element that can be shown to judged result in the map datum to be shown, according to The rendering style corresponding to the element is rendered in the target patterns file.
Preferably, the display judging unit includes:
Map denotation engineer's scale judging unit, for the map number to be shown recorded according to the target patterns file According to the display level of middle each element, judge when corresponding element as defined in display level is shown in corresponding map denotation engineer's scale, Whether the map denotation engineer's scale of the client is included;
First display result determining unit, for being for judged result, during display in corresponding map denotation engineer's scale The element of map denotation engineer's scale comprising the client, determine that it can show;
Second display result determining unit, for being for judged result, during display in corresponding map denotation engineer's scale The element of map denotation engineer's scale not comprising the client, determine that it cannot show.
It can be seen from the above technical scheme that the map rendering intent that the embodiment of the present application provides, responds map denotation Request, map denotation parameter and map datum to be shown are obtained, it is corresponding with pattern file according to the map denotation parameter of setting Relation, pattern file corresponding with the map denotation parameter obtained is obtained as target patterns file, the pattern file The rendering style of map datum is described, the rendering style for the map datum recorded according to the target patterns file, to described Map datum to be shown is rendered.The application can be previously according to map denotation corresponding to the actual search Scenario Design of user Parameter, and pattern file corresponding with each map display parameters is preset, and then according to the map denotation acquisition request received Map denotation parameter, pattern file is treated show map data and rendered corresponding to selection so that the map shown after rendering The demand for the search scene for being more close to the users actual, meet individual demand of the user under a variety of search scenes.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of application, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of map rendering intent flow chart disclosed in the embodiment of the present application;
Fig. 2 a-2e are map denotation effect diagram under different map display parameters disclosed in the embodiment of the present application;
Fig. 3 is another map rendering intent flow chart disclosed in the embodiment of the present application;
Fig. 4 is a kind of map rendering device structural representation disclosed in the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
Referring to Fig. 1, Fig. 1 is that a kind of map rendering intent flow chart, this method disclosed in the embodiment of the present application include:
Step S100, respond map denotation request (also referred to as map render request), obtain map denotation parameter and Map datum to be shown;
Map rendering intent provided in an embodiment of the present invention can apply the various application software for needing map rendering capability In, such as, trip class application software, electronic map class application software, food and drink class application software etc..With electronic map class using soft Exemplified by part, it is necessary to by route programming result or point of interest search after user carries out path planning or point of interest search request As a result show on the electronic map, therefore, map denotation request can be that the path planning module of electronic map or point of interest are searched Rope module is triggered based on its operation flow, and the electronic map class application software of client can include a map under normal circumstances Rendering module/engine, by map rendering module response map denotation request;Meanwhile existing electronic map class application software is adopted What is taken is C/S frameworks, and map datum to be shown can be handed down to client by service end, is used for map rendering engine, this hair It is bright to be not particularly limited.
Can include some map denotation parameters in map denotation request, map denotation parameter indicates user's searching currently Rope scene.Map denotation parameter can include map display mode, display scene etc..
Map denotation parameter can be client shows multiple optional map display parameters items by boundary's user oriented, by with Family is selected.Map display mode as electronic map client side is shown includes:Mode standard, satellite mode etc., Yong Huke Voluntarily to select.
Certainly, map denotation parameter can also be directly inputted into client by user.
Step S110, according to the map denotation parameter of setting and the corresponding relation of pattern file, obtain described with acquisition Sample file is as target patterns file corresponding to map denotation parameter;
Wherein, the pattern file describes the rendering style of map datum.
Corresponding pattern file is devised for different map display parameters in advance in the present embodiment, pattern file defines The rendering style of map datum, enables to map the rendering style to more conform to user on the ground under corresponding map display parameters Expection under search scene corresponding to figure display parameters.
Wherein, the rendering style of map datum can include, the filling size of the element of vertex type, Fill Color, filling Icon etc.;The sideline color of the element of line type, Fill Color, the type of line, the width etc. of line;The face of the element of noodles type Color, whether use texture, which type of texture etc. used.
Step S120, the rendering style for the map datum recorded according to the target patterns file, to described to be shown Diagram data is rendered.
By the rendering style for the map datum recorded according to target patterns file, treat show map data and rendered After shown so that the map for being shown to user more conforms to expection of the user under actual search scene.
The map rendering intent that the embodiment of the present application provides, response map denotation request, obtains map denotation parameter and treats Show map data, according to the map denotation parameter of setting and the corresponding relation of pattern file, obtain the map with obtaining Pattern file corresponding to display parameters describes the rendering style of map datum as target patterns file, the pattern file, The rendering style for the map datum recorded according to the target patterns file, is rendered to the map datum to be shown.This Application can be previously according to map denotation parameter corresponding to the actual search Scenario Design of user, and presets and show with each map Show pattern file corresponding to parameter, and then according to the map denotation acquisition request map denotation parameter received, sample corresponding to selection Formula file is treated show map data and rendered so that the search scene that the map shown after rendering is more close to the users actual Demand, meet user it is a variety of search scenes under individual demands.
In one embodiment of the application, response map denotation request is introduced, obtains the specific reality of map denotation parameter Apply mode.
Specifically, the map rendering module of client obtains the map denotation request when responding map denotation request Entrained map denotation parameter.The map denotation parameter can include map display mode and display scene.
Map display mode can include mode standard, satellite mode, public transport pattern etc..Certainly, map display mode is also Display view angle is may further include, display view angle includes navigation visual angle and preview visual angle, then map display mode can include: Public transport pattern under satellite mode and navigation/preview visual angle under mode standard, navigation/preview visual angle under navigation/preview visual angle.
Display scene can include drive, public transport, walking etc. show scene.Show that scene is relative with the trip mode of user Should.
Pass through map display mode and display scene, it may be determined that the current actual search scene of user.
Application scheme is introduced by following instantiations.
The application has been pre-designed pattern file corresponding with two kinds of map denotation parameters, is respectively:
The first pattern file corresponding with the first map denotation parameter, and with the second map denotation parameter corresponding second Pattern file.Wherein, the first map denotation parameter includes:Mode standard under preview visual angle, and drive to show scene.Second ground Figure display parameters include:Mode standard under preview visual angle, and public transport show scene.
Wherein, the first pattern file lays particular emphasis on the map datum that compares drivers such as turnpike road, gas stations concern Render, weaken or ignore rendering for the map datum such to subway line, subway station etc..Second pattern file is laid particular emphasis on over the ground The user of the seating transit trip such as iron wire, subway station compares rendering for the map datum of concern, weakens or ignores to master Such map datum such as arterial highway road, gas station renders.
A certain moment, user A are asked using the client input on mobile phone from the route searching of current location to Zhong Guan-cun, And the mode standard in the case where search interface have selected bus trip mode, and preview visual angle.
Client determines that map display parameters are the second map denotation parameter according to searching request, and then obtains and the second ground Second pattern file corresponding to figure display parameters.Show map data are treated using the second pattern file transferred to be rendered, And then show, display effect is as shown in Figure 2 a.
Synchronization, user B are asked using the client input on mobile phone from the route searching of current location to Zhong Guan-cun, And the mode standard in the case where search interface have selected trip mode of driving, and preview visual angle.
Client determines that map display parameters are the first map denotation parameter according to searching request, and then obtains and the first ground First pattern file corresponding to figure display parameters.Show map data are treated using the first pattern file transferred to be rendered, And then show, display effect is as shown in Figure 2 b.
Comparison diagram 2a and Fig. 2 b can be seen that in the map shown under the second map denotation parameter to user, most of All it is subway line and subway station information, the information such as turnpike road and gas station is few or does not have.Greatly user A is facilitated to exist Subway line, the subway station of trip are searched when travelling by the public transport system.
And in the map shown under the first map denotation parameter to user, most of is all turnpike road, it is few or There is no the information such as subway line.Greatly facilitate the turnpike road that user B searches trip when driving trip.
On the basis of above-described embodiment, response map denotation request, the process of map denotation parameter is obtained, can also be with Following manner is implemented.
Specifically, the map rendering module of client obtains the map denotation request when responding map denotation request Entrained map denotation parameter.The map denotation parameter can include map display mode and display scene.Further, it is determined that The time of map denotation request is responded, the time is added in the map denotation parameter.
Compared to a upper embodiment, when the map denotation parameter that client obtains in the present embodiment further increases display Between parameter.Corresponding, default pattern file corresponding with map denotation parameter can also consider to show the influence of time so that most The map rendered eventually according to pattern file more conforms to user's actual search scene.
The present embodiment can divide time into day and night.Under certain user's actual search scene, daytime and night The difference in evening can render to map to be had an impact, such as when user drives at night, in order to protrude real time traffic data, it is necessary to drop The contrast of low land figure color, conveniently identifies the transport information on main road road.
Included in the present embodiment with map denotation parameter:Map display mode, map denotation scene and map denotation time Exemplified by, devise pattern file corresponding to different map display parameters.With reference to shown in table 1 below:
Table 1
Certainly, a kind of optional corresponding relation between map denotation parameter and pattern file is merely illustrated in above-mentioned table 1, The application does not limit map denotation parameter with pattern file as one-to-one relationship, and different search scenes can be correspondingly identical Pattern file.
For the ease of understanding the rendering effect of pattern file corresponding to different map display parameters, referring to Fig. 2 c-2e, it shows Corresponding map renders rear display effect under the several frequently seen map denotation parameter of example.
Wherein:
Fig. 2 c are that mode standard+public transport shows scene+map denotation effect is shown under the display time on daytime under visual angle of navigate It is intended to;
Fig. 2 d are that mode standard+drive shows scene+map denotation effect is shown under the display time on daytime under visual angle of navigate It is intended to;
Fig. 2 e are that mode standard+drive shows scene+map denotation effect is shown under the display time at night under visual angle of navigate It is intended to.
Referring to Fig. 3, Fig. 3 is that another map rendering intent flow chart, this method disclosed in the embodiment of the present application include:
Step S300, map denotation request is responded, obtains map denotation parameter and map datum to be shown;
Step S310, according to the map denotation parameter of setting and the corresponding relation of pattern file, obtain described with acquisition Sample file is as target patterns file corresponding to map denotation parameter;
Wherein, the pattern file describes the rendering style of map datum.
Corresponding pattern file is devised for different map display parameters in advance in the present embodiment, pattern file defines The rendering style of map datum, enables to map the rendering style to more conform to user on the ground under corresponding map display parameters Expection under search scene corresponding to figure display parameters.
Specifically, above-mentioned steps S300, S310 are corresponding respectively with abovementioned steps S100, S110 respectively, be discussed in detail referring to Above-mentioned, here is omitted.
Step S320, according to the display level of each element in the map datum of target patterns file record, judge Under the map denotation engineer's scale of the client, whether each element in the map datum to be shown can show;
Wherein, the target patterns file describes the display level and the rendering style of each element in map datum.Member Corresponding map denotation engineer's scale when the display level of element defines element display.
In this step, by inquiring about target patterns file, it may be determined that under the map denotation engineer's scale of client, wait to show Whether each element can show in pictorial map data.
Step S330, it is the element that can show to judged result in the map datum to be shown, according to the target The rendering style corresponding to the element is rendered in pattern file.
The map rendering intent of the present embodiment introduction, target patterns file describe the display level of each element in map datum Other and the rendering style, and then by inquiring about target patterns file, it may be determined that under the map denotation engineer's scale of client, wait to show Whether each element can show in pictorial map data, and the element to that can show, according to the element pair in target patterns file The rendering style answered is rendered.
Optionally, above-mentioned steps S320 implementation process can include:
A, according to the display level of each element in the map datum to be shown of target patterns file record, judge When corresponding element as defined in display level is shown in corresponding map denotation engineer's scale, if the map comprising the client shows Show engineer's scale;
Specifically, the display level of each element in map datum to be shown is inquired about in target patterns file, further, is sentenced As defined in the display level of disconnected each element during corresponding element display in corresponding map denotation engineer's scale, if include the client The map denotation engineer's scale at end.
B, it is to include the map denotation of the client during display in corresponding map denotation engineer's scale for judged result The element of engineer's scale, determine that it can show;
C, it is that the map for not including the client during display in corresponding map denotation engineer's scale shows for judged result Show the element of engineer's scale, determine that it cannot show.
According to the implementation, the display level of element shows for the map of client only specified in target patterns file When showing engineer's scale, the element can be shown.
In another embodiment of the application, to searching the display level of element in target patterns file and rendering sample The process of formula is introduced.
For the ease of that whether can be shown by target patterns file polling element, and corresponding the rendering style, this Shen Please be able to be that each element identifies unique and unduplicated key assignments KEY in map datum in advance.It is corresponding, wrapped in target patterns file Display level corresponding to key assignments containing each element, and the rendering style corresponding to the key assignments of element.
Based on this, above-mentioned steps S330, it is the element that can be shown to judged result in the map datum to be shown, presses The process rendered according to the rendering style corresponding to the element in the target patterns file, can specifically include:
According to the key assignments that judged result in the map datum to be shown is the element that can be shown, in the target patterns Find key value corresponding the rendering style in file;
The element of corresponding key assignments is rendered using the rendering style found.
Further, above-mentioned steps A, according to the target patterns file record the map datum to be shown in each element Display level, judge as defined in display level when corresponding element is shown in corresponding map denotation engineer's scale, if include institute The process of the map denotation engineer's scale of client is stated, can specifically be included:
According to the key assignments of each element in the map datum to be shown, found key value in the target patterns file correspondingly Display level;
As defined in the display level that judgement is found, corresponding map denotation engineer's scale when the element of corresponding key assignments is shown In, if the map denotation engineer's scale comprising the client.
In the present embodiment, the display level of each element, and corresponding the rendering style are managed by key assignments, it is more convenient Inquiry.
Optionally, when the above-mentioned element in map datum sets key assignments, key assignments can be carried out according to attribute of an element and set Put.
The key assignments KEY that the application can set element includes Major key MAINKEY and subkey SUBKEY.
Wherein, the element in map datum can be divided into multiple classifications, the Major key MAINKEY of same category of element Identical, the Major key MAINKEY of different classes of element is differed.Lift for example, the Major key MAINKEY of the element of category of roads It is 2001;The Major key MAINKEY of the element of building classification is 2002.
It is different for the element of each different subclass under same category, its subkey SUBKEY.Lift for example, road class Under other, the subkey SUBKEY of this subclass element of super expressway is 11;Under category of roads, low speed links this subclass member The subkey SUBKEY of element is 12.
Based on this, pattern file is in the display level for the key assignments for storing different elements, and wash with watercolours corresponding to the key assignments of element When contaminating pattern, display level corresponding to the key assignments KEY of each element and corresponding the rendering style can be stored.
Client is when treating show map data and being rendered, if it is desired to inquiring about the display of all elements of a certain classification Rank or the rendering style, then the aobvious of all elements of the category can be searched by the Major key MAINKEY of category element Show rank or the rendering style, its inquiry velocity is faster.
Optionally, the pattern file corresponding with each map display parameters stored in client can be determined by server Shi Gengxin's or user download to manually in client, do not done sternly for acquisition modes the application of pattern file Lattice limit.
Optionally, if client can not inquire pattern file corresponding with the map denotation parameter obtained, client The pattern file of acquiescence can be used to treat show map data to be rendered.
Below to the embodiment of the present application provide map rendering device be described, map rendering device described below with Above-described map rendering intent can be mutually to should refer to.
Referring to Fig. 4, Fig. 4 is a kind of map rendering device structural representation disclosed in the embodiment of the present application.
As shown in figure 4, the device includes:
Map denotation parameter acquiring unit 41, for responding map denotation request, obtain map denotation parameter;
Map datum acquiring unit 42, for responding the map denotation request, obtain map datum to be shown;
Target patterns file obtaining unit 43, for the pass corresponding with pattern file of the map denotation parameter according to setting System, pattern file corresponding with the map denotation parameter obtained is obtained as target patterns file, the pattern file note The rendering style of map datum is carried;
Rendering unit 44, for the rendering style for the map datum recorded according to the target patterns file, treated to described Show map data are rendered.
The map rendering device that the embodiment of the present application provides, response map denotation request, obtains map denotation parameter and treats Show map data, according to the map denotation parameter of setting and the corresponding relation of pattern file, obtain the map with obtaining Pattern file corresponding to display parameters describes the rendering style of map datum as target patterns file, the pattern file, The rendering style for the map datum recorded according to the target patterns file, is rendered to the map datum to be shown.This Application can be previously according to map denotation parameter corresponding to the actual search Scenario Design of user, and presets and show with each map Show pattern file corresponding to parameter, and then according to the map denotation acquisition request map denotation parameter received, sample corresponding to selection Formula file is treated show map data and rendered so that the search scene that the map shown after rendering is more close to the users actual Demand, meet user it is a variety of search scenes under individual demands.
Optionally, the map denotation parameter acquiring unit can include:
First map denotation parameter acquiring subelement, the map denotation ginseng entrained for obtaining the map denotation request Number, the map denotation parameter include map display mode and display scene.
Further, the map denotation parameter acquiring unit can also include:
Second map denotation parameter acquiring subelement, for determining the time of the response map denotation request;
3rd map denotation parameter acquiring subelement, for the time to be added in the map denotation parameter.
Optionally, the target patterns file describes the display level and the rendering style of each element in map datum.
Based on this, the rendering unit can include:
Judging unit is shown, the display level for each element in the map datum recorded according to the target patterns file Not, under the map denotation engineer's scale for judging the client, whether each element in the map datum to be shown can show;
Render processing unit, for being the element that can be shown to judged result in the map datum to be shown, according to The rendering style corresponding to the element is rendered in the target patterns file.
Optionally, the display judging unit can include:
Map denotation engineer's scale judging unit, for the map number to be shown recorded according to the target patterns file According to the display level of middle each element, judge when corresponding element as defined in display level is shown in corresponding map denotation engineer's scale, Whether the map denotation engineer's scale of the client is included;
First display result determining unit, for being for judged result, during display in corresponding map denotation engineer's scale The element of map denotation engineer's scale comprising the client, determine that it can show;
Second display result determining unit, for being for judged result, during display in corresponding map denotation engineer's scale The element of map denotation engineer's scale not comprising the client, determine that it cannot show.
Optionally, each element in the map datum to be shown is identified with unique and unduplicated key assignments, the mesh The rendering style of each element is specifically, the rendering style corresponding to the key assignments of each element in the map datum that standard specimen formula file is recorded; The display level of each element corresponding to the key assignments of each element specifically, show in the map datum that the target patterns file is recorded Rank.
Based on this, the render processing unit can include:
First renders processing subelement, for being the member that can be shown according to judged result in the map datum to be shown The key assignments of element, find key value corresponding the rendering style in the target patterns file;
Second renders processing subelement, for being rendered using the rendering style found to the element of corresponding key assignments.
The map denotation engineer's scale judging unit can include:
First map denotation engineer's scale judgment sub-unit, for the key according to each element in the map datum to be shown Value, find key value corresponding display level in the target patterns file;
Second map denotation engineer's scale judgment sub-unit, for judging as defined in the display level that finds, corresponding key assignments Element display when corresponding map denotation engineer's scale in, if the map denotation engineer's scale comprising the client.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the application. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (12)

1. a kind of map rendering intent, it is characterised in that applied to client, this method includes:
Map denotation request is responded, obtains map denotation parameter and map datum to be shown;
According to the map denotation parameter of setting and the corresponding relation of pattern file, the map denotation parameter pair with obtaining is obtained The pattern file answered describes the rendering style of map datum as target patterns file, the pattern file;
The rendering style for the map datum recorded according to the target patterns file, wash with watercolours is carried out to the map datum to be shown Dye.
2. according to the method for claim 1, it is characterised in that the response map denotation request, obtain map denotation ginseng Number, including:
The entrained map denotation parameter of the map denotation request is obtained, the map denotation parameter includes map display mode And display scene.
3. according to the method for claim 2, it is characterised in that methods described further comprises:
It is determined that respond the time of the map denotation request;
The time is added in the map denotation parameter.
4. according to the method for claim 1, it is characterised in that the target patterns file describes each in map datum The display level and the rendering style of element;
It is described the map datum to be shown to be rendered according to the rendering style as defined in the target patterns file, including:
The display level of each element in the map datum recorded according to the target patterns file, judge the ground of the client Under figure displaying ratio chi, whether each element in the map datum to be shown can show;
It is the element that can be shown by judged result in the map datum to be shown, according to this yuan in the target patterns file The rendering style is rendered corresponding to element.
5. according to the method for claim 4, it is characterised in that the map number recorded according to the target patterns file The display level of each element in, under the map denotation engineer's scale for judging the client, in the map datum to be shown Each element whether can show, including:
The display level of each element, judges display level in the map datum to be shown recorded according to the target patterns file When not defined corresponding element is shown in corresponding map denotation engineer's scale, if the map denotation ratio comprising the client Chi;
It is to include the map denotation engineer's scale of the client during display in corresponding map denotation engineer's scale for judged result Element, determine that it can show;
It is not include the map denotation ratio of the client during display in corresponding map denotation engineer's scale for judged result The element of chi, determine that it cannot show.
6. according to the method for claim 4, it is characterised in that each element in the map datum to be shown is identified with Unique and unduplicated key assignments, the rendering style of each element is specifically, each in the map datum that the target patterns file is recorded The rendering style corresponding to the key assignments of element;
Described by judged result in the map datum to be shown is the element that can show, according in the target patterns file The rendering style corresponding to the element is rendered, including:
According to the key assignments that judged result in the map datum to be shown is the element that can be shown, in the target patterns file In find key value corresponding the rendering style;
The element of corresponding key assignments is rendered using the rendering style found.
7. according to the method for claim 5, it is characterised in that each element in the map datum to be shown is identified with Unique and unduplicated key assignments, the display level of each element is specifically, each in the map datum that the target patterns file is recorded Display level corresponding to the key assignments of element;
The display level of each element in the map datum to be shown recorded according to the target patterns file, judges aobvious When showing the corresponding element display of dictates in corresponding map denotation engineer's scale, if include the map denotation of the client Engineer's scale, including:
According to the key assignments of each element in the map datum to be shown, found key value in the target patterns file corresponding aobvious Show rank;
As defined in the display level that judgement is found, when the element of corresponding key assignments is shown in corresponding map denotation engineer's scale, it is The no map denotation engineer's scale for including the client.
8. a kind of map rendering device, it is characterised in that applied to client, the device includes:
Map denotation parameter acquiring unit, for responding map denotation request, obtain map denotation parameter;
Map datum acquiring unit, for responding map denotation request, obtain map datum to be shown;
Target patterns file obtaining unit, for the map denotation parameter according to setting and the corresponding relation of pattern file, obtain Pattern file corresponding with the map denotation parameter of acquisition describes map as target patterns file, the pattern file The rendering style of data;
Rendering unit, for the rendering style for the map datum recorded according to the target patterns file, to described to be shown Diagram data is rendered.
9. device according to claim 8, it is characterised in that the map denotation parameter acquiring unit includes:
First map denotation parameter acquiring subelement, the map denotation parameter entrained for obtaining the map denotation request, The map denotation parameter includes map display mode and display scene.
10. device according to claim 9, it is characterised in that the map denotation parameter acquiring unit also includes:
Second map denotation parameter acquiring subelement, for determining the time of the response map denotation request;
3rd map denotation parameter acquiring subelement, for the time to be added in the map denotation parameter.
11. device according to claim 8, it is characterised in that the target patterns file describes each in map datum The display level and the rendering style of individual element;
The rendering unit includes:
Judging unit is shown, for the display level of each element in the map datum recorded according to the target patterns file, Under the map denotation engineer's scale for judging the client, whether each element in the map datum to be shown can show;
Render processing unit, for being the element that can be shown to judged result in the map datum to be shown, according to described The rendering style corresponding to the element is rendered in target patterns file.
12. device according to claim 11, it is characterised in that the display judging unit includes:
Map denotation engineer's scale judging unit, in the map datum to be shown recorded according to the target patterns file The display level of each element, judge when corresponding element as defined in display level is shown in corresponding map denotation engineer's scale, if Map denotation engineer's scale comprising the client;
First display result determining unit, for being for judged result, is included during display in corresponding map denotation engineer's scale The element of the map denotation engineer's scale of the client, determine that it can show;
Second display result determining unit, for being for judged result, is not wrapped during display in corresponding map denotation engineer's scale The element of map denotation engineer's scale containing the client, determine that it cannot show.
CN201610603172.7A 2016-07-27 2016-07-27 Map rendering method and device Active CN107665205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610603172.7A CN107665205B (en) 2016-07-27 2016-07-27 Map rendering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610603172.7A CN107665205B (en) 2016-07-27 2016-07-27 Map rendering method and device

Publications (2)

Publication Number Publication Date
CN107665205A true CN107665205A (en) 2018-02-06
CN107665205B CN107665205B (en) 2020-12-01

Family

ID=61115377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610603172.7A Active CN107665205B (en) 2016-07-27 2016-07-27 Map rendering method and device

Country Status (1)

Country Link
CN (1) CN107665205B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298780A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 Map rendering method, device and computer storage medium
CN111782307A (en) * 2019-04-03 2020-10-16 阿里巴巴集团控股有限公司 Map rendering method, style switching method, related device and navigation client
CN113656518A (en) * 2020-05-12 2021-11-16 奇安信科技集团股份有限公司 Map rendering method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102529979A (en) * 2010-12-30 2012-07-04 上海博泰悦臻电子设备制造有限公司 Automatic mode selecting method of vehicle-mounted electronic system
CN105069118A (en) * 2015-08-11 2015-11-18 北京思特奇信息技术股份有限公司 GIS configuration-based application scene management method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102529979A (en) * 2010-12-30 2012-07-04 上海博泰悦臻电子设备制造有限公司 Automatic mode selecting method of vehicle-mounted electronic system
CN105069118A (en) * 2015-08-11 2015-11-18 北京思特奇信息技术股份有限公司 GIS configuration-based application scene management method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298780A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 Map rendering method, device and computer storage medium
CN110298780B (en) * 2018-03-23 2022-10-28 腾讯科技(深圳)有限公司 Map rendering method, map rendering device and computer storage medium
CN111782307A (en) * 2019-04-03 2020-10-16 阿里巴巴集团控股有限公司 Map rendering method, style switching method, related device and navigation client
CN113656518A (en) * 2020-05-12 2021-11-16 奇安信科技集团股份有限公司 Map rendering method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107665205B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN104866500B (en) Picture classification display method and device
EP1589511B1 (en) Apparatus and method for processing traffic information
JP3355627B2 (en) Travel planning equipment
DE10290955B4 (en) Database search and database search using geographic features
CN108133619A (en) Method, apparatus, storage medium and the terminal device of Parking prediction
US20070210937A1 (en) Dynamic rendering of map information
US20040212627A1 (en) Map data transmitting method, map data transmitting apparatus, information device and map data transmitting system
EP1860628A1 (en) Road scene map creating device, method, and program
CN104321622B (en) Context aware voice guide
CN103488758A (en) Interest point search method and navigation method
CN107167152A (en) Paths planning method and device
DE102013217310A1 (en) Vehicle range forecast
CN106875734B (en) A kind of method and device of push parking route
CN105606116B (en) A kind of air navigation aid, navigation device and its system of navigation of satisfying the need
DE102012221305A1 (en) Navigation system and navigation method
CN107665205A (en) A kind of map rendering intent and device
CN108268559A (en) Information providing method and device based on ticketing service search
CN110741227B (en) Landmark assisted navigation
CN104636457B (en) A kind of method and device of location finding cognition
CN105300398B (en) The methods, devices and systems of gain location information
CN106708837A (en) Interest point search method and device
AU2016341159A1 (en) Method for visually displaying the positions of selected destinations in maps in an altered manner
CN108268653A (en) A kind of traffic data processing method and device
WO2004084437A1 (en) Navigation system using mobile device and method thereof
CN106781650A (en) Intelligent parking system and method

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200506

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing City, Haidian District Suzhou Street No. 3 floor 16 room 2

Applicant before: AUTONAVI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant