Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Feb 14, 2024
1 parent f619e6a commit bed1a9b
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 36 deletions.
2 changes: 1 addition & 1 deletion itowns/dev/docs/api/Layer/ElevationLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h2>Example</h2>
<pre class="prettyprint source lang-js"><code>// Create an ElevationLayer
const elevation = new ElevationLayer('IGN_MNT', {
source: new WMTSSource({
"url": "https://wxs.ign.fr/altimetrie/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:4326",
"format": "image/x-bil;bits=32",
"name": "ELEVATION.ELEVATIONGRIDCOVERAGE",
Expand Down
4 changes: 2 additions & 2 deletions itowns/dev/docs/api/Source/WFSSource.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h2>Example</h2>
<pre class="prettyprint source lang-js"><code>// Add color layer with WFS source
// Create the source
const wfsSource = new itowns.WFSSource({
url: 'http://wxs.fr/wfs',
url: 'https://data.geopf.fr/wfs/ows?',
version: '2.0.0',
typeName: 'BDTOPO_BDD_WLD_WGS84G:bati_remarquable',
crs: 'EPSG:4326',
Expand Down Expand Up @@ -127,7 +127,7 @@ <h2>Example</h2>
<pre class="prettyprint source lang-js"><code>// Add geometry layer with WFS source
// Create the source
const wfsSource = new itowns.WFSSource({
url: 'http://wxs.fr/wfs',
url: 'https://data.geopf.fr/wfs/ows?',
version: '2.0.0',
typeName: 'BDTOPO_BDD_WLD_WGS84G:bati_remarquable',
crs: 'EPSG:4326',
Expand Down
8 changes: 3 additions & 5 deletions itowns/dev/examples/entwine_simple_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@
<script src="js/GUI/LoadingScreen.js"></script>
<script src="../dist/debug.js"></script>
<script type="text/javascript">
itowns.proj4.defs('EPSG:3946', '+proj=lcc +lat_0=46 +lon_0=3 +lat_1=45.25 +lat_2=46.75 +x_0=1700000 +y_0=5200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs');

var debugGui = new dat.GUI();
var viewerDiv = document.getElementById('viewerDiv');
viewerDiv.style.display = 'block';
var view = new itowns.View('EPSG:3946', viewerDiv);
view.mainLoop.gfxEngine.renderer.setClearColor(0xcccccc);

var controls = new itowns.FirstPersonControls(view, { focusOnClick: true });
debugGui.add(controls.options, 'moveSpeed', 1, 10000).name('Movement speed');
const controls = new itowns.PlanarControls(view);

var eptLayer, eptSource;

Expand All @@ -55,10 +56,7 @@
view.camera3D.position.copy(position);
view.camera3D.lookAt(lookAt);

controls.options.moveSpeed = size.length();

view.notifyChange(view.camera3D);
controls.reset();
}

function readEPTURL() {
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Administrative.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"transparent": true,
"source": {
"crs": "EPSG:3857",
"url": "https://wxs.ign.fr/administratif/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"format": "image/png",
"name": "LIMITES_ADMINISTRATIVES_EXPRESS.LATEST",
"style": "normal",
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Cada.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"opacity": 1,
"transparent": true,
"source": {
"url": "https://wxs.ign.fr/parcellaire/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:3857",
"networkOptions": {
"crossOrigin": "omit"
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Cassini.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "Cassini",
"source": {
"url": "http://wxs.ign.fr/va5orxd0pgzvq3jxutqfuy0b/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:3857",
"networkOptions": {
"crossOrigin": "anonymous"
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Denomination.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"opacity": 1,
"transparent": true,
"source": {
"url": "https://wxs.ign.fr/3ht7xcw6f7nciopo16etuqp2/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:3857",
"tileMatrixSet": "PM",
"format": "image/png",
Expand Down
4 changes: 2 additions & 2 deletions itowns/dev/examples/layers/JSONLayers/EtatMajor.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "Etat major (1850)",
"id": "Etat major (1850)",
"opacity": 1,
"transparent": true,
"source": {
"crs": "EPSG:3857",
"url": "http://wxs.ign.fr/cartes/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"networkOptions": {
"crossOrigin": "anonymous"
},
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/IGN_MNS_HIGHRES.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"max": 17
},
"source": {
"url": "https://wxs.ign.fr/altimetrie/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:4326",
"format": "image/x-bil;bits=32",
"attribution" : {
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/IGN_MNT.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"source": {
"url": "https://wxs.ign.fr/altimetrie/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:4326",
"format": "image/x-bil;bits=32",
"attribution" : {
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/IGN_MNT_HIGHRES.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
},
"source": {
"url": "https://wxs.ign.fr/altimetrie/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:4326",
"format": "image/x-bil;bits=32",
"attribution" : {
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Ortho.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "Ortho",
"source": {
"url": "https://wxs.ign.fr/decouverte/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:3857",
"networkOptions": {
"crossOrigin": "anonymous"
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Railways.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"transparent": true,
"source": {
"crs": "EPSG:3857",
"url": "https://wxs.ign.fr/3ht7xcw6f7nciopo16etuqp2/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"format": "image/png",
"networkOptions": {
"crossOrigin": "omit"
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Region.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id" : "Region",
"transparent" : true,
"source": {
"url" : "https://wxs.ign.fr/3ht7xcw6f7nciopo16etuqp2/geoportail/v/wms",
"url" : "https://data.geopf.fr/wms-r/wms?",
"networkOptions": {
"crossOrigin": "anonymous"
},
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/ScanEX.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"effect_parameter": 2.5,
"source": {
"crs": "EPSG:3857",
"url": "https://wxs.ign.fr/3ht7xcw6f7nciopo16etuqp2/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"format": "image/jpeg",
"name": "GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD",
"attribution" : {
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Top25.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "Top25",
"source": {
"crs": "EPSG:3857",
"url": "http://wxs.ign.fr/va5orxd0pgzvq3jxutqfuy0b/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"networkOptions": {
"crossOrigin": "anonymous"
},
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/Transport.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"transparent": true,
"source": {
"crs": "EPSG:3857",
"url": "https://wxs.ign.fr/3ht7xcw6f7nciopo16etuqp2/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"format": "image/png",
"networkOptions": {
"crossOrigin": "omit"
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/layers/JSONLayers/WORLD_DTM.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"source": {
"format": "image/x-bil;bits=32",
"crs": "EPSG:4326",
"url": "https://wxs.ign.fr/altimetrie/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"name": "ELEVATION.ELEVATIONGRIDCOVERAGE.SRTM3",
"tileMatrixSet": "WGS84G",
"tileMatrixSetLimits": {
Expand Down
4 changes: 2 additions & 2 deletions itowns/dev/examples/source_stream_wfs_25d.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
}

var wfsBuildingSource = new itowns.WFSSource({
url: 'https://wxs.ign.fr/topographie/geoportail/wfs?',
url: 'https://data.geopf.fr/wfs/ows?',
version: '2.0.0',
typeName: 'BDTOPO_V3:batiment',
crs: 'EPSG:4326',
Expand Down Expand Up @@ -271,7 +271,7 @@
view.addLayer(wfsBuildingLayer);

var wfsCartoSource = new itowns.WFSSource({
url: 'https://wxs.ign.fr/cartovecto/geoportail/wfs?',
url: 'https://data.geopf.fr/wfs/ows?',
version: '2.0.0',
typeName: 'BDCARTO_BDD_WLD_WGS84G:zone_habitat_mairie',
crs: 'EPSG:3946',
Expand Down
19 changes: 10 additions & 9 deletions itowns/dev/examples/source_stream_wfs_3d.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@

var color = new itowns.THREE.Color();
var tile;
function altitudeLine(properties, contour) {
function altitudeLine(properties, ctx) {
var result;
var z = 0;
if (contour) {
result = itowns.DEMUtils.getTerrainObjectAt(view.tileLayer, contour, 0, tile);
if (ctx.coordinates) {
result = itowns.DEMUtils.getTerrainObjectAt(view.tileLayer, ctx.coordinates, 0, tile);
if (!result) {
result = itowns.DEMUtils.getTerrainObjectAt(view.tileLayer, contour, 0);
result = itowns.DEMUtils.getTerrainObjectAt(view.tileLayer, ctx.coordinates, 0);
}
tile = [result.tile];
if (result) {
tile = [result.tile];
z = result.coord.z;
}
return z + 5;
Expand All @@ -95,19 +95,20 @@
return false;
}

var lyonTclBusSource = new itowns.WFSSource({
lyonTclBusSource = new itowns.WFSSource({
url: "https://data.grandlyon.com/geoserver/sytral/ows?",
protocol: 'wfs',
url: 'https://download.data.grandlyon.com/wfs/rdata?',
version: '2.0.0',
typeName: 'tcl_sytral.tcllignebus',
id: 'tcl_bus',
typeName: "tcl_sytral.tcllignebus_2_0_0",
crs: 'EPSG:3946',
extent: {
west: 1822174.60,
east: 1868247.07,
south: 5138876.75,
north: 5205890.19,
},
format: 'geojson',
format: 'application/json',
});

var lyonTclBusLayer = new itowns.FeatureGeometryLayer('WFS Bus lines',{
Expand Down
2 changes: 1 addition & 1 deletion itowns/dev/examples/source_stream_wfs_raster.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}

var wfsBuildingSource = new itowns.WFSSource({
url: 'https://wxs.ign.fr/topographie/geoportail/wfs?',
url: 'https://data.geopf.fr/wfs/ows?',
version: '2.0.0',
typeName: 'BDTOPO_V3:batiment',
crs: 'EPSG:4326',
Expand Down

0 comments on commit bed1a9b

Please sign in to comment.