-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ui to configure text search services #1841
Conversation
transition: left 0.3s, top 0.3s; | ||
} | ||
.noUi-state-drag * { | ||
cursor: inherit !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use !important
@@ -0,0 +1,403 @@ | |||
/* all this css rules are related to the slider, copy paste from advanced layertree example */ | |||
|
|||
.noUi-target, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are generic for every noUi, please make them more specific or move the generic css in proper folders
@@ -0,0 +1,211 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid /** in favor of /* to allow documentation
const WFSOptionalProps = require('../components/mapcontrols/searchservicesconfig/WFSOptionalProps.jsx'); | ||
|
||
|
||
const SearchServicesConfigPanel = React.createClass({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document the plugin. see http://dev.mapstore2.geo-solutions.it/mapstore/docs/building-and-developing
@@ -266,7 +266,31 @@ | |||
"bearingLabel": "Direzione" | |||
}, | |||
"search":{ | |||
"placeholder": "Cerca un indirizzo o inserisci coordinate..." | |||
"placeholder": "Cerca un indirizzo o inserisci coordinate...", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for french and german use an online service.
web/client/translations/data.en-US
Outdated
"savebtn": "Update", | ||
"cancelbtn": "Cancel", | ||
"confirmremove": "Delete?", | ||
"cancelconfirm": "Confirm Cancel?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you confirm?
or are you sure?
web/client/translations/data.it-IT
Outdated
"addbtn": "Aggiungi", | ||
"cancelbtn": "Annulla", | ||
"confirmremove": "Elimina?", | ||
"cancelconfirm": "Confermi annulla?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confermi? or "Sei sicuro?"
web/client/translations/data.en-US
Outdated
"searchservicesbutton": "Configure search services", | ||
"configpaneltitle": "Create/edit a search service", | ||
"serviceslistlabel": "Available services", | ||
"overriedservice": "Overried services", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Override default services
web/client/translations/data.it-IT
Outdated
"s_wfs_props_label" : "Proprietà WFS service", | ||
"s_wfs_opt_props_label" : "Proprietà facoltative", | ||
"s_result_props_label": "Proprietà di visualizzazione dei risultati", | ||
"s_priority_info": "Usato per oridnare resultati, valori più alti per primi. Nominatim ha priorità = 5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usato per oridnare resultati,i valori più alti vengono visualizzati per primi. Nominatim ha priorità = 5
note: only 1 space after "Nominatim"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix oridnare resultati to ordinare risultati
web/client/translations/data.en-US
Outdated
"s_wfs_props_label" : "WFS service props", | ||
"s_wfs_opt_props_label" : "Optional props", | ||
"s_result_props_label": "Result display properties", | ||
"s_priority_info": "Used to sort search results, higher values first. Nominatim results have priority = 5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 space only after nominatim
web/client/actions/searchconfig.js
Outdated
@@ -0,0 +1,53 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all double * from copyright comments
@@ -0,0 +1,76 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
@@ -0,0 +1,51 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
@@ -0,0 +1,81 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
@@ -0,0 +1,67 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
@@ -0,0 +1,48 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
@@ -0,0 +1,43 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
@@ -0,0 +1,78 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
web/client/reducers/searchconfig.js
Outdated
@@ -0,0 +1,45 @@ | |||
/** | |||
* Copyright 2017, GeoSolutions Sas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
web/client/translations/data.it-IT
Outdated
"s_wfs_props_label" : "Proprietà WFS service", | ||
"s_wfs_opt_props_label" : "Proprietà facoltative", | ||
"s_result_props_label": "Proprietà di visualizzazione dei risultati", | ||
"s_priority_info": "Usato per oridnare resultati, valori più alti per primi. Nominatim ha priorità = 5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix oridnare resultati to ordinare risultati
} | ||
|
||
|
||
#search-serivices-ui .noUi-background { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
search-serivices-editor is better, and use a class
border-bottom: 1px solid gray; | ||
font-size: larger; | ||
} | ||
.confirm-close{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too generic, use specific selector
text: <Message msgId="search.cancelbtn" />, className: "btn btn-sm btn-warning confirm-close"}} onConfirm={this.onClose} bsStyle="primary" text={(<Glyphicon glyph={closeGlyph}/>)}/>) : <button onClick={this.onClose} className="close">{closeGlyph ? <Glyphicon glyph={closeGlyph}/> : <span>×</span>}</button>} | ||
} | ||
</span> | ||
<div role="body" id="search-serivices-ui"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a class if possible
This plugins adds a ui to configure text search services. With this pool configured services will be saved and loaded from map config.
To use, add
SearchServicesConfigPlugin: require('../plugins/SearchServicesConfig' to plugins.config and configure in localConfig.json