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

Replace query directives by new component #5116

Merged
merged 2 commits into from
Sep 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 6 additions & 9 deletions contribs/gmf/apps/desktop/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,13 @@
gmf-contextualdata=""
gmf-contextualdata-displayed="mainCtrl.contextdataActive"
gmf-contextualdata-map="::mainCtrl.map"
gmf-contextualdata-projections="::[2056, 21781, 4326]"
ngeo-map-query=""
ngeo-map-query-map="::mainCtrl.map"
ngeo-map-query-active="mainCtrl.queryActive"
ngeo-map-query-autoclear="mainCtrl.queryAutoClear"
ngeo-bbox-query=""
ngeo-bbox-query-map="::mainCtrl.map"
ngeo-bbox-query-active="mainCtrl.queryActive"
ngeo-bbox-query-autoclear="mainCtrl.queryAutoClear">
gmf-contextualdata-projections="::[2056, 21781, 4326]">
</gmf-map>
<ngeo-query
active="mainCtrl.queryActive"
autoclear="mainCtrl.queryAutoClear"
map="::mainCtrl.map">
</ngeo-query>

<!--infobar-->
<div class="gmf-app-footer" ng-class="{'gmf-app-active': mainCtrl.showInfobar}">
Expand Down
4 changes: 4 additions & 0 deletions contribs/gmf/apps/desktop_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,8 @@ module.value('gmfPermalinkOptions', /** @type {import('gmf/permalink/Permalink.j
]
}));

module.value('ngeoQueryOptions', {
'limit': 50
});

export default module;
16 changes: 6 additions & 10 deletions contribs/gmf/apps/desktop_alt/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -298,17 +298,13 @@
class="gmf-map"
gmf-map-map="mainCtrl.map"
gmf-map-manage-resize="mainCtrl.manageResize"
gmf-map-resize-transition="mainCtrl.resizeTransition"
ngeo-map-query=""
ngeo-map-query-map="::mainCtrl.map"
ngeo-map-query-active="mainCtrl.queryActive"
ngeo-map-query-autoclear="mainCtrl.queryAutoClear"
ngeo-bbox-query=""
ngeo-bbox-query-limit="50"
ngeo-bbox-query-map="::mainCtrl.map"
ngeo-bbox-query-active="mainCtrl.queryActive"
ngeo-bbox-query-autoclear="mainCtrl.queryAutoClear">
gmf-map-resize-transition="mainCtrl.resizeTransition">
</gmf-map>
<ngeo-query
active="mainCtrl.queryActive"
autoclear="mainCtrl.queryAutoClear"
map="::mainCtrl.map">
</ngeo-query>
<gmf-floorselector class="gmf-floorselector ol-unselectable ol-control"
value="mainCtrl.dimensions.FLOOR">
</gmf-floorselector>
Expand Down
15 changes: 6 additions & 9 deletions contribs/gmf/apps/iframe_api/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,13 @@
class="gmf-map"
gmf-map-map="mainCtrl.map"
gmf-map-manage-resize="mainCtrl.manageResize"
gmf-map-resize-transition="mainCtrl.resizeTransition"
ngeo-map-query=""
ngeo-map-query-map="::mainCtrl.map"
ngeo-map-query-active="mainCtrl.queryActive"
ngeo-map-query-autoclear="mainCtrl.queryAutoClear"
ngeo-bbox-query=""
ngeo-bbox-query-map="::mainCtrl.map"
ngeo-bbox-query-active="mainCtrl.queryActive"
ngeo-bbox-query-autoclear="mainCtrl.queryAutoClear">
gmf-map-resize-transition="mainCtrl.resizeTransition">
</gmf-map>
<ngeo-query
active="mainCtrl.queryActive"
autoclear="mainCtrl.queryAutoClear"
map="::mainCtrl.map">
adube marked this conversation as resolved.
Show resolved Hide resolved
</ngeo-query>
<div id="scaleline"></div>
<gmf-layertree
gmf-layertree-dimensions="mainCtrl.dimensions"
Expand Down
9 changes: 5 additions & 4 deletions contribs/gmf/apps/mobile/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
<gmf-map
gmf-map-map="mainCtrl.map"
gmf-map-manage-resize="mainCtrl.manageResize"
gmf-map-resize-transition="mainCtrl.resizeTransition"
ngeo-map-query=""
ngeo-map-query-map="::mainCtrl.map"
ngeo-map-query-active="mainCtrl.queryActive">
gmf-map-resize-transition="mainCtrl.resizeTransition">
</gmf-map>
<ngeo-query
active="mainCtrl.queryActive"
map="::mainCtrl.map">
</ngeo-query>
<gmf-displayquerywindow
gmf-displayquerywindow-featuresstyle="::mainCtrl.queryFeatureStyle"
gmf-displayquerywindow-defaultcollapsed="false">
Expand Down
9 changes: 5 additions & 4 deletions contribs/gmf/apps/mobile_alt/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
<gmf-map
gmf-map-map="mainCtrl.map"
gmf-map-manage-resize="mainCtrl.manageResize"
gmf-map-resize-transition="mainCtrl.resizeTransition"
ngeo-map-query=""
ngeo-map-query-map="::mainCtrl.map"
ngeo-map-query-active="mainCtrl.queryActive"></gmf-map>
gmf-map-resize-transition="mainCtrl.resizeTransition"></gmf-map>
<ngeo-query
active="mainCtrl.queryActive"
map="::mainCtrl.map">
</ngeo-query>
<gmf-displayquerywindow
gmf-displayquerywindow-featuresstyle="::mainCtrl.queryFeatureStyle"
gmf-displayquerywindow-defaultcollapsed="false">
Expand Down
15 changes: 6 additions & 9 deletions contribs/gmf/apps/oeedit/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,13 @@
gmf-contextualdata=""
gmf-contextualdata-displayed="mainCtrl.contextdataActive"
gmf-contextualdata-map="::mainCtrl.map"
gmf-contextualdata-projections="::[2056, 21781, 4326]"
ngeo-map-query=""
ngeo-map-query-map="::mainCtrl.map"
ngeo-map-query-active="mainCtrl.queryActive"
ngeo-map-query-autoclear="mainCtrl.queryAutoClear"
ngeo-bbox-query=""
ngeo-bbox-query-map="::mainCtrl.map"
ngeo-bbox-query-active="mainCtrl.queryActive"
ngeo-bbox-query-autoclear="mainCtrl.queryAutoClear">
gmf-contextualdata-projections="::[2056, 21781, 4326]">
</gmf-map>
<ngeo-query
active="mainCtrl.queryActive"
adube marked this conversation as resolved.
Show resolved Hide resolved
autoclear="mainCtrl.queryAutoClear"
map="::mainCtrl.map">
</ngeo-query>

<!--infobar-->
<div class="gmf-app-footer" ng-class="{'gmf-app-active': mainCtrl.showInfobar}">
Expand Down
14 changes: 6 additions & 8 deletions contribs/gmf/examples/displayquerygrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
</head>
<body ng-controller="MainController as ctrl">

<gmf-map gmf-map-map="ctrl.map"
ngeo-map-query=""
ngeo-map-query-map="::ctrl.map"
ngeo-map-query-active="ctrl.queryActive"
ngeo-bbox-query=""
ngeo-bbox-query-map="::ctrl.map"
ngeo-bbox-query-active="ctrl.queryActive">
</gmf-map>
<gmf-map gmf-map-map="ctrl.map"></gmf-map>

<ngeo-query
active="ctrl.queryActive"
map="::ctrl.map">
</ngeo-query>

<div id="tree-container">
<div>
Expand Down
6 changes: 2 additions & 4 deletions contribs/gmf/examples/displayquerygrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import ngeoGridModule from 'ngeo/grid/module.js';
import ngeoMapModule from 'ngeo/map/module.js';
import ngeoMiscBtnComponent from 'ngeo/misc/btnComponent.js';
import EPSG21781 from '@geoblocks/proj/src/EPSG_21781.js';
import ngeoQueryBboxQueryComponent from 'ngeo/query/bboxQueryComponent.js';
import ngeoQueryMapQueryComponent from 'ngeo/query/mapQueryComponent.js';
import ngeoQueryComponent from 'ngeo/query/component.js';
import olMap from 'ol/Map.js';
import olView from 'ol/View.js';
import olLayerTile from 'ol/layer/Tile.js';
Expand All @@ -41,8 +40,7 @@ const module = angular.module('gmfapp', [
ngeoGridModule.name,
ngeoMapModule.name, // for ngeo.map.FeatureOverlay, perhaps remove me
ngeoMiscBtnComponent.name,
ngeoQueryBboxQueryComponent.name,
ngeoQueryMapQueryComponent.name,
ngeoQueryComponent.name,
]);


Expand Down
18 changes: 8 additions & 10 deletions contribs/gmf/examples/displayquerywindow.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
</head>
<body ng-controller="MainController as ctrl">

<gmf-map gmf-map-map="ctrl.map"
ngeo-map-query=""
ngeo-map-query-map="::ctrl.map"
ngeo-map-query-active="ctrl.queryActive"
ngeo-bbox-query=""
ngeo-bbox-query-map="::ctrl.map"
ngeo-bbox-query-active="ctrl.queryActive">
</gmf-map>
<gmf-map gmf-map-map="ctrl.map"></gmf-map>

<ngeo-query
active="ctrl.queryActive"
map="::ctrl.map">
</ngeo-query>

<div id="tree-container">
<div>
Expand All @@ -39,8 +37,8 @@
<div class="clear-left"></div>

<p id="desc">
This example shows how to use the <code>ngeo-map-query</code>
directive in combination with the
This example shows how to use the <code>ngeo-query</code>
component in combination with the
<code>gmf.datasource.Manager</code>.
The DataSourcesManager fetches the themes returned by the theme
service and adds one DataSource, which is used by the querent service
Expand Down
6 changes: 2 additions & 4 deletions contribs/gmf/examples/displayquerywindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import gmfQueryWindowComponent from 'gmf/query/windowComponent.js';
import gmfThemeThemes from 'gmf/theme/Themes.js';
import ngeoMiscBtnComponent from 'ngeo/misc/btnComponent.js';
import EPSG21781 from '@geoblocks/proj/src/EPSG_21781.js';
import ngeoQueryBboxQueryComponent from 'ngeo/query/bboxQueryComponent.js';
import ngeoQueryMapQueryComponent from 'ngeo/query/mapQueryComponent.js';
import ngeoQueryComponent from 'ngeo/query/component.js';
import olMap from 'ol/Map.js';
import olView from 'ol/View.js';
import olLayerTile from 'ol/layer/Tile.js';
Expand All @@ -39,8 +38,7 @@ const module = angular.module('gmfapp', [
gmfThemeThemes.name,
ngeoMapModule.name, // for ngeo.map.FeatureOverlay, perhaps remove me
ngeoMiscBtnComponent.name,
ngeoQueryBboxQueryComponent.name,
ngeoQueryMapQueryComponent.name,
ngeoQueryComponent.name,
]);


Expand Down
16 changes: 7 additions & 9 deletions contribs/gmf/examples/filterselector.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
<meta name="mobile-web-app-capable" content="yes">
</head>
<body ng-controller="MainController as ctrl">
<gmf-map
gmf-map-map="ctrl.map"
ngeo-map-query=""
ngeo-map-query-map="::ctrl.map"
ngeo-map-query-active="ctrl.queryActive"
ngeo-bbox-query=""
ngeo-bbox-query-map="::ctrl.map"
ngeo-bbox-query-active="ctrl.queryActive">
</gmf-map>

<gmf-map gmf-map-map="ctrl.map"></gmf-map>

<ngeo-query
active="ctrl.queryActive"
map="::ctrl.map">
</ngeo-query>

<gmf-layertree
class="panel panel-default panel-body"
Expand Down
6 changes: 2 additions & 4 deletions contribs/gmf/examples/filterselector.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import gmfMapComponent from 'gmf/map/component.js';

import gmfThemeThemes from 'gmf/theme/Themes.js';
import ngeoDatasourceDataSources from 'ngeo/datasource/DataSources.js';
import ngeoQueryBboxQueryComponent from 'ngeo/query/bboxQueryComponent.js';
import ngeoQueryMapQueryComponent from 'ngeo/query/mapQueryComponent.js';
import ngeoQueryComponent from 'ngeo/query/component.js';
import ngeoMiscToolActivate from 'ngeo/misc/ToolActivate.js';
import ngeoMiscToolActivateMgr from 'ngeo/misc/ToolActivateMgr.js';
import EPSG21781 from '@geoblocks/proj/src/EPSG_21781.js';
Expand All @@ -41,8 +40,7 @@ const module = angular.module('gmfapp', [
gmfThemeThemes.name,
ngeoDatasourceDataSources.name,
ngeoMiscToolActivateMgr.name,
ngeoQueryBboxQueryComponent.name,
ngeoQueryMapQueryComponent.name,
ngeoQueryComponent.name,
]);


Expand Down
16 changes: 7 additions & 9 deletions contribs/gmf/examples/importdatasource.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
<meta name="mobile-web-app-capable" content="yes">
</head>
<body ng-controller="MainController as ctrl">
<gmf-map
gmf-map-map="ctrl.map"
ngeo-map-query=""
ngeo-map-query-map="::ctrl.map"
ngeo-map-query-active="ctrl.queryActive"
ngeo-bbox-query=""
ngeo-bbox-query-map="::ctrl.map"
ngeo-bbox-query-active="ctrl.queryActive">
</gmf-map>

<gmf-map gmf-map-map="ctrl.map"></gmf-map>

<ngeo-query
active="ctrl.queryActive"
map="::ctrl.map">
</ngeo-query>

<div class="panel panel-default panel-body">
<p id="desc">
Expand Down
6 changes: 2 additions & 4 deletions contribs/gmf/examples/importdatasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ import gmfMapComponent from 'gmf/map/component.js';
import gmfThemeThemes from 'gmf/theme/Themes.js';
import ngeoDatasourceDataSources from 'ngeo/datasource/DataSources.js';

import ngeoQueryBboxQueryComponent from 'ngeo/query/bboxQueryComponent.js';
import ngeoQueryComponent from 'ngeo/query/component.js';

import ngeoQueryMapQueryComponent from 'ngeo/query/mapQueryComponent.js';
import EPSG21781 from '@geoblocks/proj/src/EPSG_21781.js';
import olMap from 'ol/Map.js';
import olView from 'ol/View.js';
Expand All @@ -37,8 +36,7 @@ const module = angular.module('gmfapp', [
gmfMapComponent.name,
gmfThemeThemes.name,
ngeoDatasourceDataSources.name,
ngeoQueryBboxQueryComponent.name,
ngeoQueryMapQueryComponent.name,
ngeoQueryComponent.name,
]);


Expand Down
2 changes: 0 additions & 2 deletions contribs/gmf/src/controllers/AbstractAPIController.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import angular from 'angular';
import gmfControllersAbstractAppController, {AbstractAppController, getLocationIcon}
from 'gmf/controllers/AbstractAppController.js';
import ngeoQueryBboxQueryComponent from 'ngeo/query/bboxQueryComponent.js';
import ngeoMapResizemap from 'ngeo/map/resizemap.js';
import * as olProj from 'ol/proj.js';
import olMap from 'ol/Map.js';
Expand Down Expand Up @@ -66,7 +65,6 @@ export class AbstractAPIController extends AbstractAppController {
const module = angular.module('GmfAbstractAPIControllerModule', [
gmfControllersAbstractAppController.name,
ngeoMapResizemap.name,
ngeoQueryBboxQueryComponent.name
]);

module.controller('AbstractAPIController', AbstractAPIController);
Expand Down
4 changes: 2 additions & 2 deletions contribs/gmf/src/controllers/AbstractAppController.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import ngeoMiscExtraModule from 'ngeo/misc/extraModule.js';
import ngeoMiscFeatureHelper, {FeatureFormatType} from 'ngeo/misc/FeatureHelper.js';
import ngeoMiscToolActivate from 'ngeo/misc/ToolActivate.js';
import ngeoQueryMapQuerent from 'ngeo/query/MapQuerent.js';
import ngeoQueryMapQueryComponent from 'ngeo/query/mapQueryComponent.js';
import ngeoQueryComponent from 'ngeo/query/component.js';
import ngeoStatemanagerModule from 'ngeo/statemanager/module.js';
import ngeoStatemanagerWfsPermalink from 'ngeo/statemanager/WfsPermalink.js';
import ngeoGeolocation from 'ngeo/geolocation/component.js';
Expand Down Expand Up @@ -859,7 +859,7 @@ const module = angular.module('GmfAbstractAppControllerModule', [
ngeoMiscExtraModule.name,
ngeoMiscFeatureHelper.name,
ngeoQueryMapQuerent.name,
ngeoQueryMapQueryComponent.name,
ngeoQueryComponent.name,
ngeoStatemanagerModule.name,
ngeoStatemanagerWfsPermalink.name,
ngeoGeolocation.name,
Expand Down
Binary file removed examples/bboxquery-ref.png
Binary file not shown.
8 changes: 0 additions & 8 deletions examples/bboxquery.css

This file was deleted.

31 changes: 0 additions & 31 deletions examples/bboxquery.html

This file was deleted.