Skip to content

Commit

Permalink
Merge pull request #4798 from camptocamp/merge_2.3_into_master
Browse files Browse the repository at this point in the history
Merge 2.3 into master
  • Loading branch information
fredj committed Apr 5, 2019
2 parents 0766097 + c297e39 commit d8c3748
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 7 deletions.
6 changes: 5 additions & 1 deletion contribs/gmf/apps/mobile/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
ng-click="mainCtrl.toggleRightNavVisibility()">
<i class="fa fa-wrench"></i>
</button>
<div class="overlay" ng-click="mainCtrl.hideNav()"></div>
<div class="overlay"
ng-swipe-disable-mouse
ng-swipe-left="mainCtrl.hideNav()"
ng-swipe-right="mainCtrl.hideNav()"
ng-click="mainCtrl.hideNav()"></div>
<div
class="gmf-search-overlay"
ng-click="mainCtrl.searchOverlayVisible = false">
Expand Down
6 changes: 5 additions & 1 deletion contribs/gmf/apps/mobile_alt/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@
ng-click="mainCtrl.toggleRightNavVisibility()">
<i class="fa fa-wrench"></i>
</button>
<div class="overlay" ng-click="mainCtrl.hideNav()"></div>
<div class="overlay"
ng-swipe-disable-mouse
ng-swipe-left="mainCtrl.hideNav()"
ng-swipe-right="mainCtrl.hideNav()"
ng-click="mainCtrl.hideNav()"></div>
<div
class="gmf-search-overlay"
ng-click="mainCtrl.searchOverlayVisible = false">
Expand Down
2 changes: 1 addition & 1 deletion contribs/gmf/src/datasource/ExternalDataSourcesManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ExternalDatSourcesManager {

/**
* External data sources come remote online resources, such as WMS/WMTS
* servers, and also files such as KML/GXP. This service is responsible of
* servers, and also files such as KML/GPX. This service is responsible of
* creating, storing and managing them.
*
* @param {!angular.gettext.gettextCatalog} gettextCatalog service.
Expand Down
5 changes: 4 additions & 1 deletion contribs/gmf/src/editing/editFeatureSelectorComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ module.run(/* @ngInject */ ($templateCache) => {
* buffer in pixels to use when making queries to get the features.
* @htmlAttribute {import("ol/layer/Vector.js").default} gmf-editfeatureselector-vector The vector
* layer where the selected or created features are drawn.
* @htmlAttribute {ngeo.layertree.Controller} gmf-editfeatureselector-tree The
* layertree controller handling the selectable editable layers list.
* @return {angular.IDirective} The directive specs.
* @ngdoc directive
* @ngname gmfEditfeatureselector
Expand All @@ -58,7 +60,8 @@ function editingEditFeatureComponent() {
'active': '=gmfEditfeatureselectorActive',
'map': '<gmfEditfeatureselectorMap',
'tolerance': '<?gmfEditfeatureselectorTolerance',
'vectorLayer': '<gmfEditfeatureselectorVector'
'vectorLayer': '<gmfEditfeatureselectorVector',
'selectedEditableTreeCtrl': '=?gmfEditfeatureselectorTree'
},
bindToController: true,
templateUrl: 'gmf/editing/editFeatureSelectorComponent'
Expand Down
14 changes: 11 additions & 3 deletions src/print/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export function PrintService(url, $http, gettextCatalog, ngeoLayerHelper) {

/**
* @type {import("ngeo/print/VectorEncoder.js").default}
* @private
* @protected
*/
this.vectorEncoder_ = new ngeoPrintVectorEncoder();
this.vectorEncoder = new ngeoPrintVectorEncoder();

/**
* @type {boolean}
Expand Down Expand Up @@ -212,10 +212,18 @@ PrintService.prototype.encodeLayer = function(arr, layer, resolution) {
} else if (layer instanceof olLayerTile) {
this.encodeTileLayer_(arr, layer);
} else if (layer instanceof olLayerVector) {
this.vectorEncoder_.encodeVectorLayer(arr, layer, resolution);
this.encodeVectorLayer(arr, layer, resolution);
}
};

/**
* @param {Array.<import('ngeo/print/mapfish-print-v3.js').MapFishPrintLayer>} arr Array.
* @param {olLayerVector} layer Layer.
* @param {number} resolution Resolution.
*/
PrintService.prototype.encodeVectorLayer = function(arr, layer, resolution) {
this.vectorEncoder.encodeVectorLayer(arr, layer, resolution);
};

/**
* @param {Array.<import('ngeo/print/mapfish-print-v3.js').MapFishPrintLayer>} arr Array.
Expand Down

0 comments on commit d8c3748

Please sign in to comment.