@carto/kepler.gl 0.0.76 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/kepler-gl.js +2 -11
- package/dist/components/map-container.js +1 -4
- package/dist/components/modal-container.js +1 -3
- package/dist/components/modals/add-map-style-modal.js +1 -4
- package/dist/constants/default-settings.js +1 -1
- package/dist/utils/gl-utils.js +4 -5
- package/package.json +12 -11
- package/src/components/kepler-gl.d.ts +0 -1
- package/src/components/kepler-gl.js +0 -7
- package/src/components/map-container.js +0 -3
- package/src/components/modal-container.d.ts +0 -1
- package/src/components/modal-container.js +0 -2
- package/src/components/modals/add-map-style-modal.js +0 -3
- package/src/utils/gl-utils.js +2 -4
|
@@ -124,7 +124,6 @@ export default function ModalContainerFactory(
|
|
|
124
124
|
rootNode: PropTypes.object,
|
|
125
125
|
containerW: PropTypes.number,
|
|
126
126
|
containerH: PropTypes.number,
|
|
127
|
-
mapboxApiAccessToken: PropTypes.string.isRequired,
|
|
128
127
|
mapboxApiUrl: PropTypes.string,
|
|
129
128
|
mapState: PropTypes.object.isRequired,
|
|
130
129
|
mapStyle: PropTypes.object.isRequired,
|
|
@@ -426,7 +425,6 @@ export default function ModalContainerFactory(
|
|
|
426
425
|
case ADD_MAP_STYLE_ID:
|
|
427
426
|
template = (
|
|
428
427
|
<AddMapStyleModal
|
|
429
|
-
mapboxApiAccessToken={this.props.mapboxApiAccessToken}
|
|
430
428
|
mapboxApiUrl={this.props.mapboxApiUrl}
|
|
431
429
|
mapState={this.props.mapState}
|
|
432
430
|
inputStyle={mapStyle.inputStyle}
|
|
@@ -110,7 +110,6 @@ function AddMapStyleModalFactory() {
|
|
|
110
110
|
inputMapStyle: PropTypes.func.isRequired,
|
|
111
111
|
inputStyle: PropTypes.object.isRequired,
|
|
112
112
|
loadCustomMapStyle: PropTypes.func.isRequired,
|
|
113
|
-
mapboxApiAccessToken: PropTypes.string.isRequired,
|
|
114
113
|
mapboxApiUrl: PropTypes.string.isRequired,
|
|
115
114
|
mapState: PropTypes.object.isRequired
|
|
116
115
|
};
|
|
@@ -166,11 +165,9 @@ function AddMapStyleModalFactory() {
|
|
|
166
165
|
render() {
|
|
167
166
|
const {inputStyle, mapState, mapboxApiUrl, intl} = this.props;
|
|
168
167
|
|
|
169
|
-
const mapboxApiAccessToken = inputStyle.accessToken || this.props.mapboxApiAccessToken;
|
|
170
168
|
const mapProps = {
|
|
171
169
|
...mapState,
|
|
172
170
|
mapboxApiUrl,
|
|
173
|
-
mapboxApiAccessToken,
|
|
174
171
|
preserveDrawingBuffer: true,
|
|
175
172
|
transformRequest
|
|
176
173
|
};
|
package/src/utils/gl-utils.js
CHANGED
|
@@ -18,17 +18,15 @@
|
|
|
18
18
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
// THE SOFTWARE.
|
|
20
20
|
|
|
21
|
-
import {setParameters} from '@luma.gl/core';
|
|
22
21
|
import {LAYER_BLENDINGS} from 'constants/default-settings';
|
|
23
|
-
import GL from '@luma.gl/constants';
|
|
22
|
+
import {GL} from '@luma.gl/constants';
|
|
24
23
|
|
|
25
24
|
const getGlConst = d => GL[d];
|
|
26
25
|
|
|
27
26
|
export function setLayerBlending(gl, layerBlending) {
|
|
28
27
|
const blending = LAYER_BLENDINGS[layerBlending];
|
|
29
28
|
const {blendFunc, blendEquation} = blending;
|
|
30
|
-
|
|
31
|
-
setParameters(gl, {
|
|
29
|
+
gl.device.setParametersWebGL({
|
|
32
30
|
[GL.BLEND]: true,
|
|
33
31
|
...(blendFunc
|
|
34
32
|
? {
|