CN106708942A - Map engine implementation method and device - Google Patents
Map engine implementation method and device Download PDFInfo
- Publication number
- CN106708942A CN106708942A CN201611046233.0A CN201611046233A CN106708942A CN 106708942 A CN106708942 A CN 106708942A CN 201611046233 A CN201611046233 A CN 201611046233A CN 106708942 A CN106708942 A CN 106708942A
- Authority
- CN
- China
- Prior art keywords
- map
- tile map
- tile
- client
- vector
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Abstract
The invention discloses a map engine implementation method and device. The method comprises the following steps that: receiving a calling request; according to the calling request, sending a reference code to a client side, wherein the reference code enables the client side to quote a secondary development API (Application Program Interface) to obtain a tile map calling method of a search target; receiving the tile map calling method from the client side; according to the tile map calling method, loading a corresponding tile map; and sending the tile map to the client side to enable the client side to splice the tile map. On the basis of the method and the device, the tile map which is processed in advance is directly published, no complex logic processing is carried out in the publishing process, the requirements that a client day-to-day business system needs to embed the map for browsing and business data is displayed on the basis of the map can be met, and a system can be guaranteed to have the advantages of being small and light, low in learning cost, easy in deployment, easy in troubleshooting problems when mistakes are made, and is high in response speed.
Description
Technical field
The present embodiments relate to engine map technical field, more particularly to a kind of engine implementing method and device.
Background technology
With the continuous progress of geography information, the use of Map Services engine is more and more universal.
But for Map Services engine, general product is used from vector data start to process, dynamic place to go
Manage, issue map to be supplied to foreground to be called displaying.The shortcoming of this method is software too huge in itself, learning cost
It is high, it is not easy to dispose, investigation problem is not easy during error, response speed is slow.
The content of the invention
The present invention provides a kind of lightweight engine map implementation method and device, to improve the experience of Map Services engine.
To reach this purpose, the embodiment of the present invention uses following technical scheme:
A kind of engine map implementation method, including:
Receive call request;
Sent to client according to the call request and quote code, the reference code causes that the client quotes two
Secondary exploitation API obtains the tile map call method of search target;
Receive the tile map call method from the client;
Corresponding tile map is loaded according to the tile map call method;
The tile map is sent to the client so that the client splices the tile map.
Further, methods described, before corresponding tile map is loaded according to the tile map call method, also
Including:
Tile map download request is sent to the webserver;
Obtain the tile map that the webserver is transmitted according to the tile map download request;Or;
Map vector download request is sent to the webserver;
Obtain the map vector that the webserver is transmitted according to the map vector download request;
It is tile map form by the Format adjusting of the map vector.
Further, methods described, the tile map includes cartographic information and geographical location information, according to described watt
Before piece map call method loads corresponding tile map, also include:
The sequence being expert in the corresponding figure layer sequence number of the tile map, figure layer is determined according to the geographical location information
Number and figure layer in column sequence number.
Further, in the above method, the code of quoting is the Javascript reference documents of secondary development API.
Further, in the above method, the tile map call method is according to the corresponding search of the search target
Feature determines corresponding tile map.
Correspondingly, device is realized invention additionally discloses a kind of engine map, including:
Call request receiver module, for receiving call request;
Code sending module is quoted, code, the reference generation are quoted for being sent to client according to the call request
Code causes that the client quotes the tile map call method that secondary development API obtains search target;
Method receiver module, for receiving the tile map call method from the client;
Tile map load-on module, for loading corresponding tile map according to the tile map call method;
Tile map sending module, for the tile map to be sent to the client so that client's end matching
Connect the tile map.
Further, described device, also includes:
Tile map download request module, for loading corresponding tile map according to the tile map call method
Before, tile map download request is sent to the webserver;
Tile map acquisition module, for obtaining what the webserver was transmitted according to the tile map download request
Tile map;Or;
Map vector download request module, for sending map vector download request to the webserver;
Map vector acquisition module, for obtaining what the webserver was transmitted according to the map vector download request
Map vector;
Format map adjusting module, for being tile map form by the Format adjusting of the map vector.
Further, in said apparatus, the tile map includes cartographic information and geographical location information, also includes:
Tile map sequence number determining module, for loading corresponding tile map according to the tile map call method
Before, the sequence number being expert in the corresponding figure layer sequence number of the tile map, figure layer is determined according to the geographical location information
With the sequence number of the column in figure layer.
Further, in said apparatus, the code of quoting is the Javascript reference documents of secondary development API.
Further, in said apparatus, the tile map call method is according to the corresponding search of the search target
Feature determines corresponding tile map.
The technical scheme that the embodiment of the present invention is provided, is directly issued by the tile map that will be handled well in advance, middle
The logical process of any complexity is not carried out, be disclosure satisfy that client's routine work system needs to be embedded in map and browsed and be based on
Map shows the demand of business datum, moreover it is possible to ensure that system is merrily and lightheartedly compact, learning cost is low, and easily deployment, easily arranges during error
Interrogate topic, fast response time.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of engine map implementation method that the embodiment of the present invention one is provided;
The engine map calling platform practical structures figure that Fig. 2 is applicable by the embodiment of the present invention one;
Fig. 3 is the structural representation that a kind of engine map that the embodiment of the present invention two is provided realizes device.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part rather than entire infrastructure related to the present invention is illustrate only in description, accompanying drawing.
Embodiment one
Accompanying drawing 1 is referred to, is a kind of schematic flow sheet of engine map implementation method that the embodiment of the present invention one is provided, should
Method is applied to the scene of map view application, and the method realizes device to perform that the device can be by software by engine map
And/or hardware is realized, is integrated in the inside of background server.The method specifically includes following steps:
S110, reception are called please.;
Specifically, background server receives the call request of foreground client, the call request goes to adjust for obtaining authority
With the secondary development API in background server, authority is obtained by background server equivalent to by call request
Secondary development API is transferred in foreground client, and corresponding map view application is completed with foreground client.The background service
Device is preferably Tomcat (tom cat) server.
S120, sent to client according to the call request and quote code, the reference code causes the client
Quote the tile map call method that secondary development API obtains search target.
Specifically, the code of quoting is the Javascript reference documents of secondary development API.Foreground client is being obtained
Before tile map call method, the reference qualification of map secondary development API is first obtained, so sending tune in foreground client
After request, background server can first give the qualification that foreground client permits quoting secondary development API, and the qualification passes through
Quote what code was realized, the code of quoting is the Javascript reference documents of secondary development API.
S130, the tile map call method of the reception from the client.
It should be noted that the tile map call method is to be determined according to the corresponding search characteristics of the search target
Corresponding tile map.
When it needs to be determined that during the search corresponding tile map of target, it is only necessary to match the search target is corresponding and search
Suo Tezheng, it is preferred that the search characteristics are corresponding to tile map imparting according to the geographical location information
The sequence number of the column in the sequence number and figure layer be expert in figure layer sequence number, figure layer, for example, can be that the search target is
Beijing, Pekinese geographical position and the layer for being included, row, column information are known, it is only necessary in corresponding tile map storehouse
Rigen transfers target tile map according to corresponding layer, row, column information.
S140, corresponding tile map is loaded according to the tile map call method.
It should be noted that obtain every tile as described in 130, in tile map storehouse being issued by Tomcat servers
Before, every specific search characteristics of tile map are all imparted according to geographical location information, by specific search characteristics shape
Into the tile map transferred of call method be stored in tile map storehouse.The storage rule in the tile map storehouse
For:To be first layered, then branch, row are divided afterwards.For example can be, Pekinese's tile map for the second layer the 5th row the 100th to
105th to 110 row of the 6th row of 112 row, the 98th to 115 row of the 6th row and third layer.
Optionally, can also include before S140:Tile map download request is sent to the webserver;Obtain described
The tile map that the webserver is transmitted according to the tile map download request;Or;
Map vector download request is sent to the webserver;The webserver is obtained according to vector ground
The map vector of figure download request transmission;It is tile map form by the Format adjusting of the map vector.
It should be noted that the tile map downloaded or the tile map as obtained by map vector is adjusted must all include
Cartographic information and geographical location information, for as every foundation of tile map special characteristic of imparting.
S150, the tile map is sent to the client so that the client splices the tile map.
Specifically, the tile map is sent into the secondary development API of client reference, secondary development API is being spelled
When connecing tile map, the special characteristic information in tile map is based on.For example can be that Pekinese's tile map is first spelled
Connect the second layer the 5th row the 100th to 112 row, splice again the 6th row the 98th to 115 row, then splice third layer the 6th row
The 105th to 110 row, the second last layer stacks splicing with third layer to be completed final map splicing and shows.
Above-mentioned engine map implementation method, can be realized by engine map calling platform, and it is by background server and preceding
Two parts of platform client are constituted.Concrete structure relation refers to Fig. 2, and Fig. 2 is drawn by the map that the embodiment of the present invention one is applicable
Hold up calling platform practical structures figure.
Background server includes map tile storehouse, secondary development API and the Tomcat server based on openlayers etc.
Functional module.
Foreground client includes business application system, can meet the daily industry of client by with background server real-time interaction
Business system needs to be embedded in the demand that map is browsed and shown business datum based on map, by mobile network and background service
Device docking contact.
It should be noted that two dotted line frames of foreground client be represent inframe content originally be not appear in foreground
Client, concrete reason is as follows:Foreground client after business application system obtains the reference authority of secondary development API,
Applied equivalent to the secondary development API in background server is transferred in foreground client, the parsing of follow-up tile map
Then displaying is also to be carried out in the secondary development API that foreground client is quoted with splicing.
In sum, the embodiment of the present invention one discloses a kind of engine map implementation method, by that will handle well in advance
Tile map is directly issued, and centre does not carry out the logical process of any complexity, disclosure satisfy that client's routine work system needs
Embedded map is browsed and is shown the demand of business datum based on map, moreover it is possible to ensure that system is merrily and lightheartedly compact, learning cost is low,
Easily deployment, easily problem, fast response time are investigated during error.
Embodiment two
Accompanying drawing 2 is referred to, is that a kind of engine map that the embodiment of the present invention two is provided realizes the structural representation of device, should
Device is specifically comprising such as lower module:
Call request receiver module 210, for receiving call request;
Code sending module 220 is quoted, code, the reference are quoted for being sent to client according to the call request
Code causes that the client quotes the tile map call method that secondary development API obtains search target;
Method receiver module 230, for receiving the tile map call method from the client;
Tile map load-on module 240, for loading corresponding tile map according to the tile map call method;
Tile map sending module 250, for the tile map to be sent to the client so that the client
Splice the tile map.
Preferably, described device, also includes:
Tile map download request module, for loading corresponding tile map according to the tile map call method
Before, tile map download request is sent to the webserver;
Tile map acquisition module, for obtaining what the webserver was transmitted according to the tile map download request
Tile map;Or;
Map vector download request module, for sending map vector download request to the webserver;
Map vector acquisition module, for obtaining what the webserver was transmitted according to the map vector download request
Map vector;
Format map adjusting module, for being tile map form by the Format adjusting of the map vector.
Preferably, in said apparatus, the tile map includes cartographic information and geographical location information, also includes:
Tile map sequence number determining module, for loading corresponding tile map according to the tile map call method
Before, the sequence number being expert in the corresponding figure layer sequence number of the tile map, figure layer is determined according to the geographical location information
With the sequence number of the column in figure layer.
Preferably, in said apparatus, the code of quoting is the Javascript reference documents of secondary development API.
Preferably, in said apparatus, the tile map call method is special according to the corresponding search of the search target
Levy the corresponding tile map of determination.
The present embodiment is by receiving call request;Sent to client according to the call request and quote code, it is described to draw
With code so that the client quotes the tile map call method that secondary development API obtains search target;Receive from institute
State the tile map call method of client;Corresponding tile map is loaded according to the tile map call method;Will
The tile map is sent to the client so that the client splices the tile map.Based on the above method and dress
Put, directly issued by the tile map that will be handled well in advance, centre does not carry out the logical process of any complexity, disclosure satisfy that
Client's routine work system needs to be embedded in the demand that map is browsed and shown business datum based on map, moreover it is possible to ensure system
Slim and graceful compact, learning cost is low, and easily deployment, easily problem, fast response time are investigated during error.
The said goods can perform the method that any embodiment of the present invention is provided, and possess the corresponding functional module of execution method
And beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of engine map implementation method, it is characterised in that including:
Receive call request;
Sent to client according to the call request and quote code, the reference code causes that the client quotes secondary opening
Hair API obtains the tile map call method of search target;
Receive the tile map call method from the client;
Corresponding tile map is loaded according to the tile map call method;
The tile map is sent to the client so that the client splices the tile map.
2. method according to claim 1, it is characterised in that corresponding being loaded according to the tile map call method
Before tile map, also include:
Tile map download request is sent to the webserver;
Obtain the tile map that the webserver is transmitted according to the tile map download request;Or;
Map vector download request is sent to the webserver;
Obtain the map vector that the webserver is transmitted according to the map vector download request;
It is tile map form by the Format adjusting of the map vector.
3. method according to claim 2, it is characterised in that the tile map includes that cartographic information and geographical position are believed
Breath, before corresponding tile map is loaded according to the tile map call method, also includes:
According to the geographical location information determine the sequence number being expert in the corresponding figure layer sequence number of the tile map, figure layer and
The sequence number of the column in figure layer.
4. method according to claim 1, it is characterised in that the reference code is secondary development API's
Javascript reference documents.
5. method according to claim 1, it is characterised in that the tile map call method is according to the search mesh
Mark corresponding search characteristics and determine corresponding tile map.
6. a kind of engine map realizes device, it is characterised in that including:
Call request receiver module, for receiving call request;
Code sending module is quoted, code is quoted for being sent to client according to the call request, the reference code makes
Obtain the client and quote the tile map call method that secondary development API obtains search target;
Method receiver module, for receiving the tile map call method from the client;
Tile map load-on module, for loading corresponding tile map according to the tile map call method;
Tile map sending module, for the tile map to be sent to the client so that the client splices institute
State tile map.
7. device according to claim 6, it is characterised in that also include:
Tile map download request module, for according to the tile map call method load corresponding tile map it
Before, send tile map download request to the webserver;
Tile map acquisition module, for obtaining the tile that the webserver is transmitted according to the tile map download request
Map;Or;
Map vector download request module, for sending map vector download request to the webserver;
Map vector acquisition module, for obtaining the vector that the webserver is transmitted according to the map vector download request
Map;
Format map adjusting module, for being tile map form by the Format adjusting of the map vector.
8. device according to claim 7, it is characterised in that the tile map includes that cartographic information and geographical position are believed
Breath, also includes:
Tile map sequence number determining module, for according to the tile map call method load corresponding tile map it
Before, according to the geographical location information determine the sequence number being expert in the corresponding figure layer sequence number of the tile map, figure layer and
The sequence number of the column in figure layer.
9. device according to claim 6, it is characterised in that the reference code is secondary development API's
Javascript reference documents.
10. device according to claim 6, it is characterised in that the tile map call method is according to the search
The corresponding search characteristics of target determine corresponding tile map.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611046233.0A CN106708942A (en) | 2016-11-22 | 2016-11-22 | Map engine implementation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611046233.0A CN106708942A (en) | 2016-11-22 | 2016-11-22 | Map engine implementation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106708942A true CN106708942A (en) | 2017-05-24 |
Family
ID=58934721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611046233.0A Pending CN106708942A (en) | 2016-11-22 | 2016-11-22 | Map engine implementation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708942A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104933057A (en) * | 2014-03-18 | 2015-09-23 | 北京图盟科技有限公司 | Map service providing method and apparatus |
CN105447101A (en) * | 2015-11-12 | 2016-03-30 | 北京锐安科技有限公司 | Map engine implementation method and apparatus |
CN106250062A (en) * | 2016-08-15 | 2016-12-21 | 成都天奥信息科技有限公司 | Electronic chart realization method and system based on browser |
-
2016
- 2016-11-22 CN CN201611046233.0A patent/CN106708942A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104933057A (en) * | 2014-03-18 | 2015-09-23 | 北京图盟科技有限公司 | Map service providing method and apparatus |
CN105447101A (en) * | 2015-11-12 | 2016-03-30 | 北京锐安科技有限公司 | Map engine implementation method and apparatus |
CN106250062A (en) * | 2016-08-15 | 2016-12-21 | 成都天奥信息科技有限公司 | Electronic chart realization method and system based on browser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10533871B2 (en) | Rendering a map using style identifiers | |
US20120158893A1 (en) | Methods and apparatus for enabling a hybrid web and native application | |
CN111462281A (en) | Poster generation method, device, equipment and storage medium | |
CN107066631A (en) | Display methods, device and the electronic equipment of the page | |
US10380748B2 (en) | Method and apparatus for determining to-be-superimposed area of image, superimposing image and presenting picture | |
CN107066609A (en) | Image display method and device | |
US10614621B2 (en) | Method and apparatus for presenting information | |
CN104541262A (en) | System and method for transparent in-network adaptation of rich internet applications | |
CN105378662A (en) | Bundle package generation | |
CN110058854B (en) | Method, terminal device and computer-readable medium for generating application | |
US20180293610A1 (en) | Methods and systems for integrating applications into a content recommendation network | |
CN111722885A (en) | Program running method and device and electronic equipment | |
CN108776592A (en) | A kind of method, apparatus of page makeup, equipment and storage medium | |
CN108733317A (en) | Date storage method and device | |
Peterson | Online mapping with APIs | |
CN112115217A (en) | Data processing method and device for high-precision map, electronic equipment and storage medium | |
CN114911595A (en) | Animation resource information processing method, device, equipment, medium and product | |
CN103699652A (en) | Webpage access method and webpage access system | |
CN107147706A (en) | Data export method and device | |
CN112486825B (en) | Multi-lane environment architecture system, message consumption method, device, equipment and medium | |
CN103379022B (en) | A kind of instant communication method based on Internet map search and system | |
CN105989075A (en) | Method, device and system for displaying image by browser | |
CN106708942A (en) | Map engine implementation method and device | |
CN109781135B (en) | Information screen information supplement display method, system and application of road-directing robot | |
CN102523271A (en) | Terminal and communication method and system thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |
|
RJ01 | Rejection of invention patent application after publication |