-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP feat(myposition): my position gets data around position
- Loading branch information
Showing
2 changed files
with
60 additions
and
14 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
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) { | ||
|
||
} | ||
} |
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