Skip to content

Commit

Permalink
Add Draw Support for spatial filter for #1104
Browse files Browse the repository at this point in the history
 - Improves the style of the contained components (spatial filter details)
 - Allows drawing for query form.
  • Loading branch information
offtherailz committed Dec 13, 2016
1 parent 7c110f9 commit 4437456
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
1 change: 1 addition & 0 deletions web/client/components/TOC/DefaultLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ var DefaultLayer = React.createClass({
<LayersTool key="toolquery"
tooltip="toc.searchFeatures"
className="toc-queryTool"
node={this.props.node}
ref="target"
style={{"float": "right", cursor: "pointer"}}
glyph="search"
Expand Down
23 changes: 19 additions & 4 deletions web/client/components/data/query/queryform.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
/*****************************/
/* DRAWER MENU ***************/
/*****************************/
#mapstore-drawermenu #queryFormPanel .querypanel {
height: 100%;
max-height: 100%;
}
#mapstore-drawermenu #queryFormPanel .queryFormToolbar button:disabled{
color: gray;
}
Expand Down Expand Up @@ -72,6 +68,25 @@
margin-left: 3px;
margin-bottom: 3px;
}

/* Spatial Selector */
#mapstore-drawermenu #queryFormPanel .panel.details-panel {
width: auto;
height: auto;
}
#mapstore-drawermenu #queryFormPanel .details-panel .panel-body {
padding: 15px;
}
#mapstore-drawermenu #queryFormPanel .details-panel.panel{
border: 1px solid transparent;
border-radius: 4px;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}
#mapstore-drawermenu #queryFormPanel .details-panel.panel-primary {
border-color: #078aa3;
}

/*****************************/
/* DRAWER MENU END ***********/
/*****************************/
Expand Down
1 change: 1 addition & 0 deletions web/client/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"desktop": [{
"name": "Map",
"cfg": {
"tools": ["measurement", "locate", "overview", "scalebar", "draw", "highlight"],
"toolsOptions": {
"scalebar": {
"leaflet": {
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,5 @@ const selector = createSelector(
);
module.exports = {
MapPlugin: connect(selector)(MapPlugin),
reducers: {}
reducers: { draw: require('../reducers/draw') }
};
4 changes: 2 additions & 2 deletions web/client/plugins/drawer/drawer.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
}

#mapstore-drawermenu .panel {
border: none !important;
box-shadow: none !important;
border: none;
box-shadow: none;
}

div.nav-menu {
Expand Down

0 comments on commit 4437456

Please sign in to comment.