@evergis/react 3.1.94 → 3.1.96
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/react.esm.js
CHANGED
|
@@ -4649,6 +4649,7 @@ const LayerGroupMain = styled(Flex) `
|
|
|
4649
4649
|
|
|
4650
4650
|
const customModes = MapboxDraw.modes;
|
|
4651
4651
|
const StaticMode = {};
|
|
4652
|
+
const InvisibleMode = {};
|
|
4652
4653
|
StaticMode.onSetup = function () {
|
|
4653
4654
|
this.setActionableState(undefined);
|
|
4654
4655
|
return {};
|
|
@@ -4656,7 +4657,13 @@ StaticMode.onSetup = function () {
|
|
|
4656
4657
|
StaticMode.toDisplayFeatures = function (state, geojson, display) {
|
|
4657
4658
|
display(geojson);
|
|
4658
4659
|
};
|
|
4660
|
+
InvisibleMode.onSetup = function () {
|
|
4661
|
+
this.setActionableState(undefined);
|
|
4662
|
+
return {};
|
|
4663
|
+
};
|
|
4664
|
+
InvisibleMode.toDisplayFeatures = function () { };
|
|
4659
4665
|
customModes.static = StaticMode;
|
|
4666
|
+
customModes.invisible = InvisibleMode;
|
|
4660
4667
|
|
|
4661
4668
|
const customStyles = [
|
|
4662
4669
|
{
|
|
@@ -4777,7 +4784,7 @@ const draw = new MapboxDraw({
|
|
|
4777
4784
|
displayControlsDefault: false,
|
|
4778
4785
|
styles: customStyles,
|
|
4779
4786
|
modes: customModes,
|
|
4780
|
-
defaultMode: "
|
|
4787
|
+
defaultMode: "static",
|
|
4781
4788
|
controls: {
|
|
4782
4789
|
trash: true,
|
|
4783
4790
|
},
|
|
@@ -9874,8 +9881,6 @@ const useDashboardHeader = () => {
|
|
|
9874
9881
|
};
|
|
9875
9882
|
|
|
9876
9883
|
const useDataSources = ({ type: widgetType, config, attributes, filters, layerParams, eqlParameters, }) => {
|
|
9877
|
-
// const { map } = useMapContext();
|
|
9878
|
-
// const sr = useProjectSrid();
|
|
9879
9884
|
const { ewktGeometry, api } = useGlobalContext();
|
|
9880
9885
|
const { dataSources } = useWidgetContext(widgetType);
|
|
9881
9886
|
const { filters: configFilters, dataSources: configDataSources } = config || {};
|