How to use the ngeo/misc/WMSTime.js.name function in ngeo

To help you get started, we’ve selected a few ngeo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github camptocamp / ngeo / contribs / gmf / src / layertree / component.js View on Github external
/**
 * @type {angular.IModule}
 * @hidden
 */
const module = angular.module('gmfLayertreeComponent', [
  gmfDatasourceDataSourceBeingFiltered.name,
  gmfDatasourceExternalDataSourcesManager.name,
  gmfPermalinkPermalink.name,
  gmfLayertreeDatasourceGroupTreeComponent.name,
  gmfLayertreeSyncLayertreeMap.name,
  gmfLayertreeTreeManager.name,
  gmfThemeThemes.name,
  ngeoLayertreeComponent.name,
  ngeoLayertreeController.name,
  ngeoMapLayerHelper.name,
  ngeoMiscWMSTime.name,
  gmfLayerBeingSwipe.name

]);


// Overrides the path to the layertree template (used by each node, except
// the root node that path is defined by the gmfLayertreeTemplate value.
module.value('ngeoLayertreeTemplateUrl',
  /**
   * @param {JQuery} element Element.
   * @param {angular.IAttributes} attrs Attributes.
   * @return {string} Template URL.
   */
  (element, attrs) => 'gmf/layertree');

module.run(
github camptocamp / ngeo / contribs / gmf / examples / datepicker.js View on Github external
import './datepicker.css';
import ngeoMiscDatepickerComponent from 'ngeo/misc/datepickerComponent.js';

import ngeoMiscWMSTime from 'ngeo/misc/WMSTime.js';
import {TimePropertyWidgetEnum, TimePropertyResolutionEnum, TimePropertyModeEnum}
  from 'ngeo/datasource/OGC.js';


/**
 * @type {!angular.IModule}
 * @hidden
 */
const module = angular.module('gmfapp', [
  'gettext',
  ngeoMiscDatepickerComponent.name,
  ngeoMiscWMSTime.name,
]);

module.constant('angularLocaleScript', '../build/angular-locale_{{locale}}.js');


/**
 * @constructor
 * @param {!angular.IScope} $scope Angular scope.
 * @param {!import("ngeo/misc/WMSTime.js").WMSTime} ngeoWMSTime wmstime service.
 * @ngInject
 */
function MainController($scope, ngeoWMSTime) {

  /**
   * @type {import("ngeo/misc/WMSTime.js").WMSTime}
   * @private
github camptocamp / ngeo / src / misc / extraModule.js View on Github external
export default angular.module('ngeoMiscExtraModule', [
  ngeoMiscAutoProjection.name,
  ngeoMiscBtnComponent.name,
  ngeoMiscControlComponent.name,
  ngeoMiscDatepickerComponent.name,
  ngeoMiscDebounce.name,
  ngeoMiscEventHelper.name,
  ngeoMiscFeatureHelper.name,
  ngeoMiscFile.name,
  ngeoMiscFilereaderComponent.name,
  ngeoMiscFilters.name,
  ngeoMiscGetBrowserLanguage.name,
  ngeoMiscSortableComponent.name,
  ngeoMiscTime.name,
  ngeoMiscToolActivateMgr.name,
  ngeoMiscWMSTime.name,
]);
github camptocamp / ngeo / contribs / gmf / src / layertree / SyncLayertreeMap.js View on Github external
}
  if (!layer) {
    throw new Error('Missing layer');
  }
  return layer;
}


/**
 * @type {angular.IModule}
 * @hidden
 */
const module = angular.module('gmfSyncLayertreeMap', [
  gmfThemeThemes.name,
  ngeoLayertreeController.name,
  ngeoMiscWMSTime.name,
]);
module.service('gmfSyncLayertreeMap', SyncLayertreeMap);


export default module;
github camptocamp / ngeo / src / query / Querent.js View on Github external
return combinedHash;
}


/**
 * @typedef {ngeoDatasourceOGC[][]} CombinedDataSources
 */


/**
 * @type {angular.IModule}
 * @hidden
 */
const module = angular.module('ngeoQuerent', [
  ngeoFilterRuleHelper.name,
  ngeoMiscWMSTime.name,
]);
module.service('ngeoQuerent', Querent);


export default module;
github camptocamp / ngeo / contribs / gmf / examples / timeslider.js View on Github external
import './timeslider.css';
import angular from 'angular';
import gmfLayertreeTimeSliderComponent from 'gmf/layertree/timeSliderComponent.js';

import ngeoMiscWMSTime from 'ngeo/misc/WMSTime.js';
import {TimePropertyWidgetEnum, TimePropertyResolutionEnum, TimePropertyModeEnum}
  from 'ngeo/datasource/OGC.js';


/** @type {!angular.IModule} **/
const module = angular.module('gmfapp', [
  'gettext',
  gmfLayertreeTimeSliderComponent.name,
  ngeoMiscWMSTime.name,
]);

module.constant('angularLocaleScript', '../build/angular-locale_{{locale}}.js');


/**
 * @constructor
 * @param {!angular.IScope} $scope Angular scope.
 * @param {!import("ngeo/misc/WMSTime.js").WMSTime} ngeoWMSTime wmstime service.
 * @ngInject
 */
function MainController($scope, ngeoWMSTime) {

  /**
   * @type {import("ngeo/misc/WMSTime.js").WMSTime}
   * @private