How to use the ngeo/map/LayerHelper.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');
github camptocamp / ngeo / contribs / gmf / src / editing / editFeatureComponent.js View on Github external
* @type {string}
   */
  STOP_EDITING_PENDING: 'stop_editing_pending'
};

/**
 * @type {angular.IModule}
 * @hidden
 */
const module = angular.module('GmfEditingFeatureComponent', [
  gmfEditingEditFeature.name,
  gmfEditingSnapping.name,
  gmfEditingXSDAttributes.name,
  ngeoEditingAttributesComponent.name,
  ngeoEditingCreatefeatureComponent.name,
  ngeoMapLayerHelper.name,
  ngeoMessageModalComponent.name,
  ngeoMiscBtnComponent.name,
  ngeoMiscEventHelper.name,
  ngeoMiscFeatureHelper.name,
  ngeoMiscToolActivateMgr.name,
]);


module.run(
  /**
   * @ngInject
   * @param {angular.ITemplateCacheService} $templateCache
   */
  ($templateCache) => {
    // @ts-ignore: webpack
    $templateCache.put('gmf/editing/editFeatureComponent', require('./editFeatureComponent.html'));
github camptocamp / ngeo / src / map / BackgroundLayerMgr.js View on Github external
source.updateParams(updatedDimensions);
              source.refresh();
            }
          }
        }
      });
    }
  }
}

/**
 * @type {angular.IModule}
 * @hidden
 */
const module = angular.module('ngeoBackgroundLayerMgr', [
  ngeoLayerHelper.name
]);
module.service('ngeoBackgroundLayerMgr', MapBackgroundLayerManager);


export default module;
github camptocamp / ngeo / src / map / extraModule.js View on Github external
/**
 */
import angular from 'angular';
import ngeoMapLayerHelper from 'ngeo/map/LayerHelper.js';

/**
 * @type {angular.IModule}
 */
export default angular.module('ngeoMapExtraModule', [
  ngeoMapLayerHelper.name,
]);
github camptocamp / ngeo / contribs / gmf / src / datasource / ExternalDataSourcesManager.js View on Github external
* @param {Object} layer WMS/WMTS Capability Layer object.
 * @return {number} Data source id.
 * @private
 * @hidden
 */
function getId(layer) {
  return Number(olUtilGetUid(layer)) + 1000000;
}


/**
 * @type {angular.IModule}
 * @hidden
 */
const module = angular.module('gmfExternalDataSourcesManager', [
  ngeoMapLayerHelper.name,
  ngeoMiscFile.name,
  ngeoDatasourceDataSources.name,
]);
module.service('gmfExternalDataSourcesManager', ExternalDatSourcesManager);


export default module;