-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(query): Re work the identify query with offset and geometry false… (
#2674) * fix(query): Re work the identify query with offset and geometry false for hover Closes #2565 * manage oid check * Fix oid data table query, uniqueValue no fields * fix reviewable * Add fetch web worker * progress on worker and comments * update geometry from worker for point * pre rebase * finish details * first review comment * fix review --------- Co-authored-by: jolevesq <[email protected]>
- Loading branch information
Showing
31 changed files
with
828 additions
and
131 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
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,50 @@ | ||
{ | ||
"map": { | ||
"interaction": "dynamic", | ||
"viewSettings": { | ||
"projection": 3857 | ||
}, | ||
"basemapOptions": { | ||
"basemapId": "transport", | ||
"shaded": true, | ||
"labeled": false | ||
}, | ||
"listOfGeoviewLayerConfig": [ | ||
{ | ||
"geoviewLayerType": "geoCore", | ||
"geoviewLayerId": "1dcd28aa-99da-4f62-b157-15631379b170" | ||
}, | ||
{ | ||
"geoviewLayerType": "geoCore", | ||
"geoviewLayerId": "6c343726-1e92-451a-876a-76e17d398a1c" | ||
}, | ||
{ | ||
"geoviewLayerType": "geoCore", | ||
"geoviewLayerId": "e2424b6c-db0c-4996-9bc0-2ca2e6714d71" | ||
}, | ||
{ | ||
"geoviewLayerType": "geoCore", | ||
"geoviewLayerId": "c5c249c4-dea6-40a6-8fae-188a42030908" | ||
} | ||
] | ||
}, | ||
"components": [ | ||
"overview-map" | ||
], | ||
"overviewMap": { | ||
"hideOnZoom": 7 | ||
}, | ||
"footerBar": { | ||
"tabs": { | ||
"core": [ | ||
"legend", | ||
"layers", | ||
"details", | ||
"geochart", | ||
"data-table" | ||
] | ||
} | ||
}, | ||
"corePackages": [], | ||
"theme": "geo.ca" | ||
} |
101 changes: 101 additions & 0 deletions
101
packages/geoview-core/public/templates/outliers/outlier-performance.html
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,101 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<title>Outlier ESRI Layers - Canadian Geospatial Platform Viewer</title> | ||
<link rel="shortcut icon" href="./favicon.ico" /> | ||
<meta name="msapplication-TileColor" content="#da532c" /> | ||
<meta name="msapplication-config" content="./img/browserconfig.xml" /> | ||
<meta name="theme-color" content="#ffffff" /> | ||
<meta name="msapplication-TileColor" content="#da532c" /> | ||
<meta name="theme-color" content="#ffffff" /> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto|Montserrat:200,300,400,900|Merriweather" rel="stylesheet" /> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> | ||
<link rel="stylesheet" href="css/style.css" /> | ||
</head> | ||
|
||
<body> | ||
<div class="header-table"> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td><img class="header-logo" alt="logo" src="./img/Logo.png" /></td> | ||
<td class="header-title"> | ||
<h1><strong>Outlier layers with performace issue</strong></h1> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<a href="./index.html">Main</a><br /> | ||
<a href="./outliers.html">Outlier Layers</a><br /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><p>This page is used to showcase layers with few layer with bad performance with different original server projection</p></td> | ||
</tr> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="map-title-holder"> | ||
<h4 id="HMap1">Max Record Count Layers</h4> | ||
<a class="ref-link" href="#top">Top</a> | ||
</div> | ||
<button class="collapsible active">Layers Status</button> | ||
<pre id="HMap1-state" class="panel map-title-holder"></pre> | ||
<hr /> | ||
|
||
<select name="projections" id="projections"> | ||
<option value="3857">Web Mercator (3857)</option> | ||
<option value="3978">LCC (3978)</option> | ||
</select> | ||
<button type="button" onclick="reloadMap()">Set Projection</button> | ||
|
||
<div | ||
id="Map1" | ||
class="geoview-map" | ||
data-lang="en" | ||
data-config-url="./configs/performance.json" | ||
></div> | ||
|
||
<div> | ||
Outlier Layers: | ||
<ul> | ||
<li> | ||
Fieldnotes 2020-2021: Pacific Science Field Operations, 14 sub layer, identify of northern polygon crash the layer. | ||
</li> | ||
<li> | ||
Protected and conserved area - Heavy layer in 3879. | ||
</li> | ||
<li> | ||
Canada Nature Fund for Aquatic Species at Risk (CNFASAR) - Heavy layer in 3857, plus no field define for uniqueValue symbology. | ||
</li> | ||
</ul> | ||
</div> | ||
<hr /> | ||
|
||
<script src="codedoc.js"></script> | ||
<script> | ||
// initialize cgpv and api events, a callback is optional, used if calling api's after the rendering is ready | ||
cgpv.init((mapId) => { | ||
listenToLegendLayerSetChanges('HMap1-state', 'Map1'); | ||
}); | ||
|
||
function reloadMap() { | ||
cgpv.api.maps['Map1'].setProjection(Number(document.getElementById('projections').value)); | ||
} | ||
|
||
// create snippets | ||
window.addEventListener('load', () => { | ||
createCodeSnippet(); | ||
createConfigSnippet(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
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 |
---|---|---|
|
@@ -72,7 +72,8 @@ | |
"string", | ||
"number", | ||
"date", | ||
"url" | ||
"url", | ||
"oid" | ||
] | ||
}, | ||
"TypeFeatureInfoNotQueryable": { | ||
|
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
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 |
---|---|---|
|
@@ -1707,7 +1707,8 @@ | |
"string", | ||
"number", | ||
"date", | ||
"url" | ||
"url", | ||
"oid" | ||
] | ||
}, | ||
"codedValueType": { | ||
|
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
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
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
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
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
Oops, something went wrong.