Skip to content
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

Merge remote-tracking branch 'origin/2.3' #4639

Merged
merged 19 commits into from
Feb 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8a35aab
Add user friendly format for second resolution
sbrunner Feb 1, 2019
7587a5d
Merge pull request #4576 from camptocamp/wmstime
sbrunner Feb 1, 2019
37bb538
Improve doc for releases
ger-benjamin Feb 6, 2019
f305f71
Correct version according to the doc (2.2.9)
ger-benjamin Feb 6, 2019
60adb47
Merge pull request #4598 from camptocamp/bump
ger-benjamin Feb 6, 2019
0e815ef
Bump version to 2.2.10
ger-benjamin Feb 6, 2019
f08b5eb
Merge remote-tracking branch 'origin/2.2' into 2.3
ger-benjamin Feb 6, 2019
2414ad0
Merge pull request #4600 from camptocamp/merge_22_into_23
ger-benjamin Feb 6, 2019
7c5e793
Merge pull request #4599 from camptocamp/bump
ger-benjamin Feb 6, 2019
de9b543
Can set rotate maske and disable legend per default
ger-benjamin Feb 11, 2019
625436c
Merge pull request #4625 from camptocamp/default_legend
ger-benjamin Feb 11, 2019
4763eb4
Merge remote-tracking branch 'origin/2.2' into 2.3
ger-benjamin Feb 11, 2019
d636473
Merge pull request #4627 from camptocamp/merge_22_into_23
ger-benjamin Feb 12, 2019
94822e0
Demo how to set color of search's feature result
ger-benjamin Feb 12, 2019
b190789
Only activate swipe up/down on the collapse button
fredj Feb 12, 2019
54c1059
Only activate swipe right/left on the content panel
fredj Feb 12, 2019
c078664
Merge pull request #4630 from camptocamp/set_search_color_demo
ger-benjamin Feb 13, 2019
39b1a96
Merge pull request #4632 from camptocamp/GSGMF-758
fredj Feb 13, 2019
e1bcdd5
Merge remote-tracking branch 'origin/2.3'
fredj Feb 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions contribs/gmf/apps/desktop_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import ngeoRoutingModule from 'ngeo/routing/module.js';
import EPSG2056 from '@geoblocks/proj/src/EPSG_2056.js';
import EPSG21781 from '@geoblocks/proj/src/EPSG_21781.js';
import ngeoStatemanagerWfsPermalink from 'ngeo/statemanager/WfsPermalink.js';
import {Circle, Fill, Stroke, Style} from 'ol/style';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';

Expand Down Expand Up @@ -107,6 +108,24 @@ class Controller extends AbstractDesktopController {
'Learning [merged]': ['information', 'bus_stop']
};

const radius = 5;
const fill = new Fill({color: [255, 255, 255, 0.6]});
const stroke = new Stroke({color: [255, 0, 0, 1], width: 2});
const image = new Circle({fill, radius, stroke});
const default_search_style = new Style({
fill,
image,
stroke
});

/**
* @type {Object.<string, ol.style.Style>} Map of styles for search overlay.
* @export
*/
this.searchStyles = {
'default': default_search_style
};

