-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
884 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"src": [ | ||
"node_modules/openlayers/src/**/*.js", | ||
"node_modules/openlayers/build/ol.ext/**/*.js", | ||
"src/**/*.js", | ||
"contribs/gmf/src/**/*.js", | ||
"contribs/gmf/apps/appmodule.js", | ||
"contribs/gmf/apps/desktop/js/desktop.js", | ||
".build/gmftemplatecache.js" | ||
], | ||
"compile": { | ||
"closure_entry_point": "app_desktop", | ||
"externs": [ | ||
"node_modules/openlayers/externs/bingmaps.js", | ||
"node_modules/openlayers/externs/closure-compiler.js", | ||
"node_modules/openlayers/externs/esrijson.js", | ||
"node_modules/openlayers/externs/geojson.js", | ||
"node_modules/openlayers/externs/proj4js.js", | ||
"node_modules/openlayers/externs/tilejson.js", | ||
"node_modules/openlayers/externs/topojson.js", | ||
"externs/angular-gettext.js", | ||
"externs/d3.js", | ||
"externs/typeahead.js", | ||
"externs/mapfish-print-v3.js", | ||
"externs/twbootstrap.js", | ||
"externs/closure-compiler.js", | ||
".build/externs/angular-1.4.js", | ||
".build/externs/angular-1.4-q_templated.js", | ||
".build/externs/angular-1.4-http-promise_templated.js", | ||
".build/externs/jquery-1.9.js" | ||
], | ||
"define": [ | ||
"goog.array.ASSUME_NATIVE_FUNCTIONS=true", | ||
"goog.dom.ASSUME_STANDARDS_MODE=true", | ||
"goog.json.USE_NATIVE_JSON=true", | ||
"goog.DEBUG=false", | ||
"ol.ENABLE_DOM=false", | ||
"ol.ENABLE_WEBGL=false" | ||
], | ||
"js": [ | ||
"contribs/gmf/apps/desktop/js/desktop.js", | ||
"node_modules/openlayers/externs/olx.js", | ||
"node_modules/openlayers/externs/oli.js", | ||
"externs/ngeox.js", | ||
"contribs/gmf/externs/gmf-themes.js", | ||
"contribs/gmf/externs/gmfx.js" | ||
], | ||
"jscomp_error": [ | ||
"*" | ||
], | ||
"jscomp_off": [ | ||
"useOfGoogBase", | ||
"unnecessaryCasts", | ||
"lintChecks" | ||
], | ||
"extra_annotation_name": [ | ||
"api", "observable", "ngdoc", "ngname", "htmlAttribute" | ||
], | ||
"angular_pass": true, | ||
"compilation_level": "ADVANCED", | ||
"export_local_property_definitions": true, | ||
"warning_level": "VERBOSE", | ||
"generate_exports": true, | ||
"language_in": "ECMASCRIPT5_STRICT", | ||
"output_wrapper": "(function(){%output%}).call(window);", | ||
"use_types_for_optimization": true, | ||
"manage_closure_dependencies": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* The default ngeo template based URL, used as it by the template cache. | ||
* @type {string} | ||
*/ | ||
ngeo.baseTemplateUrl = '../../../../src/directives/partials'; | ||
|
||
|
||
/** | ||
* The default gmf template based URL, used as it by the template cache. | ||
* @type {string} | ||
*/ | ||
gmf.baseTemplateUrl = '../../src/directives/partials'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{desktopCtrl.lang}}" ng-app="app" ng-controller="DesktopController as mainCtrl"> | ||
<head> | ||
<title translate>Desktop Application</title> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="../../build/desktop.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<div> | ||
Put your logos or menus here | ||
</div> | ||
</header> | ||
<main> | ||
<div class="data-panel"> | ||
<div class="header"> | ||
</div> | ||
</div> | ||
<div class="tools" ngeo-resizemap="mainCtrl.map" | ||
ngeo-resizemap-state="mainCtrl.toolsActive"> | ||
<div ngeo-btn-group class="bar btn-group-vertical" ngeo-btn-group-active="mainCtrl.toolsActive"> | ||
<button ngeo-btn class="btn btn-default" ng-model="loginActive" | ||
data-toggle="tooltip" data-placement="left" data-original-title="{{'Login'|translate}}"> | ||
<span class="fa fa-user"></span> | ||
</button> | ||
<button ngeo-btn class="btn btn-default" ng-model="printActive" | ||
data-toggle="tooltip" data-placement="left" data-original-title="{{'Print'|translate}}"> | ||
<span class="fa fa-print"></span> | ||
</button> | ||
<button ngeo-btn class="btn btn-default" ng-model="measureActive" | ||
data-toggle="tooltip" data-placement="left" data-original-title="{{'Measure tools'|translate}}"> | ||
<span class="fa fa-circle"> | ||
</button> | ||
</div> | ||
<div class="tools-content" ng-class="{active: mainCtrl.toolsActive}"> | ||
<div ng-show="loginActive"> | ||
<a class="btn close" ng-click="loginActive = false">×</a> | ||
<div class="tools-content-heading"> | ||
Login | ||
</div> | ||
<gmf-authentication></gmf-authentication> | ||
<br> | ||
</div> | ||
<div ng-show="printActive"> | ||
<a class="btn close" ng-click="printActive = false">×</a> | ||
<div class="tools-content-heading"> | ||
</div> | ||
</div> | ||
<div ng-show="measureActive"> | ||
<a class="btn close" ng-click="measureActive = false">×</a> | ||
<div class="tools-content-heading"> | ||
Measure | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="map-container"> | ||
<div class="search"> | ||
<gmf-search gmf-search-map="mainCtrl.map" | ||
gmf-search-datasources="mainCtrl.searchDatasources" | ||
gmf-search-clearbutton="true"> | ||
</gmf-search> | ||
</div> | ||
<gmf-map class="gmf-map" gmf-map-map="mainCtrl.map"></gmf-map> | ||
</div> | ||
</main> | ||
<script src="../../../../node_modules/jquery/dist/jquery.js"></script> | ||
<script src="../../../../node_modules/angular/angular.js"></script> | ||
<script src="../../../../node_modules/typeahead.js/dist/typeahead.bundle.js"></script> | ||
<script src="../../../../node_modules/proj4/dist/proj4-src.js" type="text/javascript"></script> | ||
<script src="../../../../node_modules/angular-gettext/dist/angular-gettext.js" type="text/javascript"></script> | ||
<script src="../../../../node_modules/bootstrap/dist/js/bootstrap.js" type="text/javascript"></script> | ||
<script src="../../../../node_modules/d3/d3.min.js" type="text/javascript"></script> | ||
<script src="../../../../node_modules/less/dist/less.min.js"></script> | ||
<script src="/@?main=desktop/js/desktop.js"></script> | ||
<script src="default.js"></script> | ||
<script src="../../../../utils/watchwatchers.js"></script> | ||
<script> | ||
(function() { | ||
var module = angular.module('app'); | ||
var serverVars = { | ||
serviceUrls: { | ||
fulltextsearch: 'http://geomapfish-demo.camptocamp.net/2.0/wsgi/fulltextsearch?query=%QUERY' | ||
} | ||
}; | ||
module.constant('serverVars', serverVars); | ||
})(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* @fileoverview Application entry point. | ||
* | ||
* This file defines the "app_desktop" Closure namespace, which is be used as | ||
* the Closure entry point (see "closure_entry_point" in the "build.json" | ||
* file). | ||
* | ||
* This file includes `goog.require`'s for all the components/directives used | ||
* by the HTML page and the controller to provide the configuration. | ||
*/ | ||
goog.provide('app.DesktopController'); | ||
goog.provide('app_desktop'); | ||
|
||
goog.require('app'); | ||
goog.require('gmf.AbstractDesktopController'); | ||
/** @suppress {extraRequire} */ | ||
goog.require('gmf.authenticationDirective'); | ||
|
||
|
||
appModule.constant( | ||
'authenticationBaseUrl', | ||
'https://geomapfish-demo.camptocamp.net/2.0/wsgi'); | ||
|
||
|
||
|
||
/** | ||
* @param {ngeo.FeatureOverlayMgr} ngeoFeatureOverlayMgr The ngeo feature | ||
* overlay manager service. | ||
* @param {Object} serverVars vars from GMF | ||
* @constructor | ||
* @extends {gmf.AbstractDesktopController} | ||
* @ngInject | ||
* @export | ||
*/ | ||
app.DesktopController = function(ngeoFeatureOverlayMgr, serverVars) { | ||
goog.base(this, ngeoFeatureOverlayMgr, serverVars); | ||
}; | ||
goog.inherits(app.DesktopController, gmf.AbstractDesktopController); | ||
|
||
|
||
appModule.controller('DesktopController', app.DesktopController); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import '../../../less/desktop.less'; |
Oops, something went wrong.