Skip to content

Commit

Permalink
**Geoview-geochart**
Browse files Browse the repository at this point in the history
Panel has a new callback for when the panel has completed its opening transition
Reworked panel opened handle
Update geochart.tsx
Panels synch
Some configs
Improved createCodeSnippetUsingIDs to be able to point to more than 1 script and stack them in the code snippet
Better templates and showing of code snippets
Cleaned up the generation of default values via parsing, the default values are coming from the Chart itself.
Now handling an error when the Chart fails to render
Changed the package.json to point to the #develop branch instead of main
Cleanup and support for theme
Just some template values update
GeoChart not caring for the redrawing state timer anymore (simplified)
Now with layers for map1 for an attempt to attach to queries done event
Added dependencies to useEffect()
Now parsing new useSteps parameter
Handling the error and using the ChartValidator static parsing for the errors
Merged the data and options parameters for the plugin into 1 single json
Schema stuff
Geochart configuration progress
Added a rule about having an await if a function has the 'async' keyword and enforcing the return to be a Promise.
Changed from an error to a warning
Fixed a the params comments on getGeoviewLayerByIdAsync
New event to load the config for the plugin dynamically (extra)
Cleaner event payloads
Deactivated the sliders events (temporarily)
Now loading the config in json 'live' in the template
Commit to not lose track. Lots of work done, going deeper..
From the Component, I have no themes setup, so when I import the UI.Select component from cgpv there are no theme.
I've tried to create a 'cgpv theme' over in my component, but I then needed a ThemeProvider component to wrap my application, which I didn't find as a export in cgpv.
So I added support to the Select component when no themes are set for now.
I couldn't find out how to make the MenuItemProps.content property work when passed via TypeMenuItemProps. So I'm doing it more explicitly and this works fine.
Simplified the component injection in checkboxlist-enhanced to follow pattern implemented in Select
Rush update
Re-added the hyper link to the demo which disappeared at some time
Added support for lazy loading
Added loading spinners
Added support for Shellfish Sites queries
Now also attaching to the payload_query event to really know when the query started (and when the query ended)
Cleaned up the configurations
Rush update
Attempt to parse urls
Added 'step' prop support to the slider-base.tsx
Improved typings of GeoViewGeoChartConfigLayerQueryOptions
Using useCallbacks in GeoChart Plugin for performance and best-practice
Bilingual support
Rush update
Adjustments for the new feature-info-payload.
Bilingual support.
Added axes type explicit configs.
Minor comments updates
Exposing the store for the plugins via app.tsx
Now using the store in GeoChart plugin to read the feature-info-layer-set
  • Loading branch information
Alex-NRCan committed Nov 14, 2023
1 parent a4b1143 commit 66690cf
Show file tree
Hide file tree
Showing 32 changed files with 13,218 additions and 20 deletions.
117 changes: 112 additions & 5 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"suportedLanguages": ["en", "fr"],
"charts": [{
"layers": [{
"layerId": "geojsonLYR5/polygons.json"
}],
"chart": "line",
"geochart": {
"xAxis": {
"property": "label"
},
"yAxis": {
"property": "data"
}
},
"datasources": [{
"display": "Feature",
"items": [{
"data": 92,
"label": "Hockey",
"location": "Victoria"
},{
"data": 43.54,
"label": "Baseball",
"location": "Victoria"
},{
"data": 12.3,
"label": "Basketball",
"location": "Victoria"
},{
"data": 66,
"label": "Football",
"location": "Victoria"
},{
"data": 75,
"label": "Soccer",
"location": "Victoria"
},{
"data": 553,
"label": "Hockey",
"location": "Toronto"
},{
"data": 54,
"label": "Baseball",
"location": "Toronto"
},{
"data": 32.553,
"label": "Basketball",
"location": "Toronto"
},{
"data": 5.43,
"label": "Football",
"location": "Toronto"
},{
"data": 55,
"label": "Soccer",
"location": "Toronto"
},{
"data": 155,
"label": "Hockey",
"location": "Montreal"
},{
"data": 55,
"label": "Baseball",
"location": "Montreal"
},{
"data": 255,
"label": "Basketball",
"location": "Montreal"
}]
}]
},
{
"layers": [{
"layerId": "geojsonLYR5/point-feature-group/points.json"
}, {
"layerId": "geojsonLYR5/lines.json"
}],
"chart": "bar",
"geochart": {
"xAxis": {
"property": "label"
},
"yAxis": {
"property": "data"
}
},
"datasources": [{
"display": "Feature",
"items": [{
"data": 92,
"label": "Hockey",
"location": "Victoria"
},{
"data": 43.54,
"label": "Baseball",
"location": "Victoria"
},{
"data": 12.3,
"label": "Basketball",
"location": "Victoria"
},{
"data": 66,
"label": "Football",
"location": "Victoria"
},{
"data": 75,
"label": "Soccer",
"location": "Victoria"
},{
"data": 553,
"label": "Hockey",
"location": "Toronto"
},{
"data": 54,
"label": "Baseball",
"location": "Toronto"
},{
"data": 32.553,
"label": "Basketball",
"location": "Toronto"
},{
"data": 5.43,
"label": "Football",
"location": "Toronto"
},{
"data": 55,
"label": "Soccer",
"location": "Toronto"
},{
"data": 155,
"label": "Hockey",
"location": "Montreal"
},{
"data": 55,
"label": "Baseball",
"location": "Montreal"
},{
"data": 255,
"label": "Basketball",
"location": "Montreal"
}]
}]
}]
}
Loading

0 comments on commit 66690cf

Please sign in to comment.