// Allow angular-gettext-tools to collect the strings to translate
/** @type {angular.gettext.gettextCatalog} */
const gettextCatalog = $injector.get('gettextCatalog');
Expand Down
3 changes: 2 additions & 1 deletion contribs/gmf/apps/desktop_alt/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@
gmf-search-coordinatesprojections="::mainCtrl.searchCoordinatesProjections"
gmf-search-colorchooser="::true"
gmf-search-delay="mainCtrl.searchDelay"
gmf-search-clearbutton="::true">
gmf-search-clearbutton="::true"
gmf-search-styles="::mainCtrl.searchStyles">
</gmf-search>
<ngeo-displaywindow
content="mainCtrl.displaywindowContent"
Expand Down
7 changes: 1 addition & 6 deletions contribs/gmf/src/print/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,12 +724,7 @@ class Controller {

this.updateCustomFields_();

const legend = this.isAttributeInCurrentLayout_('legend');
if (this.layoutInfo.legend === undefined) {
this.layoutInfo.legend = !!(legend !== undefined ?
legend : this.fieldValues['legend']);
}

this.layoutInfo.legend = this.fieldValues['legend'] !== false;
this.layoutInfo.scales = clientInfo['scales'] || [];
this.layoutInfo.dpis = clientInfo['dpiSuggestions'] || [];

Expand Down
17 changes: 9 additions & 8 deletions contribs/gmf/src/query/windowComponent.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<div
class="gmf-displayquerywindow"
ng-class="{'desktop': ctrl.desktop, 'mobile': !ctrl.desktop}"
ng-show="ctrl.open"
ngeo-swipe-up="ctrl.collapsed = false"
ngeo-swipe-down="ctrl.collapsed = true"
ngeo-swipe-disable-mouse
ng-swipe-disable-mouse
ng-swipe-left="ctrl.next()"
ng-swipe-right="ctrl.previous()">
ng-show="ctrl.open">

<button
class="collapse-button"
type="button"
ng-show="::!ctrl.desktop"
ngeo-swipe-up="ctrl.collapsed = false"
ngeo-swipe-down="ctrl.collapsed = true"
ngeo-swipe-disable-mouse
ng-click="ctrl.collapsed = !ctrl.collapsed"
ng-class="[ctrl.collapsed ? 'collapse-button-up' : 'collapse-button-down']">
</button>

<div class="windowcontainer">
<div
class="windowcontainer"
ng-swipe-disable-mouse
ng-swipe-left="ctrl.next()"
ng-swipe-right="ctrl.previous()">

<button
type="button"
Expand Down
14 changes: 8 additions & 6 deletions docs/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,32 @@ fdescribe('...', function() {
Checkout the latest version

```
git checkout master
git checkout <release-branch>
git fetch origin
git reset --hard origin/master
git reset --hard origin/<release-branche>
```

Create a tag named the same as the version.
Where `<release-branch>` stand for `2.x`.

Verify that the `<version>` (`2.x.x`) in package.json match with the tag you'll
create. Then create a tag named the same as the version.
```
git tag <version>
git push origin <version>
```

Travis will create a new package on npm.


If you create a new release, bump version in the package.json file:
```
git checkout -b bump
vi package.json
git add package.json
git commit -m "Bump version to 2.4.x+1"
git commit -m "Bump version to <version + 1>"
git push origin bump
```

Do the pull request
Do the pull request on branch `<release-branche>`

## Create a new stabilisation branch

Expand Down
9 changes: 9 additions & 0 deletions src/misc/WMSTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ export class WMSTime extends Time {
let yearResolution = 'yyyy';
let monthResolution = 'yyyy-MM';
let dayResolution = 'yyyy-MM-dd';
let secondResolution = undefined;

// Localized format.
if (!opt_useISOFormat) {
const gettextCatalog = this.gettextCatalog_;
yearResolution = gettextCatalog.getString('yyyy');
monthResolution = gettextCatalog.getString('M/yyyy');
dayResolution = gettextCatalog.getString('M/d/yyyy');
secondResolution = gettextCatalog.getString('M/d/yyyy HH:MM:ss');
}

switch (resolution) {
Expand All @@ -63,10 +65,17 @@ export class WMSTime extends Time {
return this.$filter_('date')(date, monthResolution, utc);
case 'day':
return this.$filter_('date')(date, dayResolution, utc);
case 'second':
if (secondResolution) {
return this.$filter_('date')(date, secondResolution, utc);
} else {
return date.toISOString().replace(/\.\d{3}/, '');
}
default:
//case "second":
return date.toISOString().replace(/\.\d{3}/, '');
}

}


Expand Down