@redus/georedus-ui 0.11.0 → 0.12.0
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/CHANGELOG.md +6 -0
- package/dist/main.js +28 -11
- package/dist/viewSpecs/development/curvatura.d.ts +2 -1
- package/dist/viewSpecs/development/declividade.d.ts +2 -1
- package/dist/viewSpecs/development/hand.d.ts +21 -2
- package/dist/viewSpecs/development/temperatura_superficie.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -16,9 +16,9 @@ import { scaleQuantile } from 'd3-scale';
|
|
|
16
16
|
import { csvParse } from 'd3-dsv';
|
|
17
17
|
import { strAutoCast } from '@orioro/cast';
|
|
18
18
|
import { fmtLayerAbsoluteId, waves_1, svgImageGenerator, SVG_PATTERNS, makeSyncedMaps, LayeredMap, useMapRegistry, useTilesLoading, HoverTooltip, layeredMapOnClickHandler, DynamicImages, ControlContainer, InspectControl, MapWindow, TerrainControl, fitGeometry } from '@orioro/react-maplibre-util';
|
|
19
|
+
import React$1, { useState, useMemo, useCallback, useContext, createContext, useReducer, useEffect, useRef } from 'react';
|
|
19
20
|
import styled, { keyframes } from 'styled-components';
|
|
20
21
|
import { colord } from 'colord';
|
|
21
|
-
import React$1, { useState, useMemo, useCallback, useContext, createContext, useReducer, useEffect, useRef } from 'react';
|
|
22
22
|
import { Heading, Portal, Badge, Tabs, Tooltip, IconButton, Theme, Text, Popover, Dialog } from '@radix-ui/themes';
|
|
23
23
|
import { mdiSprout, mdiTree, mdiCurrencyUsd, mdiAccountMultipleOutline, mdiScaleBalance, mdiHelpCircleOutline, mdiDownload, mdiDotsVertical, mdiOpacity, mdiFilterVariant, mdiBookOpenVariant, mdiMap, mdiEarth, mdiHospitalBox, mdiHomeCity, mdiSchool, mdiAccountGroup, mdiContentCopy, mdiLinkVariant, mdiChevronLeft, mdiShareVariantOutline, mdiForumOutline, mdiDragVertical, mdiLayers, mdiClose, mdiHospital } from '@mdi/js';
|
|
24
24
|
import Icon$1, { Icon } from '@mdi/react';
|
|
@@ -6710,7 +6710,7 @@ function br_divisao_territorial_views(conf) {
|
|
|
6710
6710
|
id: 'ibge_malha_br_fcu_2022.geom',
|
|
6711
6711
|
line: {
|
|
6712
6712
|
paint: {
|
|
6713
|
-
'line-color': '
|
|
6713
|
+
'line-color': '#2A0001',
|
|
6714
6714
|
'line-width': 1,
|
|
6715
6715
|
'line-opacity': 1
|
|
6716
6716
|
}
|
|
@@ -6718,7 +6718,7 @@ function br_divisao_territorial_views(conf) {
|
|
|
6718
6718
|
fill: {
|
|
6719
6719
|
paint: {
|
|
6720
6720
|
'fill-opacity': ['case', ['boolean', ['feature-state', 'hover'], false], 1, 0.6],
|
|
6721
|
-
'fill-pattern': 'waves_1({ stroke: "
|
|
6721
|
+
'fill-pattern': 'waves_1({ stroke: "#2A0001", scale: 0.25 })'
|
|
6722
6722
|
},
|
|
6723
6723
|
interactive: true,
|
|
6724
6724
|
tooltip: {
|
|
@@ -6731,11 +6731,11 @@ function br_divisao_territorial_views(conf) {
|
|
|
6731
6731
|
label: 'Favelas e Comunidades Urbanas',
|
|
6732
6732
|
box: {
|
|
6733
6733
|
style: {
|
|
6734
|
-
borderColor: '
|
|
6734
|
+
borderColor: '#2A0001',
|
|
6735
6735
|
borderStyle: 'solid',
|
|
6736
6736
|
borderWidth: '1px',
|
|
6737
6737
|
backgroundImage: svgBgImage(waves_1({
|
|
6738
|
-
stroke: '
|
|
6738
|
+
stroke: '#2A0001',
|
|
6739
6739
|
scale: '0.25'
|
|
6740
6740
|
}))
|
|
6741
6741
|
}
|
|
@@ -6911,7 +6911,7 @@ function curvatura(_ref) {
|
|
|
6911
6911
|
label: 'Forma da encosta - Em perfil',
|
|
6912
6912
|
shortDescription: 'Refere-se às formas côncava, convexa e retilínea do terreno, analisada em perfil',
|
|
6913
6913
|
path: "Emerg\xEAncias clim\xE1ticas / / Suscetibilidade a deslizamentos",
|
|
6914
|
-
metodology: /*#__PURE__*/React.createElement(DocumentIframe, {
|
|
6914
|
+
metodology: /*#__PURE__*/React$1.createElement(DocumentIframe, {
|
|
6915
6915
|
src: "/georedus/metodologia/perfil-de-curvatura.pdf"
|
|
6916
6916
|
}),
|
|
6917
6917
|
confSchema: {
|
|
@@ -7040,7 +7040,7 @@ function declividade(_ref) {
|
|
|
7040
7040
|
label: 'Declividade',
|
|
7041
7041
|
shortDescription: 'Ângulo de inclinação da superfície do terreno com relação à horizontal',
|
|
7042
7042
|
path: "Emerg\xEAncias clim\xE1ticas / / Suscetibilidade a deslizamentos",
|
|
7043
|
-
metodology: /*#__PURE__*/React.createElement(DocumentIframe, {
|
|
7043
|
+
metodology: /*#__PURE__*/React$1.createElement(DocumentIframe, {
|
|
7044
7044
|
src: "/georedus/metodologia/declividade.pdf"
|
|
7045
7045
|
}),
|
|
7046
7046
|
confSchema: {
|
|
@@ -7105,6 +7105,7 @@ function declividade(_ref) {
|
|
|
7105
7105
|
var HAND_ID = 'hand';
|
|
7106
7106
|
var DEFAULT_HAND_VALUE = 2;
|
|
7107
7107
|
var MAX_HAND_VALUE = 6;
|
|
7108
|
+
var OTTO_3 = 'ana_malha_br_bacias_hidrograficas_2017_otto_3.geom';
|
|
7108
7109
|
function _handValue(conf) {
|
|
7109
7110
|
var _conf$data;
|
|
7110
7111
|
return typeof (conf === null || conf === void 0 || (_conf$data = conf.data) === null || _conf$data === void 0 ? void 0 : _conf$data.handValue) === 'number' ? conf.data.handValue : DEFAULT_HAND_VALUE;
|
|
@@ -7146,6 +7147,7 @@ function hand_legends() {
|
|
|
7146
7147
|
}
|
|
7147
7148
|
function hand(_ref7) {
|
|
7148
7149
|
var RASTER_TILE_SERVER_ENDPOINT = _ref7.RASTER_TILE_SERVER_ENDPOINT,
|
|
7150
|
+
VECTOR_TILE_SERVER_ENDPOINT = _ref7.VECTOR_TILE_SERVER_ENDPOINT,
|
|
7149
7151
|
mosaicJsonUrl = _ref7.mosaicJsonUrl;
|
|
7150
7152
|
var DEVICE_PIXEL_RATIO_SUFFIX = typeof window !== 'undefined' && window.devicePixelRatio > 1 ? '@2x' : '';
|
|
7151
7153
|
return {
|
|
@@ -7157,7 +7159,7 @@ function hand(_ref7) {
|
|
|
7157
7159
|
label: 'Altura acima da drenagem mais próxima',
|
|
7158
7160
|
shortDescription: 'Áreas suscetíveis à inundação calculadas por meio da distância vertical em relação ao canal de drenagem mais próximo',
|
|
7159
7161
|
path: "Emerg\xEAncias clim\xE1ticas / / Suscetibilidade \xE0 inunda\xE7\xE3o",
|
|
7160
|
-
metodology: /*#__PURE__*/React.createElement(DocumentIframe, {
|
|
7162
|
+
metodology: /*#__PURE__*/React$1.createElement(DocumentIframe, {
|
|
7161
7163
|
src: "/georedus/metodologia/inundacao-hand.pdf"
|
|
7162
7164
|
}),
|
|
7163
7165
|
confSchema: {
|
|
@@ -7177,7 +7179,7 @@ function hand(_ref7) {
|
|
|
7177
7179
|
}
|
|
7178
7180
|
},
|
|
7179
7181
|
metadata: {},
|
|
7180
|
-
sources: _defineProperty({}, HAND_ID, {
|
|
7182
|
+
sources: _defineProperty(_defineProperty({}, HAND_ID, {
|
|
7181
7183
|
type: 'raster',
|
|
7182
7184
|
minzoom: 9,
|
|
7183
7185
|
maxzoom: 14,
|
|
@@ -7196,8 +7198,12 @@ function hand(_ref7) {
|
|
|
7196
7198
|
})
|
|
7197
7199
|
}]));
|
|
7198
7200
|
})]
|
|
7201
|
+
}), OTTO_3, {
|
|
7202
|
+
type: 'vector',
|
|
7203
|
+
minzoom: 7,
|
|
7204
|
+
tiles: ["".concat(VECTOR_TILE_SERVER_ENDPOINT, "/").concat(OTTO_3, "/{z}/{x}/{y}")]
|
|
7199
7205
|
}),
|
|
7200
|
-
layers: _defineProperty({}, "".concat(HAND_ID), {
|
|
7206
|
+
layers: _defineProperty(_defineProperty({}, "".concat(HAND_ID), {
|
|
7201
7207
|
minzoom: 9,
|
|
7202
7208
|
// zIndex: 10,
|
|
7203
7209
|
type: 'raster',
|
|
@@ -7206,6 +7212,17 @@ function hand(_ref7) {
|
|
|
7206
7212
|
'raster-opacity': 0.85
|
|
7207
7213
|
},
|
|
7208
7214
|
legends: hand_legends()
|
|
7215
|
+
}), "".concat(OTTO_3, "_bounds"), {
|
|
7216
|
+
source: OTTO_3,
|
|
7217
|
+
'source-layer': OTTO_3,
|
|
7218
|
+
minzoom: 7,
|
|
7219
|
+
type: 'line',
|
|
7220
|
+
paint: {
|
|
7221
|
+
'line-color': schemeCategory10[2],
|
|
7222
|
+
'line-width': 6,
|
|
7223
|
+
'line-dasharray': [4, 4],
|
|
7224
|
+
'line-opacity': 0.5
|
|
7225
|
+
}
|
|
7209
7226
|
})
|
|
7210
7227
|
};
|
|
7211
7228
|
}
|
|
@@ -7696,7 +7713,7 @@ function temperatura_superficie(_ref7) {
|
|
|
7696
7713
|
id: TEMPERATURA_SUPERFICIE_ID,
|
|
7697
7714
|
sourceLabel: 'Landsat-8 e Landsat-9',
|
|
7698
7715
|
shortDescription: 'Refere-se à',
|
|
7699
|
-
metodology: /*#__PURE__*/React.createElement(DocumentIframe, {
|
|
7716
|
+
metodology: /*#__PURE__*/React$1.createElement(DocumentIframe, {
|
|
7700
7717
|
src: "/georedus/metodologia/maximas-de-temperatura.pdf"
|
|
7701
7718
|
}),
|
|
7702
7719
|
label: 'Temperatura máxima de superfície (ºC)'
|
|
@@ -10,7 +10,7 @@ export function curvatura({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
|
10
10
|
label: string;
|
|
11
11
|
shortDescription: string;
|
|
12
12
|
path: string;
|
|
13
|
-
metodology:
|
|
13
|
+
metodology: React.JSX.Element;
|
|
14
14
|
confSchema: {
|
|
15
15
|
data: {
|
|
16
16
|
curvaturaActiveClasses: {
|
|
@@ -64,3 +64,4 @@ export function curvatura({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
import React from 'react';
|
|
@@ -10,7 +10,7 @@ export function declividade({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
|
10
10
|
label: string;
|
|
11
11
|
shortDescription: string;
|
|
12
12
|
path: string;
|
|
13
|
-
metodology:
|
|
13
|
+
metodology: React.JSX.Element;
|
|
14
14
|
confSchema: {
|
|
15
15
|
data: {
|
|
16
16
|
declividadeActiveClasses: {
|
|
@@ -64,3 +64,4 @@ export function declividade({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
import React from 'react';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export function hand({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
1
|
+
export function hand({ RASTER_TILE_SERVER_ENDPOINT, VECTOR_TILE_SERVER_ENDPOINT, mosaicJsonUrl, }: {
|
|
2
2
|
RASTER_TILE_SERVER_ENDPOINT: any;
|
|
3
|
+
VECTOR_TILE_SERVER_ENDPOINT: any;
|
|
3
4
|
mosaicJsonUrl: any;
|
|
4
5
|
}): {
|
|
5
6
|
viewType: string;
|
|
@@ -10,7 +11,7 @@ export function hand({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
|
10
11
|
label: string;
|
|
11
12
|
shortDescription: string;
|
|
12
13
|
path: string;
|
|
13
|
-
metodology:
|
|
14
|
+
metodology: React.JSX.Element;
|
|
14
15
|
confSchema: {
|
|
15
16
|
data: {
|
|
16
17
|
handValue: {
|
|
@@ -47,6 +48,11 @@ export function hand({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
|
47
48
|
context?: any;
|
|
48
49
|
}[];
|
|
49
50
|
};
|
|
51
|
+
"ana_malha_br_bacias_hidrograficas_2017_otto_3.geom": {
|
|
52
|
+
type: string;
|
|
53
|
+
minzoom: number;
|
|
54
|
+
tiles: string[];
|
|
55
|
+
};
|
|
50
56
|
};
|
|
51
57
|
layers: {
|
|
52
58
|
hand: {
|
|
@@ -82,5 +88,18 @@ export function hand({ RASTER_TILE_SERVER_ENDPOINT, mosaicJsonUrl }: {
|
|
|
82
88
|
barHeight: number;
|
|
83
89
|
}[];
|
|
84
90
|
};
|
|
91
|
+
"ana_malha_br_bacias_hidrograficas_2017_otto_3.geom_bounds": {
|
|
92
|
+
source: string;
|
|
93
|
+
'source-layer': string;
|
|
94
|
+
minzoom: number;
|
|
95
|
+
type: string;
|
|
96
|
+
paint: {
|
|
97
|
+
'line-color': any;
|
|
98
|
+
'line-width': number;
|
|
99
|
+
'line-dasharray': number[];
|
|
100
|
+
'line-opacity': number;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
85
103
|
};
|
|
86
104
|
};
|
|
105
|
+
import React from 'react';
|
|
@@ -8,7 +8,7 @@ export function temperatura_superficie({ RASTER_TILE_SERVER_ENDPOINT, mosaicJson
|
|
|
8
8
|
id: string;
|
|
9
9
|
sourceLabel: string;
|
|
10
10
|
shortDescription: string;
|
|
11
|
-
metodology:
|
|
11
|
+
metodology: React.JSX.Element;
|
|
12
12
|
label: string;
|
|
13
13
|
year: string;
|
|
14
14
|
path: string;
|
|
@@ -87,3 +87,4 @@ export function temperatura_superficie({ RASTER_TILE_SERVER_ENDPOINT, mosaicJson
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
+
import React from 'react';
|