Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[chore] update readme, fix examples, show effects button (#2492)
Igor Dykhta21a445fde78b
diff --git a/README.md b/README.mdindex 029819af2..21e1b7468 100644--- a/README.md+++ b/README.md@@ -48,12 +48,12 @@ Kepler.gl is also a React component that uses [Redux](https://redux.js.org/) to## Env-Use Node 10.15.0 or above, older node versions have not been supported/ tested.+Use Node 18.18.2 or above, older node versions have not been supported/ tested.For best results, use [nvm](https://github.com/creationix/nvm) `nvm install`.## Install kepler.gl-Install node (`> 10.15.0`), yarn, and project dependencies+Install node (`> 18.18.2`), yarn, and project dependencies```shnpm install --save kepler.gl@@ -73,7 +73,7 @@ You can add the script tag to your html file as it follows:or if you would like, you can load a specific version```html-<script src="https://unpkg.com/[email protected]/umd/keplergl.min.js" />+<script src="https://unpkg.com/[email protected]/umd/keplergl.min.js" />```## Develop kepler.gl@@ -93,8 +93,8 @@ You need to add `taskMiddleware` of `react-palm` to your store too. We are activ```jsimport {createStore, combineReducers, applyMiddleware, compose} from 'redux';-import keplerGlReducer from 'kepler.gl/reducers';-import {enhanceReduxMiddleware} from 'kepler.gl/middleware';+import keplerGlReducer from '@kepler.gl/reducers';+import {enhanceReduxMiddleware} from '@kepler.gl/middleware';const initialState = {};const reducers = combineReducers({@@ -139,15 +139,10 @@ Read more about [Reducers][reducers].### 2. Mount Component```js-import KeplerGl from 'kepler.gl';+import KeplerGl from '@kepler.gl/components';const Map = props => (- <KeplerGl- id="foo"- width={width}- mapboxApiAccessToken={token}- height={height}- />+ <KeplerGl id="foo" width={width} mapboxApiAccessToken={token} height={height} />);```@@ -165,14 +160,13 @@ stored in `state.keplerGl.foo`.In case you create multiple kepler.gl instances using the same id, the kepler.gl state defined by the entry will beoverridden by the latest instance and reset to a blank state.-##### `mapboxApiAccessToken` (String, required*)+##### `mapboxApiAccessToken` (String, required\*)- Default: `undefined`-By default, kepler.gl uses mapbox-gl.js to render its base maps. You can create a free account at [mapbox][mapbox] and create a token at [www.mapbox.com/account/access-tokens][mapbox-token].-If you replaced kepler.gl default map styles with your own, and they are not Mapbox styles. `mapboxApiAccessToken` will not be reuiqred.+If you replaced kepler.gl default map styles with your own, and they are not Mapbox styles. `mapboxApiAccessToken` will not be required.Read more about [Custom Map Styles][custom-map-styles].@@ -350,10 +344,9 @@ const composedReducer = (state, action) => {// 'map' is the id of the keplerGl instancemap: {...state.keplerGl.map,- visState: visStateUpdaters.updateVisDataUpdater(- state.keplerGl.map.visState,- {datasets: action.payload}- )+ visState: visStateUpdaters.updateVisDataUpdater(state.keplerGl.map.visState, {+ datasets: action.payload+ })}}};@@ -373,10 +366,10 @@ using connect.```js// component-import KeplerGl from 'kepler.gl';+import KeplerGl from '@kepler.gl/components';// action and forward dispatcher-import {toggleFullScreen, forwardTo} from 'kepler.gl/actions';+import {toggleFullScreen, forwardTo} from '@kepler.gl/actions';import {connect} from 'react-redux';const MapContainer = props => (@@ -406,10 +399,10 @@ You can also simply wrap an action into a forward action with the `wrapTo` helpe```js// component-import KeplerGl from 'kepler.gl';+import KeplerGl from '@kepler.gl/components';// action and forward dispatcher-import {toggleFullScreen, wrapTo} from 'kepler.gl/actions';+import {toggleFullScreen, wrapTo} from '@kepler.gl/actions';// create a function to wrapper action payload to 'foo'const wrapToMap = wrapTo('foo');@@ -480,12 +473,7 @@ const customTheme = {return (<ThemeProvider theme={customTheme}>- <KeplerGl- mapboxApiAccessToken={MAPBOX_TOKEN}- id="map"- width={800}- height={800}- />+ <KeplerGl mapboxApiAccessToken={MAPBOX_TOKEN} id="map" width={800} height={800} /></ThemeProvider>);```@@ -498,16 +486,14 @@ and call `injectComponents` at the root component of your app where `KeplerGl` iTake a look at `examples/demo-app/src/app.js` and see how it renders a custom side panel header in kepler.gl```javascript-import {injectComponents, PanelHeaderFactory} from 'kepler.gl/components';+import {injectComponents, PanelHeaderFactory} from '@kepler.gl/components';// define custom headerconst CustomHeader = () => <div>My kepler.gl app</div>;const myCustomHeaderFactory = () => CustomHeader;// Inject custom header into Kepler.gl, replacing default-const KeplerGl = injectComponents([- [PanelHeaderFactory, myCustomHeaderFactory]-]);+const KeplerGl = injectComponents([[PanelHeaderFactory, myCustomHeaderFactory]]);// render KeplerGl, it will render your custom header instead of the defaultconst MapContainer = () => (@@ -520,12 +506,8 @@ const MapContainer = () => (Using `withState` helper to add reducer state and actions to customized component as additional props.```js-import {- withState,- injectComponents,- PanelHeaderFactory-} from 'kepler.gl/components';-import {visStateLens} from 'kepler.gl/reducers';+import {withState, injectComponents, PanelHeaderFactory} from '@kepler.gl/components';+import {visStateLens} from '@kepler.gl/reducers';// custom action wrap to mounted instanceconst addTodo = text =>@@ -562,6 +544,7 @@ To interact with a kepler.gl instance and add new data to it, you can dispatch t#### Parameters- `data` **[Object][40]** **\*required**+- `datasets` **([Array][41]<[Object][40]> | [Object][40])** **\*required** datasets can be a dataset or an array of datasetsEach dataset object needs to have `info` and `data` property.- `datasets.info` **[Object][40]** \-info of a dataset@@ -586,7 +569,7 @@ Kepler.gl provides an easy API `KeplerGlSchema.getConfigToSave` to generate a js```javascript// app.js-import {addDataToMap} from 'kepler.gl/actions';+import {addDataToMap} from '@kepler.gl/actions';const sampleTripData = {fields: [diff --git a/UPGRADE-GUIDE.md b/UPGRADE-GUIDE.mdindex c20a65767..401ddf465 100644--- a/UPGRADE-GUIDE.md+++ b/UPGRADE-GUIDE.md@@ -1,6 +1,7 @@# Upgrade Guide## Table of Content+- [v2.3 to v2.4](#upgrade-from-v23-to-v24)- [v2.2 to v2.3](#upgrade-from-v22-to-v23)@@ -9,91 +10,116 @@- [v1.1.12 to v2.0](#upgrade-from-v1112-to-v20)- [v1.1.11 to v1.1.12](#upgrade-from-v1111-to-v1112)+## Upgrade from v2.4 to v3.0++- TBD+## Upgrade from v2.3 to v2.4### Breaking Changes+- Supports React 17- Dependency Upgrades, major ones: `d3-xxx@^2`, `[email protected]`, `[email protected]`, `react-palm@~3.3.7`### New Features-- Support incremental timeline animation++- Support incremental timeline animation- Allow changing dataset in layer config- Enable polygon filter for h3 layer- Show last added filter at the top### Bug Fixes+- Avoid duplicated h3 layer detection- Fixed bug when reversing color palette not update+## Upgrade from v2.2 to v2.3+- Upgrade dependencies to `[email protected]`, `[email protected]` and `[email protected]`. This should only affects projects with the above libraries in its dependencies.## Upgrade from v2.1 to v2.2+### New Features-- __Interaction__ - Added Geocoder in the interactin panel++- **Interaction** - Added Geocoder in the interactin panel### Improvements-- __Localization__ - Added Spanish, Catalan, and Portuguese translations++- **Localization** - Added Spanish, Catalan, and Portuguese translations### Bug Fixes-- __Layer__ - Aggregation layer fix out-of-domain coloring for valid strings-- __Export__ - Fixed download file for microsoft edge++- **Layer** - Aggregation layer fix out-of-domain coloring for valid strings+- **Export** - Fixed download file for microsoft edge### API Update-- __Components__ - Exported map drawing editor factories++- **Components** - Exported map drawing editor factories## Upgrade from v2.0 to v2.1+### Breaking Changes+- Upgrade Node v10 for dev development, node requirement is now at `>=10.15.0`### New Features-- __Provider__ - Add cloud provider API-- __Layer__ - Added S2 Layer-- __Basemap__ - Added satellite to base map styles options-- __Theme__ - Added base UI theme to theme option as `base`++- **Provider** - Add cloud provider API+- **Layer** - Added S2 Layer+- **Basemap** - Added satellite to base map styles options+- **Theme** - Added base UI theme to theme option as `base`### Improvements-- __UI__ - Improved data table and layer panel header-- __Filter__ - Better handle filter steps for small domains++- **UI** - Improved data table and layer panel header+- **Filter** - Better handle filter steps for small domains### Bug Fixes-- __Layer__ - Remove incorrect outlier for better map center detection-- __Layer__ - Fix point layer stroke width-- __Basemap__ - Fix bug custom map style not saved correctly-- __Export__ - Fix bug exported html blank------+- **Layer** - Remove incorrect outlier for better map center detection+- **Layer** - Fix point layer stroke width+- **Basemap** - Fix bug custom map style not saved correctly+- **Export** - Fix bug exported html blank++---+## Upgrade from v1.1.12 to v2.0### Breaking Changes+- Upgrade deck.gl to `8.0.15`, this only affects projects with deck.gl in its dependencies. Because only one version of deck.gl can be loaded.### New Features-- __GPU Filter__ - Improved time and numeric filter performance by moving calculation to GPU-- __Geo Fitler__ - Added drawing polygon function, allow filter layer based on polygon++- **GPU Filter** - Improved time and numeric filter performance by moving calculation to GPU+- **Geo Fitler** - Added drawing polygon function, allow filter layer based on polygon### Improvements-- __Layer__ - Improved GeoJson and H3 layer geometry rendering-- __UI__ - Support custom side panel tabs. [example](https://github.com/keplergl/kepler.gl/tree/master/examples/replace-component)++- **Layer** - Improved GeoJson and H3 layer geometry rendering+- **UI** - Support custom side panel tabs. [example](https://github.com/keplergl/kepler.gl/tree/master/examples/replace-component)### Bug Fixes+---------## Upgrade from v1.1.11 to v1.1.12### Breaking Changes#### Dependency Upgrade-- __react__ and __react-dom__: minimum required version is now `^16.3`-- __react-redux__ is upgraded to `^7.1.3`. If you have older version of `react-redux` in your app. You will have error loading kepler.gl, likely due to multiple version of `react-redux` installed.-- __react-palm__: required version is now `^3.1.2`.-- __react-route__: if you are using `react-router`, we suggest using `^3.2.5` to avoid `React 16.8` lifecycle deprecation warning in the console.+- **react** and **react-dom**: minimum required version is now `^16.3`+- **react-redux** is upgraded to `^7.1.3`. If you have older version of `react-redux` in your app. You will have error loading kepler.gl, likely due to multiple version of `react-redux` installed.+- **react-palm**: required version is now `^3.1.2`.+- **react-route**: if you are using `react-router`, we suggest using `^3.2.5` to avoid `React 16.8` lifecycle deprecation warning in the console.### Bug Fixes-- __Cluster Layer__: Fix incorrect cluster point count. Fix cluster layer missing in exported image.++- **Cluster Layer**: Fix incorrect cluster point count. Fix cluster layer missing in exported image.### Moved from `kepler.gl/utils` to `@kepler.gl/table`+- `maybeToDate`- `getNewDatasetColor`- `createNewDataEntry`@@ -105,6 +131,7 @@- `getDatasetFieldIndexForFilter`### Moved from `kepler.gl/utils` to `@kepler.gl/reducers`+- `findMapBounds`- `exportData`- `TOOLTIP_MINUS_SIGN`@@ -129,6 +156,7 @@- `computeDeckLayers`### Moved from `kepler.gl/processors` to `@kepler.gl/utils`+- `ACCEPTED_ANALYZER_TYPES`- `validateInputData`- `getSampleForTypeAnalyze`@@ -137,9 +165,11 @@- `analyzerTypeToFieldType`### Moved from `kepler.gl/templates` to `@kepler.gl/utils`+- `exportMapToHTML`### Moved from `kepler.gl/layers` to `@kepler.gl/utils`+- `getCentroid`- `idToPolygonGeo`- `h3IsValid`diff --git a/examples/custom-map-style/package.json b/examples/custom-map-style/package.jsonindex 0855f755a..82c4315b6 100644--- a/examples/custom-map-style/package.json+++ b/examples/custom-map-style/package.json@@ -4,9 +4,9 @@"start-local": "webpack-dev-server --env.es6 --progress --hot --open"},"dependencies": {- "global": "^4.3.0","@kepler.gl/components": "^3.0.0-alpha.1","@kepler.gl/reducers": "^3.0.0-alpha.1",+ "global": "^4.3.0","react": "^18.2.0","react-dom": "^18.2.0","react-palm": "^3.3.6",diff --git a/examples/custom-map-style/webpack.config.js b/examples/custom-map-style/webpack.config.jsindex a1aec954b..9ed4848d8 100644--- a/examples/custom-map-style/webpack.config.js+++ b/examples/custom-map-style/webpack.config.js@@ -29,6 +29,12 @@ const CONFIG = {loader: 'babel-loader',include: join(__dirname, 'src'),exclude: [/node_modules/]+ },+ // fix for arrow-related errors+ {+ test: /\.mjs$/,+ include: /node_modules/,+ type: 'javascript/auto'}]},diff --git a/examples/custom-reducer/package.json b/examples/custom-reducer/package.jsonindex c49ad65ec..d99b73ba4 100644--- a/examples/custom-reducer/package.json+++ b/examples/custom-reducer/package.json@@ -4,10 +4,10 @@"start-local": "webpack-dev-server --env.es6 --progress --hot --open"},"dependencies": {- "global": "^4.3.0","@kepler.gl/actions": "^3.0.0-alpha.1","@kepler.gl/components": "^3.0.0-alpha.1","@kepler.gl/reducers": "^3.0.0-alpha.1",+ "global": "^4.3.0","react": "^18.2.0","react-dom": "^18.2.0","react-palm": "^3.3.6",diff --git a/examples/custom-reducer/webpack.config.js b/examples/custom-reducer/webpack.config.jsindex cac02c163..9478149e7 100644--- a/examples/custom-reducer/webpack.config.js+++ b/examples/custom-reducer/webpack.config.js@@ -29,6 +29,12 @@ const CONFIG = {loader: 'babel-loader',include: join(__dirname, 'src'),exclude: [/node_modules/]+ },+ // fix for arrow-related errors+ {+ test: /\.mjs$/,+ include: /node_modules/,+ type: 'javascript/auto'}]},diff --git a/examples/custom-theme/package.json b/examples/custom-theme/package.jsonindex 05929576d..6f545d032 100644--- a/examples/custom-theme/package.json+++ b/examples/custom-theme/package.json@@ -4,9 +4,9 @@"start-local": "webpack-dev-server --mode development --env.es6 --progress --hot --open"},"dependencies": {- "global": "^4.3.0","@kepler.gl/components": "^3.0.0-alpha.1","@kepler.gl/reducers": "^3.0.0-alpha.1",+ "global": "^4.3.0","react": "^18.2.0","react-dom": "^18.2.0","react-palm": "^3.3.6",diff --git a/examples/custom-theme/webpack.config.js b/examples/custom-theme/webpack.config.jsindex 456d76fd5..c43f6d48f 100644--- a/examples/custom-theme/webpack.config.js+++ b/examples/custom-theme/webpack.config.js@@ -29,6 +29,12 @@ const CONFIG = {loader: 'babel-loader',include: join(__dirname, 'src'),exclude: [/node_modules/]+ },+ // fix for arrow-related errors+ {+ test: /\.mjs$/,+ include: /node_modules/,+ type: 'javascript/auto'}]},diff --git a/examples/demo-app/webpack.config.js b/examples/demo-app/webpack.config.jsindex d75c26bca..db8fed0a9 100644--- a/examples/demo-app/webpack.config.js+++ b/examples/demo-app/webpack.config.js@@ -36,6 +36,12 @@ const CONFIG = {loader: 'babel-loader',include: [join(__dirname, 'src')],exclude: [/node_modules/]+ },+ // fix for arrow-related errors+ {+ test: /\.mjs$/,+ include: /node_modules/,+ type: 'javascript/auto'}]},diff --git a/examples/node-app/package.json b/examples/node-app/package.jsonindex 03b35a76c..4a1a391ea 100644--- a/examples/node-app/package.json+++ b/examples/node-app/package.json@@ -1,13 +1,13 @@{"scripts": {- "start": "node server.js",- "start-local": "WEBPACK_ENV=es6 node server.js"+ "start": "NODE_OPTIONS=--openssl-legacy-provider node server.js",+ "start-local": "NODE_OPTIONS=--openssl-legacy-provider WEBPACK_ENV=es6 node server.js"},"dependencies": {- "express": "^4.17.1",- "global": "^4.3.0","@kepler.gl/components": "^3.0.0-alpha.1","@kepler.gl/reducers": "^3.0.0-alpha.1",+ "express": "^4.17.1",+ "global": "^4.3.0","react": "^18.2.0","react-dom": "^18.2.0","react-palm": "^3.3.6",diff --git a/examples/open-modal/package.json b/examples/open-modal/package.jsonindex 0a895aa89..e276915d3 100644--- a/examples/open-modal/package.json+++ b/examples/open-modal/package.json@@ -4,10 +4,10 @@"start-local": "webpack-dev-server --env.es6 --progress --hot --open"},"dependencies": {- "global": "^4.3.0","@kepler.gl/actions": "^3.0.0-alpha.1","@kepler.gl/components": "^3.0.0-alpha.1","@kepler.gl/reducers": "^3.0.0-alpha.1",+ "global": "^4.3.0","react": "^18.2.0","react-dom": "^18.2.0","react-modal": "^3.1.10",diff --git a/examples/open-modal/webpack.config.js b/examples/open-modal/webpack.config.jsindex cac02c163..9478149e7 100644--- a/examples/open-modal/webpack.config.js+++ b/examples/open-modal/webpack.config.js@@ -29,6 +29,12 @@ const CONFIG = {loader: 'babel-loader',include: join(__dirname, 'src'),exclude: [/node_modules/]+ },+ // fix for arrow-related errors+ {+ test: /\.mjs$/,+ include: /node_modules/,+ type: 'javascript/auto'}]},diff --git a/examples/replace-component/package.json b/examples/replace-component/package.jsonindex 84ec97bbf..ab2b8321b 100644--- a/examples/replace-component/package.json+++ b/examples/replace-component/package.json@@ -4,12 +4,12 @@"start-local": "webpack-dev-server --env.es6 --progress --hot --open"},"dependencies": {- "global": "^4.3.0","@kepler.gl/actions": "^3.0.0-alpha.1","@kepler.gl/components": "^3.0.0-alpha.1","@kepler.gl/reducers": "^3.0.0-alpha.1","@kepler.gl/schemas": "^3.0.0-alpha.1","@kepler.gl/styles": "^3.0.0-alpha.1",+ "global": "^4.3.0","react": "^18.2.0","react-dom": "^18.2.0","react-palm": "^3.3.6",diff --git a/examples/replace-component/webpack.config.js b/examples/replace-component/webpack.config.jsindex cac02c163..9478149e7 100644--- a/examples/replace-component/webpack.config.js+++ b/examples/replace-component/webpack.config.js@@ -29,6 +29,12 @@ const CONFIG = {loader: 'babel-loader',include: join(__dirname, 'src'),exclude: [/node_modules/]+ },+ // fix for arrow-related errors+ {+ test: /\.mjs$/,+ include: /node_modules/,+ type: 'javascript/auto'}]},diff --git a/examples/umd-client/index.html b/examples/umd-client/index.htmlindex 7fd94b364..b94807721 100644--- a/examples/umd-client/index.html+++ b/examples/umd-client/index.html@@ -1,40 +1,53 @@<!DOCTYPE html><html><head>- <meta charset="UTF-8"/>+ <meta charset="UTF-8" /><title>Kepler.gl embedded map</title><!--Uber Font-->- <link rel="stylesheet" href="https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css">+ <link+ rel="stylesheet"+ href="https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css"+ /><!--MapBox css-->- <link href="https:https://unpkg.com/maplibre-gl@^3/dist/maplibre-gl.css" rel="stylesheet">+ <link href="https:https://unpkg.com/maplibre-gl@^3/dist/maplibre-gl.css" rel="stylesheet" /><!-- Load React/Redux -->- <script src="https://unpkg.com/[email protected]/umd/react.production.min.js" crossorigin></script>- <script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js" crossorigin></script>- <script src="https://unpkg.com/[email protected]/dist/redux.js" crossorigin></script>- <script src="https://unpkg.com/[email protected]/dist/react-redux.min.js" crossorigin></script>- <script src="https://unpkg.com/[email protected]/dist/styled-components.min.js" crossorigin></script>+ <script src="https://unpkg.com/[email protected]/umd/react.production.min.js" crossorigin></script>+ <script+ src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"+ crossorigin+ ></script>+ <script src="https://unpkg.com/[email protected]/dist/redux.js" crossorigin></script>+ <script src="https://unpkg.com/[email protected]/dist/react-redux.min.js" crossorigin></script>+ <script+ src="https://unpkg.com/[email protected]/dist/styled-components.min.js"+ crossorigin+ ></script><!-- Load Kepler.gl-->- <script src="https://unpkg.com/[email protected]/umd/keplergl.min.js"></script>+ <script src="https://unpkg.com/[email protected]/umd/keplergl.min.js"></script><!--If you want to load the build from filepath --><!--<script src="../../umd/keplergl.min.js"></script>--><style type="text/css">- body {margin: 0; padding: 0; overflow: hidden;}+ body {+ margin: 0;+ padding: 0;+ overflow: hidden;+ }</style><!--MapBox token--><script>/**- * Provide your MapBox Token+ * Provide your MapBox Token (Used in pre 3.x kepler.gl)**/const MAPBOX_TOKEN = 'PROVIDE_MAPBOX_TOKEN';- const WARNING_MESSAGE = 'Please Provide a Mapbox Token in order to use Kepler.gl. Edit this file and fill out MAPBOX_TOKEN with your access key';+ const WARNING_MESSAGE =+ 'Please Provide a Mapbox Token in order to use Kepler.gl. Edit this file and fill out MAPBOX_TOKEN with your access key';</script>-</head><body><!-- We will put our React component inside this div. -->@@ -55,64 +68,56 @@// mount keplerGl reducerkeplerGl: keplerGl.keplerGlReducer});- }(Redux, KeplerGl));+ })(Redux, KeplerGl);const middleWares = (function createMiddlewares(keplerGl) {return keplerGl.enhanceReduxMiddleware([// Add other middlewares here]);- }(KeplerGl));+ })(KeplerGl);const enhancers = (function craeteEnhancers(redux, middles) {return redux.applyMiddleware(...middles);- }(Redux, middleWares));+ })(Redux, middleWares);const store = (function createStore(redux, enhancers) {const initialState = {};- return redux.createStore(- reducers,- initialState,- redux.compose(enhancers)- );- }(Redux, enhancers));+ return redux.createStore(reducers, initialState, redux.compose(enhancers));+ })(Redux, enhancers);/** END STORE **//** COMPONENTS **/- const KeplerElement = (function (react, keplerGl, mapboxToken) {+ const KeplerElement = (function(react, keplerGl, mapboxToken) {return function(props) {return react.createElement('div',{style: {position: 'absolute', left: 0, width: '100vw', height: '100vh'}},- react.createElement(- keplerGl.KeplerGl,- {- mapboxApiAccessToken: mapboxToken,- id: 'map',- width: props.width || 1200,- height: props.height || 800- }- )- )- }- }(React, KeplerGl, MAPBOX_TOKEN));+ react.createElement(keplerGl.KeplerGl, {+ mapboxApiAccessToken: mapboxToken,+ id: 'map',+ width: props.width || 1200,+ height: props.height || 800+ })+ );+ };+ })(React, KeplerGl, MAPBOX_TOKEN);const app = (function createReactReduxProvider(react, reactRedux, KeplerElement) {return react.createElement(reactRedux.Provider,{store},react.createElement(KeplerElement, null)- )- }(React, ReactRedux, KeplerElement));+ );+ })(React, ReactRedux, KeplerElement);/** END COMPONENTS **//** Render **/(function render(react, reactDOM, app) {const container = document.getElementById('app');- const root = reactDOM.client.createRoot(container);+ const root = reactDOM.createRoot(container);root.render(app);- }(React, ReactDOM, app));-+ })(React, ReactDOM, app);</script><!-- The next script will show how to interact directly with Kepler map store -->@@ -123,7 +128,7 @@*/(function customize(keplerGl, store) {// store.dispatch(keplerGl.toggleSplitMap());- }(KeplerGl, store))+ })(KeplerGl, store);</script></body></html>diff --git a/src/components/src/map/effects/effect-control.tsx b/src/components/src/map/effects/effect-control.tsxindex 6f85c2428..fc490a117 100644--- a/src/components/src/map/effects/effect-control.tsx+++ b/src/components/src/map/effects/effect-control.tsx@@ -41,8 +41,7 @@ export default function EffectControlFactory([onToggleMapControl]);- // TODO uncomment once effect related issues are fixed- const showControl = false; // mapControls?.effect?.show;+ const showControl = mapControls?.effect?.show;if (!showControl) {return null;}