@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.
@@ -206,6 +206,9 @@ export interface ConfigLayer {
206
206
  isVisible?: boolean;
207
207
  selectable?: boolean;
208
208
  filterZoomTo?: boolean;
209
+ searchFields?: string[];
210
+ minScale?: number;
211
+ maxScale?: number;
209
212
  }
210
213
  export interface ConfigTask {
211
214
  name: string;
@@ -2,6 +2,7 @@ import { default as MapboxDraw, DrawCustomMode } from '@mapbox/mapbox-gl-draw';
2
2
  interface ExtendedMapboxDrawModes extends MapboxDraw.Modes {
3
3
  [key: string]: DrawCustomMode;
4
4
  static: DrawCustomMode;
5
+ invisible: DrawCustomMode;
5
6
  }
6
7
  export declare const customModes: ExtendedMapboxDrawModes;
7
8
  export {};
package/dist/index.js CHANGED
@@ -4651,6 +4651,7 @@ const LayerGroupMain = styled(uilibGl.Flex) `
4651
4651
 
4652
4652
  const customModes = MapboxDraw.modes;
4653
4653
  const StaticMode = {};
4654
+ const InvisibleMode = {};
4654
4655
  StaticMode.onSetup = function () {
4655
4656
  this.setActionableState(undefined);
4656
4657
  return {};
@@ -4658,7 +4659,13 @@ StaticMode.onSetup = function () {
4658
4659
  StaticMode.toDisplayFeatures = function (state, geojson, display) {
4659
4660
  display(geojson);
4660
4661
  };
4662
+ InvisibleMode.onSetup = function () {
4663
+ this.setActionableState(undefined);
4664
+ return {};
4665
+ };
4666
+ InvisibleMode.toDisplayFeatures = function () { };
4661
4667
  customModes.static = StaticMode;
4668
+ customModes.invisible = InvisibleMode;
4662
4669
 
4663
4670
  const customStyles = [
4664
4671
  {
@@ -4779,7 +4786,7 @@ const draw = new MapboxDraw({
4779
4786
  displayControlsDefault: false,
4780
4787
  styles: customStyles,
4781
4788
  modes: customModes,
4782
- defaultMode: "draw_point",
4789
+ defaultMode: "static",
4783
4790
  controls: {
4784
4791
  trash: true,
4785
4792
  },
@@ -9876,8 +9883,6 @@ const useDashboardHeader = () => {
9876
9883
  };
9877
9884
 
9878
9885
  const useDataSources = ({ type: widgetType, config, attributes, filters, layerParams, eqlParameters, }) => {
9879
- // const { map } = useMapContext();
9880
- // const sr = useProjectSrid();
9881
9886
  const { ewktGeometry, api } = useGlobalContext();
9882
9887
  const { dataSources } = useWidgetContext(widgetType);
9883
9888
  const { filters: configFilters, dataSources: configDataSources } = config || {};