CN110334163A - Map background optimization method, device, equipment and the storage medium of big data - Google Patents
Map background optimization method, device, equipment and the storage medium of big data Download PDFInfo
- Publication number
- CN110334163A CN110334163A CN201910430063.3A CN201910430063A CN110334163A CN 110334163 A CN110334163 A CN 110334163A CN 201910430063 A CN201910430063 A CN 201910430063A CN 110334163 A CN110334163 A CN 110334163A
- Authority
- CN
- China
- Prior art keywords
- picture
- map
- background
- novel type
- primary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
Abstract
The embodiment of the present application discloses map background optimization method, device, equipment and the storage medium of a kind of big data, is related to electronic geographic-information technical field.A kind of map background optimization method of big data, comprising: read network map, and obtain primary map;Generate the novel type picture for matching the former background picture of the primary map;The novel type picture is set as to the new background picture of the primary map;The cascading style sheets rule for configuring the novel type picture forms the novel type picture and the response type of the window is laid out.Method described in the embodiment of the present application, it is laid out by setting response type, the picture as new background can be allowed to keep dynamic variation with the size and location after the former background picture variation of Proterozoic figure in automatic adaptation container, to avoid the problem that occurring anchor point dislocation when map changes, and it does not need to increase monitoring event, the code used is more succinct, configures more simple and convenient.
Description
Technical field
The invention relates to electronic geographic-information technical field, the map background optimization side of especially a kind of big data
Method, device, equipment and storage medium.
Background technique
With the development of data technique, people often use Echarts (business level data drawing list) and carry out drawing for chart
System, wherein the map components provided in Echarts, can support user to carry out simple mapping, especially such as vector
Figure.But the map drawn out by pure Echarts, pattern is simple, and visual effect is poor, and the use being unable to satisfy usually needs
It asks, simultaneously for requiring that the polar plot for meeting demand can not be provided when relatively high data visualization product effect.And according to sample
Formula demand is customized, to carry out the picture of processing generation as after the background picture of map as prototype according to primary map, by
The background picture size variation mode and primary map provided after customized is inconsistent, will lead to asking for anchor point serious dislocation
Topic.
Aiming at the problem that anchor point misplaces when map variation at present, it can be controlled with the code of javascript,
By monitoring the window size variation of container locating for primary map, the size of background picture, and adjust automatically background are recalculated
The size of picture makes background picture be paved with the window of whole container, finally realizes the adaptive change of the size of background picture.But
In the scheme using javascript control picture size variation, need plus monitoring event, code used is cumbersome, matches
Set more complex, and performance is general.
Summary of the invention
The technical problem to be solved in the embodiments of the present application is that providing a kind of map background optimization method of big data, dress
It sets, equipment and storage medium, avoids the problem that occurring anchor point dislocation when map changes, and without increasing monitoring event, configure
It is more simple and convenient.
In order to solve the above-mentioned technical problem, a kind of map background optimization method of big data described in the embodiment of the present application,
Using technical solution as described below:
A kind of map background optimization method of big data, comprising:
Network map is read, and obtains the primary map rendered by geographic information data true in the network map;
The geographical feature for retaining the primary map configures its map styles to generate the former back of the matching primary map
The novel type picture of scape picture;
The novel type picture is placed in the window of container locating for the primary map, and is set as the primary map
New background picture;
The cascading style sheets rule for configuring the novel type picture, forms the novel type picture for the sound of the window
Formula is answered to be laid out, so that the position of original background picture described in the novel type map match, and keep and the former background picture
The state change of size and location is synchronous.
The map background optimization method of the big data is laid out by setting response type, and formula principle is adaptive according to response
Answering property can allow the picture as new background that dynamic is kept to change with the former background picture of Proterozoic figure in automatic adaptation container
Size and location after variation, to avoid the problem that occurring anchor point dislocation when map changes, and it does not need to increase prison
Event is listened, the code used is more succinct, and configuration is more simple and convenient, promote the performance of system also can.
Further, the map background optimization method of the big data, it is described to generate the original for matching the primary map
The step of when the novel type picture of background picture includes:
Obtain the size and display scale of the former background picture of the primary map;
The size and display ratio of the novel type picture is arranged in the size and display scale of former background picture based on acquisition
Example, so that the new design picture is identical as the size of former background picture of the primary map and display scale is consistent.
It can be convenient the novel type picture to be placed in container locating for the former background picture of the primary map, and make institute
It states novel type picture and preferably replaces new background picture of the former background picture as the primary map.
Further, the map background optimization method of the big data, it is described to generate the original for matching the primary map
The step of when the novel type picture of background picture further include:
Detect whether surrounding in map area shown by the novel type picture has white space;
If there is white space, the white space is deleted, readjusts the size and display scale of the novel type picture
Until identical as the former background picture.
When the display state of primary map changes, the novel type picture and the primary map are stretched in realization
The synchronously control of contracting makes to show that content is consistent with desired effect.
Further, the map background optimization method of the big data, it is described the novel type picture is placed in it is described
In the window of container locating for primary map, and the step of being set as the new background picture of the primary map includes:
The novel type picture is completely covered by the former background picture of the primary map;
The former background picture of the primary map is hidden, so that the novel type picture replaces the former back of the primary map
Scape picture.
What is made that user is subsequent and observe when consulting a map is the map styles after optimization, it is convenient to novel type picture described
Position in the window of container is positioned.
Further, the map background optimization method of the big data, the setting novel type picture for
After the step of response type layout of the window, the method also includes:
After the primary map location status changes, the hiding former background picture is shown;Obtain the original
The overlap condition of background picture and the novel type picture, judges whether the two is completely coincident.
By showing the former background picture hidden again, it can be convenient and judge that primary map generating state becomes
After change, whether the novel type picture is consistent with the former state change of background picture.
Further, the map background optimization method of the big data, the configuration novel type picture is described
The step of cascading style sheets rule in window includes:
Backgroudn-position parameter is set, for being located in the novel type picture described in the window
At the position of former background picture;
Background-size parameter is set, for guaranteeing the ruler of original background picture described in the novel type picture tracking
Very little variation is simultaneously consistent;
Backgroudn-position parameter is set, for position of the novel type picture in the window into
Row positioning, to guarantee the change in location of original background picture described in the novel type picture tracking and be consistent.
Cascading style sheets rule is set by above-mentioned parameters, realizes the novel type picture in the window of the container
It follows the dynamic of former background picture to change and change and keep the consistency of variation in mouthful, finally avoids the former background picture
The problems such as anchor point misplaces between the novel type picture, realization longitude and latitude system and plane coordinate system are perfectly combined.
In order to solve the above-mentioned technical problem, the embodiment of the present application also provides a kind of map background optimization device of big data,
Using technical solution as described below:
A kind of map background optimization device of big data, comprising:
Read module for reading network map, and is obtained and is rendered by geographic information data true in the network map
Primary map;
Customized module configures its map styles for retaining the geographical feature of the primary map to generate described in matching
The novel type picture of the former background picture of primary map;
Replacement module for the novel type picture to be placed in the window of container locating for the primary map, and is set as
The new background picture of the primary map;
Synchronization module forms the novel type picture pair for configuring the cascading style sheets rule of the novel type picture
It is laid out in the response type of the window, so that the position of original background picture described in the novel type map match, and holding and institute
The state change for stating the size and location of former background picture is synchronous.
The map background of the big data optimizes device, is laid out by setting response type, formula principle is adaptive according to response
Answering property can allow the picture as new background that dynamic is kept to change with the former background picture of Proterozoic figure in automatic adaptation container
Size and location after variation, to avoid the problem that occurring anchor point dislocation when map changes, and it does not need to increase prison
Event is listened, the code used is more succinct, and configuration is more simple and convenient, promote the performance of system also can.
Further, the map background of the big data optimizes device, and the customized module is described primary for obtaining
The size and display scale of the former background picture of map, and institute is arranged in the size of the former background picture based on acquisition and display scale
The size and display scale of novel type picture are stated, so that the ruler of the former background picture of the new design picture and the primary map
Very little identical and display scale is consistent.
In order to solve the above-mentioned technical problem, the embodiment of the present application also provides a kind of computer equipment, uses as described below
Technical solution:
A kind of computer equipment, including memory and processor are stored with computer program, the place in the memory
Reason device realizes the map background optimization of the big data as described in above-mentioned any one technical solution when executing the computer program
The step of method.
In order to solve the above-mentioned technical problem, the embodiment of the present application also provides a kind of computer readable storage medium, uses
Technical solution as described below:
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The map background optimization of the big data as described in above-mentioned any one technical solution is realized when computer program is executed by processor
The step of method.
Compared with prior art, the embodiment of the present application mainly have it is following the utility model has the advantages that
The embodiment of the present application discloses map background optimization method, device, equipment and the storage medium of a kind of big data, this
The map background optimization method for applying for big data described in embodiment includes: reading network map, and obtains primary map;It generates
Match the novel type picture of the former background picture of the primary map;The novel type picture is set as the new of the primary map
Background picture;The cascading style sheets rule for configuring the novel type picture, forms the novel type picture for the window
Response type layout so that the position of original background picture described in the novel type map match, and keep and the original Background
The state change of the size and location of piece is synchronous.It is laid out by setting response type, the adaptivity of formula principle can be with according to response
After allowing the picture as new background that dynamic variation is kept to change with the former background picture of Proterozoic figure in automatic adaptation container
Size and location, to avoid the problem that occurring anchor point dislocation when map changes, and it does not need to increase monitoring event, makes
Code is more succinct, and configuration is more simple and convenient, promote the performance of system also can.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is that the embodiment of the present application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the map background optimization method of big data described in the embodiment of the present application;
Fig. 3 is the structural representation that the map background of big data described in the embodiment of the present application optimizes one embodiment of device
Figure;
Fig. 4 is the structural schematic diagram of one embodiment of computer equipment in the embodiment of the present application.
Specific embodiment
Unless otherwise defined, all technical and scientific terms used herein and the technical field for belonging to the application
The normally understood meaning of technical staff is identical.The term used in the description of the present application is intended merely to description tool herein
The purpose of the embodiment of body, it is not intended that in limitation the application.
It should be noted that the description and claims of this application and the term " includes " in above-mentioned attached drawing, " packet
Containing " and " having " and their any deformations, it is intended that it covers and non-exclusive includes.Such as contain series of steps or list
The process, method, system, product or equipment of member are not limited to listed step or unit, but optionally further comprising do not have
The step of listing or unit, or optionally further comprising other steps intrinsic for these process, methods, product or equipment or
Unit.Term in following claims, specification and Figure of description, " first " and " second " etc. it
The relational terms of class are used merely to distinguish an entity/operation/object and another entity/operation/object, and different
Provisioning request implies that there are any actual relationship or orders between these entity/operation/objects.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
In order to make those skilled in the art more fully understand the scheme of the application, below in conjunction in the embodiment of the present application
Relevant drawings, the technical scheme in the embodiment of the application is clearly and completely described.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications can be installed, such as web browser is answered on terminal device 101,102,103
With, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, packet
Include but be not limited to smart phone, tablet computer, E-book reader, MP3 player (MovingPicture Experts
Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture
Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable
Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to showing on terminal device 101,102,103
The page provides the background server supported.
It should be noted that the map background optimization method of big data provided by the embodiment of the present application is generally by servicing
Device/terminal device executes, and correspondingly, the map background optimization device of big data is generally positioned in server/terminal equipment.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, a reality of the map background optimization method of big data described in the embodiment of the present application is shown
Apply the flow chart of example.The map background optimization method of the big data, comprising the following steps:
Step 201: read network map, and obtain rendered by geographic information data true in the network map it is primary
Map.
Primary map in the embodiment of the present application, refer to by Echarts according to true geographic information data render come ground
Figure, the form of map normally behave as the map vector of plane.The map Auto-matching longitude and latitude system, therefore user can root
Each point on the primary map is positioned according to latitude and longitude coordinates.Read network map and according to the network map
After rendering primary map, the primary map can also export to local in the form of picture.
But the primary map drawn out by pure Echarts, geographical pattern is fairly simple coarse, especially land pattern
Controllability is poor, and the display of map is made to seem that comparison is chaotic, and the visual effect of map is caused to seem very general.In this way, when one
When some relatively high data visualization effects of a little project demand, this primary map is just unable to satisfy expected demand, needs
The map styles of primary map are optimized.
In the embodiment of the present application, the electronic equipment (example of the map background optimization method operation of the big data thereon
Server/terminal equipment as shown in Figure 1) it can receive what user issued by wired connection mode or radio connection
For reading the instruction of network map.It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/4G company
It connects, WiFi connection, bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection and other are existing
In known or exploitation in the future radio connection.
Step 202: retaining the geographical feature of the primary map, configure its map styles to generate the matching Proterozoic
The novel type picture of the former background picture of figure.
The geographical feature includes: the physiogeographic content such as the band of position, landform, weather, soil, vegetation, hydrology, with
And population, traffic, economy, city situation, etc. political geographies content.
The novel type picture be using picture profile derived from the primary map as prototype, it is enterprising in this prototype foundation
The map picture ultimately generated after row beautification, the processing of enhancing visual effect.The i.e. described novel type picture remains described primary
The geographical feature of map, matches from the geographical feature of primary map but pattern is set as different.
It is described beautification, enhancing visual effect processing include: projection, additive color, retouch side, increase plane 3D display effect,
More simple color etc. is set.And preferable pattern can then continue to continue to use in primary map, such as the mark of shining point form
The patterns such as the course line between special efficacy, and the shining point of connection shining point.By the processing of above-mentioned pattern, so as to get
Display effect is more preferable, more meets the map picture for the demand of checking.
In a kind of specific embodiment of the embodiment of the present application, due to the pattern on land in world map controllability compared with
Difference, pattern be simple, land and ocean boundary fuzzy, and national is large number of, and the boundary line between country does not hide or sets
Set transparency, lines when display are excessive, so that seeming very chaotic to the perception of entire map.Therefore in this world map
On the basis of make novel type picture when, the plane 3D effect on land can be enhanced, by land country between boundary line concealing
Or it is set as transparent, and use display effect more preferably monotone color as the shining point special efficacy on background colour and map
Look up.The novel type picture so generated after optimization is just provided with more preferably visual effect, is more able to satisfy user and consults a map
When demand.
In the embodiment of the present application, when the novel type picture of the former background picture for generating the matching primary map
Step includes:
Obtain the size and display scale of the former background picture of the primary map;The ruler of former background picture based on acquisition
The size and display scale of the novel type picture is arranged in very little and display scale, so that the new design picture and the Proterozoic
The size of the former background picture of figure is identical and display scale is consistent.
The novel type picture is placed in container locating for the former background picture of the primary map for convenience, and makes institute
It states novel type picture and preferably replaces new background picture of the former background picture as the primary map, the new sample need to be made
The geodata that formula picture is shown and the geodata in the former background picture are identical as much as possible, therefore remaining
After stating the geographical feature in former background picture, also need to keep size between the novel type picture and the former background picture and
Display scale is identical, i.e., size and display scale between the two is 1:1.
In the embodiment of the present application, the container visual is DOM (Document Object Model, DOM Document Object Model)
Element, DOM are the programming interface of document, it indicates the master pattern of object in document, can be used for any programming language.
In the embodiment of the present application, when the novel type picture of the former background picture for generating the matching primary map
Step further include:
Detect whether surrounding in map area shown by the novel type picture has white space;If there is white space,
The white space is deleted, the size and ratio for readjusting the novel type picture are until identical as the former background picture.
For the content of the novel type picture other than the essential elements such as the geographical feature of display map, surrounding is empty if it exists
White region will cause when the display state of primary map changes, the novel type picture and the primary map
Retractility can not synchronously control, make to show that content with desired effect deviation occurs.
Specifically, the retractility of the primary map is consistent with the retractility of general picture, belonging to coordinate system be warp
Latitude system.When primary map zooms in and out, the part of scaling does not include the blank of the former background picture surrounding of primary map
Region, the i.e. size of white space can remain unchanged;And coordinate system belonging to the novel type picture is similar to plane coordinate system,
When zooming in and out, the white space size of surrounding can be scaled with the variation of its scaling by multiple.If the therefore novel type figure
There are white spaces for the surrounding of piece, then after primary map zooms in and out, the white space size of former background picture surrounding is kept
It is constant, but the white space size on novel type picture can change with the variation of primary map, just can not make at this time primary
Retractility between map and novel type picture is consistent, it may appear that anchor point serious dislocation between two kinds of coordinate systems is asked
Topic.
Therefore it needs to get rid of the white space on the novel type picture, keeps between primary map and novel type picture
Retractility it is consistent, avoid the occurrence of display dislocation the problem of.
Step 203: the novel type picture being placed in the window of container locating for the primary map, and be set as the original
The new background picture of Radix Rehmanniae figure.
After generating novel type picture, the original can be inserted into using the novel type picture as new background picture
In container locating for Radix Rehmanniae figure, instead of the former background picture of the primary map, it is placed in the window of container locating for former background picture
At mouth position.
In the embodiment of the present application, the window that the novel type picture is placed in container locating for the primary map
In, and the step of being set as the new background picture of the primary map includes:
The novel type picture is completely covered by the former background picture of the primary map;Hide the primary map
Former background picture so that the novel type picture replaces the former background picture of the primary map.
The former background picture is replaced as the map denotation of the primary map using the novel type map, and hides institute
Former background picture is stated, what is observed when consulting a map so as to making that user is subsequent is the map styles after optimization, and with complete
The mode of covering, which is replaced, to be positioned position of the novel type picture in the window of the container with can be convenient.
Step 204: configuring the cascading style sheets rule of the novel type picture, form the novel type picture for described
The response type of window is laid out, so that the position of original background picture described in the novel type map match, and keep and the former back
The state change of the size and location of scape picture is synchronous.
In the embodiment of the present application, by configuring CSS (CascadingStyle of the novel type picture in the window
Sheets, cascading style sheets rule), so that the novel type picture is located in the position of original background picture described in the window
Place, can follow the size of the former background picture and the state change of position and to change holdings with it synchronous, realize described in
Novel type picture is kinematically located in completely overlapped with it on the position of the former background picture, thus sets the novel type
Picture is laid out the response type of the window.
In a kind of embodiment of the embodiment of the present application, the cascading style sheets rule of the configuration novel type picture
The step of include:
Backgroudn-position parameter is set, this parameter is for making the novel type picture be located in the window
At the position of original background picture described in mouthful;
Background-size parameter is set, this parameter is for guaranteeing original background described in the novel type picture tracking
The change in size of picture is simultaneously consistent;
Backgroudn-position parameter is set, this parameter is used for the novel type picture in the window
Position positioned, to guarantee the change in location of original background picture described in the novel type picture tracking and be consistent.
Cascading style sheets rule is set by above-mentioned parameters, realizes the novel type picture in the window of the container
It follows the dynamic of former background picture to change and change and keep the consistency of variation in mouthful, finally avoids the former background picture
The problems such as anchor point misplaces between the novel type picture, realization longitude and latitude system and plane coordinate system are perfectly combined.
In a kind of embodiment of the embodiment of the present application, in the setting novel type picture for the window
After the step of response type is laid out, the method also includes:
After the primary map location status changes, shows the hiding former background picture, obtain the original
The overlap condition of background picture and the novel type picture, judges whether the two is completely coincident.
By showing the former background picture hidden again, it can be convenient and judge that primary map generating state becomes
After change, whether the novel type picture is consistent with the former state change of background picture.If consistent indicate to be able to maintain variation
Synchronization, error detection is needed if inconsistent, and again configuration layer stacking style table rule to response type layout be adjusted update.
The map background optimization method of big data described in the embodiment of the present application is laid out, according to sound by setting response type
Answer the adaptivity of formula principle that can allow the picture as new background that dynamic is kept to change with Proterozoic in automatic adaptation container
Size and location after the former background picture variation of figure, thus avoid the problem that occurring anchor point dislocation when map changes, and
It does not need to increase monitoring event, and the code used is more succinct, and configuration is more simple and convenient, be able to the performance of system can yet
It is promoted.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated between
In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be
The non-volatile memory mediums such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random storage note
Recall body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
It is shown with further reference to Fig. 3, Fig. 3 and optimizes device for the map background of big data described in the embodiment of the present application
The structural schematic diagram of one embodiment.As the realization to method shown in above-mentioned Fig. 2, this application provides a kind of ground of big data
Figure background optimizes one embodiment of device, and the Installation practice is corresponding with embodiment of the method shown in Fig. 2, and the device is specific
It can be applied in various electronic equipments.
As shown in figure 3, the map background optimization device of big data described in the present embodiment includes:
Read module 301;For reading network map, and obtain by geographic information data wash with watercolours true in the network map
The primary map of dye.
Customized module 302;For retaining the geographical feature of the primary map, its map styles is configured to generate matching institute
State the novel type picture of the former background picture of primary map.
In the embodiment of the present application, the customized module 302 is used to obtain the ruler of the former background picture of the primary map
Very little and display scale, and the size of the former background picture based on acquisition and display scale be arranged the novel type picture size and
Display scale, so that the new design picture is identical as the size of former background picture of the primary map and display scale one
It causes.
In the embodiment of the embodiment of the present application, the customized module 302 is also used to detect the novel type picture institute
Whether surrounding has white space in the map area of display;If there is white space, the white space is deleted, described in readjustment
The size and display scale of novel type picture are until identical as the former background picture.
Replacement module 303;For the novel type picture to be placed in the window of container locating for the primary map, and set
For the new background picture of the primary map.
In the embodiment of the present application, the replacement module 303 is used to the novel type picture being completely covered by the original
On the former background picture of Radix Rehmanniae figure;The former background picture of the primary map is hidden, so that described in novel type picture replacement
The former background picture of primary map.
Synchronization module 304;Configure the novel type picture cascading style sheets rule, formed the novel type picture for
The response type of the window is laid out so that the position of original background picture described in the novel type map match, and holding with it is described
The state change of the size and location of former background picture is synchronous.
In a kind of specific embodiment of the embodiment of the present application, the synchronization module 304 is for configuring the novel type
The cascading style sheets rule of picture:
Backgroudn-position parameter is set, this parameter is for making the novel type picture be located in the window
At the position of original background picture described in mouthful;
Background-size parameter is set, this parameter is for guaranteeing original background described in the novel type picture tracking
The change in size of picture is simultaneously consistent;
Backgroudn-position parameter is set, this parameter is used for the novel type picture in the window
Position positioned, to guarantee the change in location of original background picture described in the novel type picture tracking and be consistent.
In the embodiment of the embodiment of the present application, the map background optimization device of the big data further includes examining mould
Block;The inspection module is used for after the primary map location status changes, and shows the hiding former background picture;
To obtain the overlap condition of the former background picture and the novel type picture, judge whether the two is completely coincident.
The map background of big data described in the embodiment of the present application optimizes device, big data described in the embodiment of the present application
Map background optimization method is laid out by setting response type, and the adaptivity of formula principle can allow as new background according to response
Picture keep dynamic variation in automatic adaptation container Proterozoic figure former background picture variation after size and location, from
And avoiding the problem that occurring anchor point dislocation when map changes, and it does not need to increase monitoring event, the code used is more
Succinctly, configuration is more simple and convenient, promote the performance of system also can.
In order to solve the above technical problems, the embodiment of the present application also provides computer equipment.It is this referring specifically to Fig. 4, Fig. 4
Embodiment computer equipment basic structure block diagram.
The computer equipment 6 includes that connection memory 61, processor 62, network interface are in communication with each other by system bus
63.It should be pointed out that the computer equipment 6 with component 61-63 is illustrated only in figure, it should be understood that simultaneously should not
Realistic to apply all components shown, the implementation that can be substituted is more or less component.Wherein, those skilled in the art of the present technique
It is appreciated that computer equipment here is that one kind can be automatic to carry out numerical value calculating according to the instruction for being previously set or storing
And/or the equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application
Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate
Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The computer equipment can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The computer equipment can carry out people by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices with user
Machine interaction.
The memory 61 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,
Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random are visited
It asks memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed read-only deposit
Reservoir (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 61 can be the computer
The internal storage unit of equipment 6, such as the hard disk or memory of the computer equipment 6.In further embodiments, the memory
61 are also possible to the plug-in type hard disk being equipped on the External memory equipment of the computer equipment 6, such as the computer equipment 6,
Intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash
Card) etc..Certainly, the memory 61 can also both including the computer equipment 6 internal storage unit and also including outside it
Portion stores equipment.In the present embodiment, the memory 61 is installed on the operating system of the computer equipment 6 commonly used in storage
With types of applications software, such as big data map background optimization method program code etc..In addition, the memory 61 may be used also
For temporarily storing the Various types of data that has exported or will export.
The processor 62 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 62 is commonly used in the control meter
Calculate the overall operation of machine equipment 6.In the present embodiment, the processor 62 is for running the program generation stored in the memory 61
Code or processing data, such as run the program code of the map background optimization method of the big data.
The network interface 63 may include radio network interface or wired network interface, which is commonly used in
Communication connection is established between the computer equipment 6 and other electronic equipments.
Present invention also provides another embodiments, that is, provide a kind of computer readable storage medium, the computer
Readable storage medium storing program for executing is stored with the map background optimization program of big data, and the map background optimization program of the big data can be by extremely
A few processor executes, so that at least one described processor is executed such as the map background optimization method of above-mentioned big data
Step.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the application.
In above-described embodiment provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
Only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The module or component may or may not be physically separated, the portion shown as module or component
Part may or may not be physical module, both can be located in one place, or may be distributed over multiple network lists
In member.Some or all of the modules therein or component can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
The application is not limited to above embodiment, and the above is the preferred embodiment of the application, which only uses
In illustrate the application rather than limitation scope of the present application, it is noted that for those skilled in the art come
It says, it, still can be to technical solution documented by aforementioned each specific embodiment under the premise of not departing from the application principle
Some improvement and modification can also be carried out, or carries out equivalence replacement to part of technical characteristic.It is all using present specification and
The equivalent structure that accompanying drawing content is done directly or indirectly is used in other related technical areas, similarly should be regarded as being included in
Within the protection scope of the application.
Obviously, embodiments described above is merely a part but not all of the embodiments of the present application, attached
The preferred embodiment of the application is given in figure, but is not intended to limit the scope of the patents of the application.The application can be with many differences
Form realize, on the contrary, purpose of providing these embodiments is keeps the understanding to disclosure of this application more thorough
Comprehensively.Although the application is described in detail with reference to the foregoing embodiments, for coming for those skilled in the art,
Can still modify to technical solution documented by aforementioned each specific embodiment, or to part of technical characteristic into
Row equivalence replacement.Based on the embodiment in the application, those of ordinary skill in the art are without creative efforts
Every other embodiment obtained and all equivalent structures done using present specification and accompanying drawing content, directly
Or it is used in other related technical areas indirectly, similarly within the application scope of patent protection.
Claims (10)
1. a kind of map background optimization method of big data characterized by comprising
Network map is read, and obtains the primary map rendered by geographic information data true in the network map;
The geographical feature for retaining the primary map configures its map styles to generate the former Background for matching the primary map
The novel type picture of piece;
The novel type picture is placed in the window of container locating for primary map, and is set as the new background of the primary map
Picture;
The cascading style sheets rule for configuring the novel type picture, forms the novel type picture for the response type of the window
Layout, so that the position of original background picture described in the novel type map match, and keep the size with the former background picture
And the state change of position is synchronous.
2. the map background optimization method of big data according to claim 1, which is characterized in that described in the generation matching
The step of novel type picture of the former background picture of primary map includes:
Obtain the size and display scale of the former background picture of the primary map;
The size and display scale of the novel type picture is arranged in the size and display scale of former background picture based on acquisition, with
Make that the new design picture is identical as the size of former background picture of the primary map and display scale is consistent.
3. the map background optimization method of big data according to claim 2, which is characterized in that described in the generation matching
The step of novel type picture of the former background picture of primary map further include:
Detect whether surrounding in map area shown by the novel type picture has white space;
If there is white space, delete the white space, readjust the novel type picture size and display scale until
It is identical as the former background picture.
4. the map background optimization method of big data according to claim 1, which is characterized in that described by the novel type
Picture is placed in the window of container locating for the primary map, and the step of being set as the new background picture of primary map packet
It includes:
The novel type picture is completely covered by the former background picture of the primary map;
The former background picture of the primary map is hidden, so that the novel type picture replaces the former Background of the primary map
Piece.
5. the map background optimization method of big data according to claim 4, which is characterized in that described new in the setting
After the step of pattern picture is laid out the response type of the window, the method also includes:
After the primary map location status changes, the hiding former background picture is shown;
The overlap condition for obtaining the former background picture and the novel type picture, judges whether the two is completely coincident;
If not being overlapped, resets the novel type picture and the response type of the window is laid out.
6. the map background optimization method of big data according to claim 1, which is characterized in that the configuration new sample
The step of the cascading style sheets rule of formula picture includes:
Backgroudn-position parameter is set, for making the novel type picture be located in the back of original described in the window
At the position of scape picture;
Background-size parameter is set, for guaranteeing that the size of original background picture described in the novel type picture tracking becomes
Change and is consistent;
Backgroudn-position parameter is set, for determining position of the novel type picture in the window
Position, to guarantee the change in location of original background picture described in the novel type picture tracking and be consistent.
7. a kind of map background of big data optimizes device characterized by comprising
Read module for reading network map, and obtains the original rendered by geographic information data true in the network map
Radix Rehmanniae figure;
Customized module, for retaining the geographical feature of the primary map, it is described primary to generate matching to configure its map styles
The novel type picture of the former background picture of map;
Replacement module for the novel type picture to be placed in the window of container locating for the primary map, and is set as described
The new background picture of primary map;
Synchronization module forms the novel type picture for institute for configuring the cascading style sheets rule of the novel type picture
The response type layout of window is stated, so that the position of original background picture described in the novel type map match, and keep and the original
The state change of the size and location of background picture is synchronous.
8. the map background of big data according to claim 7 optimizes device, which is characterized in that the customized module is used for
The size and display scale of the former background picture of the primary map are obtained, and the size of the former background picture based on acquisition and aobvious
Show the size and display scale of novel type picture described in ratio setting, so that the original of the new design picture and the primary map
The size of background picture is identical and display scale is consistent.
9. a kind of computer equipment, including memory and processor, computer program, the processing are stored in the memory
Device realizes the map background optimization side of the big data as described in any one of claim 1-7 when executing the computer program
The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the big data as described in any one of claim 1-7 is realized when the computer program is executed by processor
The step of figure background optimization method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910430063.3A CN110334163B (en) | 2019-05-22 | 2019-05-22 | Map background optimization method, device, equipment and storage medium for big data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910430063.3A CN110334163B (en) | 2019-05-22 | 2019-05-22 | Map background optimization method, device, equipment and storage medium for big data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110334163A true CN110334163A (en) | 2019-10-15 |
CN110334163B CN110334163B (en) | 2020-09-04 |
Family
ID=68139703
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910430063.3A Active CN110334163B (en) | 2019-05-22 | 2019-05-22 | Map background optimization method, device, equipment and storage medium for big data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110334163B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258483A (en) * | 2020-01-20 | 2020-06-09 | 北京无限光场科技有限公司 | Image zooming display method and device, computer equipment and readable medium |
CN116204184A (en) * | 2023-04-28 | 2023-06-02 | 深圳华龙讯达信息技术股份有限公司 | UI editing method, system and storage medium for improving page style adaptation |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110274352A1 (en) * | 2010-05-07 | 2011-11-10 | Microsoft Corporation | Image Segmentation Using Star-Convexity Constraints |
CN104063901A (en) * | 2014-07-07 | 2014-09-24 | 百度在线网络技术(北京)有限公司 | Showing method and device for electronic map |
CN104391919A (en) * | 2014-11-20 | 2015-03-04 | 上海交通大学 | System and method for realizing geographic visualization of smart power grid |
CN106874271A (en) * | 2015-12-10 | 2017-06-20 | 上海新工式网络科技有限公司 | A kind of method and system that PC webpages are converted to mobile terminal webpage |
CN107562450A (en) * | 2017-07-24 | 2018-01-09 | 华中师范大学 | A kind of cross-platform method for visualizing of local chronicle resource |
CN109471628A (en) * | 2018-10-30 | 2019-03-15 | 中译语通科技股份有限公司 | A kind of elastic response formula web data setting method |
CN109741397A (en) * | 2019-01-04 | 2019-05-10 | 京东方科技集团股份有限公司 | Picture indicia method, apparatus, computer equipment and readable storage medium storing program for executing |
-
2019
- 2019-05-22 CN CN201910430063.3A patent/CN110334163B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110274352A1 (en) * | 2010-05-07 | 2011-11-10 | Microsoft Corporation | Image Segmentation Using Star-Convexity Constraints |
CN104063901A (en) * | 2014-07-07 | 2014-09-24 | 百度在线网络技术(北京)有限公司 | Showing method and device for electronic map |
CN104391919A (en) * | 2014-11-20 | 2015-03-04 | 上海交通大学 | System and method for realizing geographic visualization of smart power grid |
CN106874271A (en) * | 2015-12-10 | 2017-06-20 | 上海新工式网络科技有限公司 | A kind of method and system that PC webpages are converted to mobile terminal webpage |
CN107562450A (en) * | 2017-07-24 | 2018-01-09 | 华中师范大学 | A kind of cross-platform method for visualizing of local chronicle resource |
CN109471628A (en) * | 2018-10-30 | 2019-03-15 | 中译语通科技股份有限公司 | A kind of elastic response formula web data setting method |
CN109741397A (en) * | 2019-01-04 | 2019-05-10 | 京东方科技集团股份有限公司 | Picture indicia method, apparatus, computer equipment and readable storage medium storing program for executing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258483A (en) * | 2020-01-20 | 2020-06-09 | 北京无限光场科技有限公司 | Image zooming display method and device, computer equipment and readable medium |
CN111258483B (en) * | 2020-01-20 | 2021-06-15 | 北京无限光场科技有限公司 | Image zooming display method and device, computer equipment and readable medium |
CN116204184A (en) * | 2023-04-28 | 2023-06-02 | 深圳华龙讯达信息技术股份有限公司 | UI editing method, system and storage medium for improving page style adaptation |
Also Published As
Publication number | Publication date |
---|---|
CN110334163B (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11460996B2 (en) | Modifying style layer properties of a digital map | |
CN105069118B (en) | A kind of application scenarios management method and system based on GIS configurations | |
CN106484693B (en) | Map-indication method, picture block storage method and picture display terminal | |
CN105447101B (en) | Map engine implementation method and device | |
CN111522481B (en) | Layer data processing method and device, computer equipment and storage medium | |
CA2658840A1 (en) | Filtering of data layered on mapping applications | |
CN106155454A (en) | A kind of interface display method, device and electronic equipment | |
CN110096560A (en) | Data managing method, equipment, storage medium and device based on picture library one | |
CN110334163A (en) | Map background optimization method, device, equipment and the storage medium of big data | |
CN108021586A (en) | A kind of page generation method and device | |
CN108846893B (en) | Trivector ground drawing generating method and device | |
CN107809339A (en) | Link display methods, link generation method and device | |
CN110110248A (en) | Panoramic picture computer system is shown along a kind of realization electronic map | |
CN108268275A (en) | Software version control method and software version control device | |
CN103699641A (en) | Method for accessing different raster map services | |
CN111382223B (en) | Electronic map display method, terminal and electronic equipment | |
CN108052290A (en) | For storing the method and apparatus of data | |
CN105677851B (en) | A kind of interface screenshot method and user equipment | |
CN106293679B (en) | A kind of element term conflict processing method and device | |
CN110457408B (en) | Personalized map downloading method, device, equipment and storage medium | |
JP7387767B2 (en) | Methods, apparatus, computer equipment, and storage media for rendering GIS point data | |
CN109657023A (en) | Scenic spot dynamic electronic map method for drafting, server and system | |
CN106156376A (en) | A kind of UHV transmission line electromagnetic interference Three-dimensional Simulation System | |
CN116975170A (en) | Map display method, map data generation method, map display device and electronic equipment | |
CN109189537A (en) | The dynamic display method of page info calculates equipment and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |