Embodiment
In order to realize object of the present invention, embodiments provide a kind of access method of electronic chart, equipment and system, rendering server receive client initiate comprise general point mark electronic chart request of access after, the map stored according to this locality by this rendering server cut into slices mark and general point identify between corresponding relation, determine the map section mark corresponding to general point mark of client-requested, and cut into slices cutting into slices with this map in the map section represented by the map determined section mark and electronic chart other maps adjacent and send to client, by client, the map received section is combined into electronic chart.
Compared to the prior art, the client of the embodiment of the present invention is when carrying out the access of electronic chart, can obtain from rendering server and illustrate with graphic form the map section that general point identifies in the displaying of its coordinate position, client can to the electronic chart that user shows on the display interface of client by rear for the map received section combination just can obtaining, even if comprise the general point of magnanimity in the electronic chart shown, client shows that the process of electronic chart also can not be subject to the impact of engine map equipment performance in client.
It should be noted that, the general point related in various embodiments of the present invention represents the point (as buildings) that electronic chart exists.
Before client initiates electronic chart request of access to rendering server, rendering server can carry out pre-service to the electronic chart of the various engineer's scales that this locality stores:
Rendering server can prestore several electronic charts, and owing to can comprise multiple general point in every width electronic chart, therefore, rendering server also stored for the general point information of each general point.Described general point information comprises:
General point for this general point of unique identification identifies, as " 1234 ", " the auspicious automobile fitting of good fortune ";
For representing the general point coordinate of this general point position in map, as latitude and longitude coordinates;
For representing that this general point shows the displaying mark of content in map.
Described displaying mark comprises the content of icon and text;
Described displaying mark also comprises plays up frame relative to general point coordinate dimension scope, this position of playing up frame and size can be determined according to this general point coordinate and relative range of size, because general point coordinate determines to play up the position of frame and the benchmark of size, therefore, this general point coordinate can be referred to as again the reference point playing up frame region;
Described displaying mark also comprises icon frame, text box relative to the coordinate dimension scope playing up frame upper left angle point, plays up the coordinate of frame upper left angle point and relative range of size, can determine position and the size of icon frame, text box according to this.
Electronic chart, in order to improve the storage efficiency of information, can be carried out gridding operation, obtain the picture that multiple size is identical by rendering server, is map section; After a certain electronic chart gridding operation, the map section obtained is sliceable is this electronic chart.Map section after gridding is numbered, is labeled as section mark, as shown in Figure 2.
Rendering server is cut into slices for each map, general point coordinate in general point information represented by the general point mark of correspondence, displaying mark in this general point information be rendered in the map section comprising described general point, it is illustrated the picture that general point identifies in the displaying of its coordinate position that the map in rendering server is cut into slices.
As can be seen from Figure 2, a general point can be comprised in a map section, also multiple general point can be comprised, also general point can not be comprised, distinguishingly, owing to comprising icon frame, text box and playing up frame when a general point is shown in electronic chart, therefore, also may occur that the frame of playing up of a general point is segmented in situation in the section of different map.
After electronic chart grid is turned to map section by rendering server, can store in units of map section the section of this map comprise the general point information of general point, concrete mode is:
The general point that rendering server comprises in cutting into slices according to the map, set up and store map section mark and general point identify between corresponding relation, due to the part that general point mark is general point information, uniquely can represent a general point, therefore, by described corresponding relation, the general point information represented by general point mark that map section mark is corresponding, the corresponding relation namely between map section and general point information can be determined.
When general point information stores by rendering server in units of map section, for a certain general point information, its storage format is:
Distinguishingly, when an appearance general point play up the situation that frame is segmented in the section of different map time, suppose that the icon frame of a general point 1111 and text box are segmented in two adjacent maps sections of left and right that (map section in the left side is designated A, the right map section is designated B), now, map section mark A and map section mark B sets up corresponding relation with 1111; In the 1111 general point information that map section mark A is corresponding, have " id ": 1111, " pos ": { " lng ": 116; " lat ": 39}, " bounds ": [111,222,333; 444], " Icon ": { " px ": 5; " py ": 8, " width ": 12, " height ": 12}; but the content of " text " is false; In the 1111 general point information that map section mark B is corresponding, have " id ": 1111, " bounds ": [111,222,333,444], " text ", but the content of " Icon " and " pos " is false.
Be described in detail below in conjunction with the scheme of Figure of description to the embodiment of the present application.
Embodiment one:
As shown in Figure 3, be the process flow diagram of the access method of a kind of electronic chart of embodiment one, the method comprises:
Step 101: rendering server receives the electronic chart request of access comprising general point mark that client is initiated.
In the scheme of this step 101, the general point mark in the electronic chart request of access that client is initiated can be the Digital ID being similar to " 1111 ", also can be the character string identification being similar to " the auspicious automobile fitting of good fortune ".
Described rendering server can be have electronic chart and have the Website server that function played up by map.
Step 102: the corresponding relation between the map section mark that rendering server stores according to this locality and general point identifys, determines that map section corresponding to general point mark in described electronic chart request of access identifies.
Because electronic chart grid is turned to the section of multiple map by rendering server when carrying out pre-service, and store map section mark and general point identify between corresponding relation, therefore, in this step 102, rendering server can according to the general point mark in electronic chart request of access, the map section mark that this general point mark is corresponding is searched in this locality, the map section represented by map section mark found out is the map section in the electronic chart of client-access, more preferably, map section represented by the map section mark found out can be cut into slices as the center map of the electronic chart of client-access.
Electronic chart is spliced owing to can have multiple map to cut into slices, therefore, according to the map scale carried in the electronic chart request of access that client is initiated, centered by " Futong mansion ", determine to cut into slices be designated 6741.3102 map section multiple maps sections around, when the electronic chart map determined being cut into slices be spliced is shown based on the map scale carried in electronic chart request of access, correctly can show in the display interface in client centered by " Futong mansion ".
More preferably, rendering server, after the map determining to need to return to client is cut into slices, can also determine that the section of these maps comprises the general point information of general point further.
Still for 13 of the electronic chart shown in Fig. 2 grades of visual field ranks, rendering server inquires " Futong mansion ", and corresponding map section is designated 6741.3102, and determine map section mark 6741.3102 also other general point mark corresponding simultaneously: " newsstand " and " people are beautiful eternal ", and then can determine that the general point comprised during map that map section is designated 6741.3102 is cut into slices is " Futong mansion ", " newsstand " and " people are beautiful eternal ".
Step 103: other maps of cutting into slices adjacent with this map in map section corresponding for the map determined section mark and electronic chart are cut into slices and sent to client by rendering server.
The section of described other adjacent maps refers to: cutting into slices with the map determined identifies the position that corresponding map cuts into slices in electronic chart and be in neighbouring relations, generally refer to the map section of the top of the map section determined, bottom, left part and right part, according to the difference of checking electronic chart scope, also can comprise the map section of the upper left quarter of the map section determined, lower left quarter, upper right quarter and right lower quadrant, as shown in Fig. 4 (a).
It should be noted that, need the scope of the electronic chart checked different according to user, adjacent other maps section can be, but not limited to the map section in eight kinds of above-mentioned orientation, can also be centered by the map determined section, the map that setting value is drawn involved by circle for radius in electronic chart be cut into slices.
Step 104: the map received section is combined into electronic chart by client.
Particularly, map section, when receiving the map section that rendering server sends, is combined into electronic chart, as shown in Fig. 4 (b) according to the order of mark of cutting into slices in map section by client.
By the scheme of embodiment one achieve map section mark that rendering server stores according to this locality and general point identify between corresponding relation, determine the map section mark corresponding to general point mark of client-requested, other maps of cutting into slices adjacent with this map in the map section represented by the map determined section mark and electronic chart are cut into slices and sends to client, identify in the displaying of its coordinate position owing to having illustrated general point in the map section that client receives, therefore, the map received section directly can be combined into electronic chart by client, and without the need to the general point coordinate by sending rendering server with show that mark is carried out loading and obtained electronic chart, considerably reduce the data processing amount of client, it also avoid client in the general point information process of this locality loading magnanimity, occur that electronic chart loads delay, even electronic chart loads failed problem.
Embodiment two:
In the scheme of the embodiment of the present invention one, map section is sent to client by rendering server, by client, the map received section is combined into electronic chart and shows, the electronic chart that conveniently user customer is shown operates, the embodiment of the present invention two does further process to the electronic chart that client is shown on the basis of embodiment one, and carries out the operations such as such as public transportation enquiry to the electronic chart after process.
As shown in Figure 5, be the process flow diagram of the present embodiment two, comprise the following steps:
Step 201: client receives map that rendering server sends and cut into slices and after being combined into electronic chart, obtains the general point information of the general point that mark that the map that receives cuts into slices comprises from rendering server.
The specific implementation process of this step 201 includes but not limited to following two kinds of modes:
First kind of way:
Client is after being combined into electronic chart, determine each map section mark comprised in the electronic chart of this current display, and will determine that map section mark is sent to rendering server, the general point information represented by general point mark corresponding for the map determined section mark is sent to client by request rendering server.
Such as: client sends to rendering server the request message including section mark and is: http://xxx.mapabc.com? tile=6741.3102,6741.3103,6741.3104 & z=13 & rid=782699, wherein, 6741.3102 a section mark is.
The second way:
Client is after being combined into electronic chart, and rendering server determines that this map sending to client is cut into slices, and the general point information of the general point comprised of being cut into slices by described map is sent to client.
After client receives the general point information of rendering server transmission, can map section be unit, store general point information in this locality.
Step 202: client monitor MouseMove (mouse displacement) event, judge mouse whether be arranged in client show electronic chart play up frame region, if so, then execution step 203; Otherwise, proceed MouseMove and monitor.
Owing to containing the displaying mark of multiple general point in the electronic chart that client is shown, that is, what have multiple general point in the electronic chart of displaying plays up frame, therefore, in this step 202, the region of playing up frame shared in electronic chart can be referred to as to play up frame region.
Particularly, in step 202., when client monitors mouse displacement event, judge whether the position at the current place of mouse belongs to arbitrary step playing up frame region in electronic chart and comprise:
The first step: obtain the positional information in the electronic chart at the current place of mouse.
Second step: determine the map section mark that described positional information is corresponding.
3rd step: judge whether this positional information belongs in the scope that the general point represented by general point mark corresponding to described map section mark cover, that if so, then determines that mouse is arranged in the electronic chart of displaying plays up frame region; Otherwise that determines that mouse is not arranged in the electronic chart of displaying plays up frame region.
Step 203: client is according to the general point information obtained from rendering server, determine the general point information played up represented by frame region at the current place of mouse, and judge whether the coordinate (also namely playing up the coordinate of the reference point in frame region) of general point in this general point information exists, if exist, then perform step 205; Otherwise, perform step 204.
In the scheme of this step 203, first client can determine that map section corresponding to position in frame region is played up at the current place of mouse, and then according to the map section mark and general point identify between corresponding relation, determine that the general point information of general point represented by frame region is played up at the current place of mouse.
If the coordinate that reference point in the general point information of general point represented by frame region is played up at the current place of mouse exists, then represent the position at the current place of mouse and play up the reference point in frame region in same map is cut into slices; Otherwise, represent the current position of mouse and play up the reference point in frame region not in same map is cut into slices.
Step 204: client, according to the section of mouse current place map, determines that this plays up the reference point in frame region from cut into slices other maps adjacent cut into slices with this map.
The map section that the section of described adjacent map refers to for splicing electronic chart is in the upper and lower map section in the left and right of described map section in position.
Particularly, when determine the current place of mouse play up position in frame region and this reference point playing up frame region not in same map is cut into slices time, determine that the method that this plays up the reference point in frame region comprises:
The first step: client reads the first general point mark, this first general point mark is that general point corresponding to frame region of playing up determined in the map section at the current place of mouse identifies.
Second step: client reads the general point information identifying like-identified with the first general point from the section of adjacent map.
3rd step: client obtains the reference point coordinate that frame region is played up at the current place of mouse from the general point information read.
Step 205: the reference point playing up frame region at the current place of client determination mouse, and according to this reference point and the size playing up frame region, generate the covering layer playing up frame region described in covering.
In this step 205, described covering layer has operability, wherein, cover size and the current place of mouse of layer to play up frame size identical, and to change along with the mouse displacement change of playing up frame size extremely.Wherein, the attribute information of described covering layer can be, but not limited to be transparent rectangle frame.
Particularly, client according to the reference point determined and the size playing up frame region, call a Marker function generate described in play up the covering layer in frame region.
When client determination mouse from one play up frame region be moved to another play up frame region time, the reference point playing up frame region that client is moved to recently according to mouse, the position of the mobile described covering layer generated.That is, the position at described covering layer place can be played up the change in frame region along with mouse place and move.
Step 206: client generate cover the current place of mouse play up the covering layer in frame region after, monitor the current operation whether had for this covering layer; If have, perform step 207; Otherwise, continue to monitor.
The operation of monitoring can be whether mouse has click (Click) event for covering layer to occur, if having, then defines the operation for this covering layer; Otherwise, represent not for the operation of this covering layer.
Step 207: client is to this locality or initiate inquiry request by API, comprises the general point information determined in described inquiry request.
In this step 207, when client listens to Click event, initiate the inquiry request including general point information, obtain the relevant information corresponding with the general point information of carrying in inquiry request, the general point information of carrying in described inquiry request is the mark or the general point coordinate that cover the general point that layer covers.
Wherein, described relevant information refers to the information be associated with general point information loaded in electronic chart, such as: the entertainment information etc. of the positional information relevant to a certain general point, transport information, Bus information, surrounding.
Particularly, if client stores the corresponding relation of each general information and this general point information related information in this locality, listen to current mouse for when covering the Click event of layer in client, relevant information corresponding to this general point information stored this locality is carried in this covering layer shows to user.
If client does not store the corresponding relation of each general information and each relevant information in this locality, current mouse is listened to for when covering the Click event of layer in client, initiate the inquiry request including general point information, information interaction is carried out by api interface and corresponding carrier server, obtain the relevant information corresponding with the general point information determined, and by the engine map of client this locality, the relevant information determined is carried in this covering layer.
More preferably, because client is after sending electronic chart request of access to rendering server, the general point Limited information that rendering server is determined according to the target information of carrying in the request of access received, and then the body of a map or chart that the electronic chart played up can for be checked is also limited, therefore, when client listens to the dragging event of mouse to the electronic chart of current display, namely (as the electronic chart of mouse to current display upwards pulls when client changes to the electronic chart that user shows, cause originally no longer showing in the part map section of electronic chart top display, originally non-existent map section needs after pulling, be presented at electronic chart bottom), now, client can by the map section that no longer shows and the general point information deletion of correspondence, and notify that rendering server needs newly-increased map section and the general point information of correspondence.
Rendering server is after receiving the notice of client, occur to client by pulling the rear general point information of the section of the map of displaying and correspondence that needs, by client, the map newly received is cut into slices as a part for the electronic chart pulling rear displaying, and store the general point information represented by general point mark of the mark correspondence of the map section newly received, afterwards, the scheme of the present embodiment two can be repeated, so that user operates the new electronic chart pulling rear displaying.
Distinguishingly, if user wishes the electronic chart checking other engineer's scales, then initiate new electronic chart request of access to client, and carry the parameter and target information of wishing the engineer's scale checked wherein.This electronic chart request of access is sent to rendering server by client, and rendering server sends new electronic chart according to the scheme of embodiment one to client again, and client also can perform the operation of the present embodiment two to the electronic chart newly received.
Embodiment three:
As shown in Figure 6, be the structural representation of the access services device of a kind of electronic chart of the present embodiment three, this server comprises: receiver module 61, search module 62 and sending module 64.Wherein,
Receiver module 61, for receiving the electronic chart request of access comprising general point mark that client is initiated;
Search module 62, the corresponding relation between identifying for the map section mark for storing according to this locality and general point, determines the map section mark of the general point mark correspondence in described electronic chart request of access;
Sending module 64, sends to client for being cut into slices by other maps of cutting into slices adjacent with this map in map section corresponding for the map determined section mark and electronic chart.
More preferably, this server also comprises:
Dividing module 65, for carrying out gridding operation to the electronic chart stored, obtaining the section of multiple map;
Determination module 66, for the general point that comprises in section according to the map, set up the corresponding relation that map section mark identifies with general point, wherein, the general point information that described general point mark is corresponding comprises the displaying mark that general point coordinate in electronic chart and each general point are shown on electronic chart;
Rendering module 63, for the general point coordinate in the general point information represented by the general point mark of correspondence, is rendered into the displaying mark in this general point information in the map section comprising described general point.
Particularly, described sending module, also for will the cut into slices general point information of the general point comprised of each map of client be sent to send to client.
Embodiment four:
As shown in Figure 7, be the structural drawing of the access client of a kind of electronic chart of the present embodiment four, this client comprises: request sending module 71, receiver module 72 and composite module 73.Wherein,
Request sending module 71, for sending the electronic chart request of access comprising general point mark to rendering server;
Receiver module 72, for receiving the map section that rendering server returns, the section of described map be rendering server identify according to the map section that this locality stores and general point identify between corresponding relation, determine the map section represented by map section mark of the general point mark correspondence in described electronic chart request of access, and other maps of cutting into slices adjacent with this map in electronic chart are cut into slices;
Composite module 73, for being combined into electronic chart by the map received section.
Particularly, described receiver module 72, also for after receiving map section, obtain from rendering server the map received to cut into slices the general point information of the general point comprised, described general point information comprises the displaying mark that general point coordinate in electronic chart and each general point are shown on electronic chart.
More preferably, this client also comprises: monitor module 74, judge module 75 and enquiry module 76.Wherein,
Monitor module 74, for monitoring mouse displacement MouseMove event;
Judge module 75, for judge mouse whether be arranged in client show electronic chart play up frame region;
Enquiry module 76, during for judge module judged result for being, according to the general point information received, determine the general point information played up represented by frame region at the current place of mouse, and inquire about the relevant information corresponding with the general point information determined in this locality or by application interface API.
Particularly, described enquiry module 76, specifically for generating the covering layer playing up frame region covering the current place of mouse, and monitor the operation whether had this covering layer, if so, then to local or initiate inquiry request by API, the general point information determined in described inquiry request, is comprised.
Described enquiry module 76, specifically for determining the reference point playing up frame region at the current place of mouse, and according to this reference point and the size playing up frame region, generates the covering layer playing up frame region described in covering.
Described enquiry module 76, also for play up at the current place of mouse position in frame region and this reference point playing up frame region do not cut into slices at same map time, determine that the section of the map belonging to position in frame region is played up at the current place of mouse, and determine that this plays up the reference point in frame region from cutting into slices adjacent map is cut into slices with the described map determined.
More preferably, this client also comprises: adjusting module 77.Wherein,
Adjusting module 77, for determine mouse from one play up frame region be moved to another play up frame region time, the reference point playing up frame region that client is moved to recently according to mouse, the position of the mobile described covering layer generated, and according to the size playing up frame region that mouse is moved to recently, the size of the described covering layer that adjustment generates.
Embodiment five:
As shown in Figure 8, be the structural representation of the access system of a kind of electronic chart of the present embodiment five, this system comprises: rendering server 81 and client 82.Wherein,
Rendering server 81, for receiving the electronic chart request of access comprising general point mark that client is initiated, corresponding relation between the map section mark stored according to this locality and general point identify, determine the map section mark that general point mark in described electronic chart request of access is corresponding, and other maps of cutting into slices adjacent with this map in map section corresponding for the map determined section mark and electronic chart are cut into slices send to client;
Client 82, for initiating described electronic chart request of access, and is combined into electronic chart by the map received section.
Particularly, described rendering server 81, electronic chart also for storing this locality carries out gridding operation, obtain the section of multiple map, and the general point comprised in cutting into slices according to the map, set up the corresponding relation that map section mark identify with general point, wherein, general point information corresponding to described general point mark comprises the displaying that general point coordinate in electronic chart and each general point show on electronic chart and identifies.
Described rendering server 81, also for cutting into slices for each map, represented by the general point of correspondence mark general point information in general point coordinate, the displaying mark in this general point information is rendered in the map section comprising described general point.
Described rendering server 81, also for will each map of client general point information comprising general point of cutting into slices be sent to send to client.
Described client 82, to cut into slices the general point information of the general point comprised for obtaining the map received from rendering server, described general point information comprises the displaying mark that general point coordinate in electronic chart and each general point are shown on electronic chart.
Described client 82, also for monitoring mouse displacement event, judge mouse whether be arranged in client show electronic chart play up frame region, if, then according to the general point information received, determine the general point information played up represented by frame region at the current place of mouse, and inquire about the relevant information corresponding with the general point information determined in this locality or by application interface API.
Described client 82, specifically for determining the reference point playing up frame region at the current place of mouse, and according to this reference point and the size playing up frame region, generates the covering layer playing up frame region described in covering.
Described client 82, specifically for generating the covering layer playing up frame region covering the current place of mouse, and monitor the operation whether had this covering layer, if, then to local or initiate inquiry request by API, in described inquiry request, comprise the general point information determined.
Described client 82, specifically for play up at the current place of mouse position in frame region and this reference point playing up frame region do not cut into slices at same map time, determine that the section of the map belonging to position in frame region is played up at the current place of mouse, and determine that this plays up the reference point in frame region from cutting into slices adjacent map is cut into slices with the described map determined.
Described client 82, also for determine mouse from one play up frame region be moved to another play up frame region time, the reference point playing up frame region that client is moved to recently according to mouse, the position of the mobile described covering layer generated, and according to the size playing up frame region that mouse is moved to recently, the size of the described covering layer that adjustment generates.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.