Skip to content

Commit

Permalink
WIP feat(myposition): my position gets data around position
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Jan 3, 2025
1 parent 095e639 commit de31351
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 14 deletions.
46 changes: 46 additions & 0 deletions src/js/immersive-position.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Copyright (c) Institut national de l'information géographique et forestière
*
* This program and the accompanying materials are made available under the terms of the GPL License, Version 3.0.
*/

/**
* Gestion de la "position immersive" avec des requêtes faites aux données autour d'une position
* @fires cityLoaded
* @fires deptLoaded
* @fires parcLoaded
* @fires forestLoaded
* @fires agriLoaded
* @fires zaiLoaded
* @fires waterLoaded
*/
class ImmersivePosion extends EventTarget {
/**
* constructeur
* @param {*} options -
* @param {*} options.lat - latitude
* @param {*} options.lng - longitude
*/
constructor(options) {
super();
this.options = options || {
lat : 0,
lng : 0,
};
this.#computeAll();
}

/**
* Computes all data queries
*/
#computeAll() {

}

/**
* Computes data for a given layer of Geoplateforme's WFS
*/
#computeGenericGPFWFS(layer, attributes, geom_name=geom, epsg=4326) {

}
}
28 changes: 14 additions & 14 deletions src/js/layer-manager/layer-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,24 @@ import LayersConfig from "./layer-config";
*/
class LayerManager extends EventTarget {
/**
* constructeur
* @param {*} options -
* @param {*} options.target - ...
* @param {*} options.layers - ...
* @example
* new LayerManger({
* layers : [
* layers : "couche1, couche2, ...",
* type : "base" // data ou thematic
* ]
* });
*/
* constructeur
* @param {*} options -
* @param {*} options.target - ...
* @param {*} options.layers - ...
* @example
* new LayerManger({
* layers : [
* layers : "couche1, couche2, ...",
* type : "base" // data ou thematic
* ]
* });
*/
constructor(options) {
super();
this.options = options || {
/**
* ["layerid", "layer2id"]
*/
* ["layerid", "layer2id"]
*/
layers : [],
target : null
};
Expand Down

0 comments on commit de31351

Please sign in to comment.