@redus/georedus-ui 0.9.0 → 0.10.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 +1355 -287
- package/dist/viewSpecs/development/ana_br_bacias_hidrograficas.d.ts +24 -0
- package/dist/viewSpecs/development/br_divisao_territorial.d.ts +65 -0
- package/dist/viewSpecs/development/curvatura.d.ts +41 -0
- package/dist/viewSpecs/development/declividade.d.ts +67 -0
- package/dist/viewSpecs/development/hand.d.ts +83 -0
- package/dist/viewSpecs/development/index.d.ts +8 -0
- package/dist/viewSpecs/development/redus_mutirao_cop_2025.d.ts +94 -0
- package/dist/viewSpecs/development/temperatura_superficie.d.ts +86 -0
- package/dist/viewSpecs/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2,9 +2,9 @@ import { get, isPlainObject, pick, omit, set, uniqBy, groupBy, uniq } from 'loda
|
|
|
2
2
|
import { slugify, dataJoin } from '@orioro/util';
|
|
3
3
|
import { makeResolve, $$literal, withExpressionResolvers, expressions, ALL_EXPR, fetchExpr, resolve, resolveAsync } from '@orioro/resolve';
|
|
4
4
|
import { __assign, __spreadArray, __awaiter, __generator, __makeTemplateObject } from 'tslib';
|
|
5
|
-
import { schemeTableau10, schemeSet3, schemeSet2, schemeSet1, schemePastel2, schemePastel1, schemePaired, schemeObservable10, schemeDark2, schemeAccent, schemeCategory10, schemeSpectral, schemeRdYlGn, schemeRdYlBu, schemeRdGy, schemeRdBu, schemePuOr, schemePiYG, schemePRGn, schemeBrBG, schemeYlOrRd, schemeYlOrBr, schemeYlGn, schemeYlGnBu, schemeRdPu, schemePuRd, schemePuBu, schemePuBuGn, schemeOrRd, schemeGnBu, schemeBuPu, schemeBuGn, schemeReds, schemePurples, schemeOranges, schemeGreys, schemeGreens, schemeBlues } from 'd3-scale-chromatic';
|
|
5
|
+
import { schemeTableau10, schemeSet3, schemeSet2, schemeSet1, schemePastel2, schemePastel1, schemePaired, schemeObservable10, schemeDark2, schemeAccent, schemeCategory10, schemeSpectral, schemeRdYlGn, schemeRdYlBu, schemeRdGy, schemeRdBu, schemePuOr, schemePiYG, schemePRGn, schemeBrBG, schemeYlOrRd, schemeYlOrBr, schemeYlGn, schemeYlGnBu, schemeRdPu, schemePuRd, schemePuBu, schemePuBuGn, schemeOrRd, schemeGnBu, schemeBuPu, schemeBuGn, schemeReds, schemePurples, schemeOranges, schemeGreys, schemeGreens, schemeBlues, interpolateSpectral } from 'd3-scale-chromatic';
|
|
6
6
|
import { saveAs } from 'file-saver';
|
|
7
|
-
import { CANCELLED, fileReadAs, MARKDOWN_DEFAULT_REMARK_PLUGINS, MARKDOWN_DEFAULT_REHYPE_PLUGINS, Markdown as Markdown$1,
|
|
7
|
+
import { CANCELLED, fileReadAs, AspectRatio, LoadingIndicator, Flex, Box, RichTextOutput, EvenSpacedList, FileOutput, MARKDOWN_DEFAULT_REMARK_PLUGINS, MARKDOWN_DEFAULT_REHYPE_PLUGINS, Markdown as Markdown$1, DropdownMenu, Input, SwitchInput, TextEllipsis, withDefaults, LoadingOverlay, Button, SingleFileInput, InputProvider as InputProvider$1, rendererSpecList, TextInput, withLabeledLayout, INPUTS, useLocalState } from '@orioro/react-ui-core';
|
|
8
8
|
import initGdalJs from 'gdal3.js';
|
|
9
9
|
import queryString from 'query-string';
|
|
10
10
|
import { wrap } from 'comlink';
|
|
@@ -14,14 +14,16 @@ import { get as get$1 } from '@orioro/get';
|
|
|
14
14
|
import { buffer } from '@turf/turf';
|
|
15
15
|
import { csvParse } from 'd3-dsv';
|
|
16
16
|
import { strAutoCast } from '@orioro/cast';
|
|
17
|
-
import { fmtLayerAbsoluteId, svgImageGenerator, SVG_PATTERNS, makeSyncedMaps, LayeredMap, useMapRegistry, useTilesLoading, HoverTooltip, layeredMapOnClickHandler, DynamicImages, ControlContainer, InspectControl, MapWindow, TerrainControl, fitGeometry } from '@orioro/react-maplibre-util';
|
|
18
|
-
import
|
|
17
|
+
import { fmtLayerAbsoluteId, waves_1, svgImageGenerator, SVG_PATTERNS, makeSyncedMaps, LayeredMap, useMapRegistry, useTilesLoading, HoverTooltip, layeredMapOnClickHandler, DynamicImages, ControlContainer, InspectControl, MapWindow, TerrainControl, fitGeometry } from '@orioro/react-maplibre-util';
|
|
18
|
+
import { colord } from 'colord';
|
|
19
|
+
import { Heading, Portal, Badge, Tabs, Tooltip, IconButton, Theme, Text, Popover, Dialog } from '@radix-ui/themes';
|
|
20
|
+
import styled, { keyframes } from 'styled-components';
|
|
21
|
+
import { mdiSprout, mdiTree, mdiCurrencyUsd, mdiAccountMultipleOutline, mdiScaleBalance, mdiHelpCircleOutline, mdiDownload, mdiDotsVertical, mdiOpacity, mdiFilterVariant, mdiMap, mdiEarth, mdiHospitalBox, mdiHomeCity, mdiSchool, mdiAccountGroup, mdiContentCopy, mdiLinkVariant, mdiChevronLeft, mdiShareVariantOutline, mdiForumOutline, mdiDragVertical, mdiLayers, mdiClose, mdiHospital } from '@mdi/js';
|
|
22
|
+
import { Icon } from '@mdi/react';
|
|
23
|
+
import React$1, { useState, useMemo, useCallback, useContext, createContext, useReducer, useEffect, useRef } from 'react';
|
|
24
|
+
import Confetti from 'react-confetti';
|
|
19
25
|
import { nodeIdFromPath } from '@orioro/tree-model';
|
|
20
26
|
import { makeDirNav } from '@orioro/react-dir-nav';
|
|
21
|
-
import { Icon } from '@mdi/react';
|
|
22
|
-
import { mdiHelpCircleOutline, mdiDownload, mdiDotsVertical, mdiOpacity, mdiFilterVariant, mdiMap, mdiEarth, mdiHospitalBox, mdiHomeCity, mdiSchool, mdiAccountGroup, mdiContentCopy, mdiLinkVariant, mdiChevronLeft, mdiShareVariantOutline, mdiForumOutline, mdiDragVertical, mdiLayers, mdiClose, mdiHospital, mdiAccountMultipleOutline, mdiScaleBalance, mdiCurrencyUsd, mdiSprout, mdiTree } from '@mdi/js';
|
|
23
|
-
import { Tabs, Tooltip, IconButton, Theme, Heading, Text, Popover, Dialog, Portal } from '@radix-ui/themes';
|
|
24
|
-
import styled, { keyframes } from 'styled-components';
|
|
25
27
|
import * as Collapsible from '@radix-ui/react-collapsible';
|
|
26
28
|
import remarkMath from 'remark-math';
|
|
27
29
|
import rehypeKatex from 'rehype-katex';
|
|
@@ -6449,15 +6451,1173 @@ function resolveView(viewSpec, viewConf, viewResolutionContextBase) {
|
|
|
6449
6451
|
});
|
|
6450
6452
|
}
|
|
6451
6453
|
|
|
6454
|
+
function _util_bacia(_ref) {
|
|
6455
|
+
var VECTOR_TILE_SERVER_ENDPOINT = _ref.VECTOR_TILE_SERVER_ENDPOINT,
|
|
6456
|
+
id = _ref.id,
|
|
6457
|
+
_ref$label = _ref.label,
|
|
6458
|
+
label = _ref$label === void 0 ? id : _ref$label;
|
|
6459
|
+
_ref.year;
|
|
6460
|
+
var paint = _ref.paint;
|
|
6461
|
+
return {
|
|
6462
|
+
collection_id: 'ana_br_bacias_hidrograficas',
|
|
6463
|
+
indicator_id: id,
|
|
6464
|
+
id: id,
|
|
6465
|
+
label: label,
|
|
6466
|
+
path: "Divis\xF5es territoriais / _ / Bacias Hidrogr\xE1ficas",
|
|
6467
|
+
metadata: {},
|
|
6468
|
+
sources: _defineProperty({}, id, {
|
|
6469
|
+
type: 'vector',
|
|
6470
|
+
minzoom: 3,
|
|
6471
|
+
tiles: ["".concat(VECTOR_TILE_SERVER_ENDPOINT, "/").concat(id, "/{z}/{x}/{y}")]
|
|
6472
|
+
}),
|
|
6473
|
+
layers: _defineProperty({}, "".concat(id, "_bounds"), {
|
|
6474
|
+
source: id,
|
|
6475
|
+
minzoom: 3,
|
|
6476
|
+
'source-layer': id,
|
|
6477
|
+
type: 'line',
|
|
6478
|
+
paint: paint
|
|
6479
|
+
})
|
|
6480
|
+
};
|
|
6481
|
+
}
|
|
6482
|
+
function ana_br_bacias_hidrograficas(conf) {
|
|
6483
|
+
return [_util_bacia(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6484
|
+
year: '2017',
|
|
6485
|
+
label: 'Bacias Hidrográficas - Otto 1',
|
|
6486
|
+
id: 'ana_malha_br_bacias_hidrograficas_2017_otto_1.geom',
|
|
6487
|
+
paint: {
|
|
6488
|
+
'line-color': 'blue',
|
|
6489
|
+
'line-width': 10,
|
|
6490
|
+
'line-opacity': 0.5
|
|
6491
|
+
}
|
|
6492
|
+
})), _util_bacia(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6493
|
+
year: '2017',
|
|
6494
|
+
label: 'Bacias Hidrográficas - Otto 2',
|
|
6495
|
+
id: 'ana_malha_br_bacias_hidrograficas_2017_otto_2.geom',
|
|
6496
|
+
paint: {
|
|
6497
|
+
'line-color': 'blue',
|
|
6498
|
+
'line-width': 10,
|
|
6499
|
+
'line-opacity': 0.5
|
|
6500
|
+
}
|
|
6501
|
+
})), _util_bacia(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6502
|
+
year: '2017',
|
|
6503
|
+
label: 'Bacias Hidrográficas - Otto 3',
|
|
6504
|
+
id: 'ana_malha_br_bacias_hidrograficas_2017_otto_3.geom',
|
|
6505
|
+
paint: {
|
|
6506
|
+
'line-color': 'blue',
|
|
6507
|
+
'line-width': 10,
|
|
6508
|
+
'line-opacity': 0.5
|
|
6509
|
+
}
|
|
6510
|
+
})), _util_bacia(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6511
|
+
year: '2017',
|
|
6512
|
+
label: 'Bacias Hidrográficas - Otto 4',
|
|
6513
|
+
id: 'ana_malha_br_bacias_hidrograficas_2017_otto_4.geom',
|
|
6514
|
+
paint: {
|
|
6515
|
+
'line-color': 'blue',
|
|
6516
|
+
'line-width': 10,
|
|
6517
|
+
'line-opacity': 0.5
|
|
6518
|
+
}
|
|
6519
|
+
})), _util_bacia(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6520
|
+
year: '2017',
|
|
6521
|
+
label: 'Bacias Hidrográficas - Otto 5',
|
|
6522
|
+
id: 'ana_malha_br_bacias_hidrograficas_2017_otto_5.geom',
|
|
6523
|
+
paint: {
|
|
6524
|
+
'line-color': 'blue',
|
|
6525
|
+
'line-width': 10,
|
|
6526
|
+
'line-opacity': 0.5
|
|
6527
|
+
}
|
|
6528
|
+
})), _util_bacia(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6529
|
+
year: '2017',
|
|
6530
|
+
label: 'Bacias Hidrográficas - Otto 6',
|
|
6531
|
+
id: 'ana_malha_br_bacias_hidrograficas_2017_otto_6.geom',
|
|
6532
|
+
paint: {
|
|
6533
|
+
'line-color': 'blue',
|
|
6534
|
+
'line-width': 10,
|
|
6535
|
+
'line-opacity': 0.5
|
|
6536
|
+
}
|
|
6537
|
+
})), _util_bacia(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6538
|
+
year: '2017',
|
|
6539
|
+
label: 'Bacias Hidrográficas - Otto 7',
|
|
6540
|
+
id: 'ana_malha_br_bacias_hidrograficas_2017_otto_7.geom',
|
|
6541
|
+
paint: {
|
|
6542
|
+
'line-color': 'blue',
|
|
6543
|
+
'line-width': 10,
|
|
6544
|
+
'line-opacity': 0.5
|
|
6545
|
+
}
|
|
6546
|
+
}))];
|
|
6547
|
+
}
|
|
6548
|
+
|
|
6549
|
+
function svgBgImage(svg) {
|
|
6550
|
+
return "url(\"data:image/svg+xml,".concat(encodeURIComponent(svg), "\")");
|
|
6551
|
+
}
|
|
6552
|
+
function br_divisao_territorial(_ref) {
|
|
6553
|
+
var VECTOR_TILE_SERVER_ENDPOINT = _ref.VECTOR_TILE_SERVER_ENDPOINT,
|
|
6554
|
+
id = _ref.id,
|
|
6555
|
+
path = _ref.path,
|
|
6556
|
+
_ref$label = _ref.label,
|
|
6557
|
+
label = _ref$label === void 0 ? id : _ref$label,
|
|
6558
|
+
_ref$line = _ref.line,
|
|
6559
|
+
line = _ref$line === void 0 ? {} : _ref$line,
|
|
6560
|
+
_ref$fill = _ref.fill,
|
|
6561
|
+
fill = _ref$fill === void 0 ? {} : _ref$fill;
|
|
6562
|
+
return {
|
|
6563
|
+
collection_id: id,
|
|
6564
|
+
indicator_id: id,
|
|
6565
|
+
id: id,
|
|
6566
|
+
label: label,
|
|
6567
|
+
path: "Divis\xF5es territoriais / _ / ".concat(path),
|
|
6568
|
+
metadata: {},
|
|
6569
|
+
sources: _defineProperty({}, id, {
|
|
6570
|
+
promoteId: 'id',
|
|
6571
|
+
type: 'vector',
|
|
6572
|
+
tiles: ["".concat(VECTOR_TILE_SERVER_ENDPOINT, "/").concat(id, "/{z}/{x}/{y}")]
|
|
6573
|
+
}),
|
|
6574
|
+
layers: _defineProperty(_defineProperty({}, "".concat(id, "_bounds"), _objectSpread2({
|
|
6575
|
+
zIndex: Z_OVERLAY_BASE_1000,
|
|
6576
|
+
source: id,
|
|
6577
|
+
'source-layer': id,
|
|
6578
|
+
type: 'line'
|
|
6579
|
+
}, line)), "".concat(id, "_fill"), _objectSpread2(_objectSpread2({
|
|
6580
|
+
zIndex: Z_OVERLAY_BASE_1000,
|
|
6581
|
+
source: id,
|
|
6582
|
+
'source-layer': id,
|
|
6583
|
+
type: 'fill'
|
|
6584
|
+
}, fill), {}, {
|
|
6585
|
+
paint: _objectSpread2({
|
|
6586
|
+
'fill-opacity': 0
|
|
6587
|
+
}, fill.paint)
|
|
6588
|
+
}))
|
|
6589
|
+
};
|
|
6590
|
+
}
|
|
6591
|
+
function br_divisao_territorial_views(conf) {
|
|
6592
|
+
return [
|
|
6593
|
+
//
|
|
6594
|
+
// 2024
|
|
6595
|
+
//
|
|
6596
|
+
br_divisao_territorial(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6597
|
+
year: '2022',
|
|
6598
|
+
path: 'Municípios',
|
|
6599
|
+
label: 'Municípios',
|
|
6600
|
+
id: 'ibge_malha_br_municipio_2024.geom',
|
|
6601
|
+
line: {
|
|
6602
|
+
paint: {
|
|
6603
|
+
'line-color': schemeCategory10[0],
|
|
6604
|
+
'line-width': 5,
|
|
6605
|
+
'line-dasharray': [2, 2],
|
|
6606
|
+
'line-opacity': 0.5
|
|
6607
|
+
}
|
|
6608
|
+
}
|
|
6609
|
+
})), br_divisao_territorial(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6610
|
+
year: '2022',
|
|
6611
|
+
path: 'Municípios',
|
|
6612
|
+
label: 'Regiões Metropolitanas',
|
|
6613
|
+
id: 'ibge_malha_br_regiao_metropolitana_2024.geom',
|
|
6614
|
+
line: {
|
|
6615
|
+
paint: {
|
|
6616
|
+
'line-color': schemeCategory10[1],
|
|
6617
|
+
'line-width': 10,
|
|
6618
|
+
'line-opacity': 0.5
|
|
6619
|
+
}
|
|
6620
|
+
}
|
|
6621
|
+
})), br_divisao_territorial(_objectSpread2(_objectSpread2({}, conf), {}, {
|
|
6622
|
+
year: '2022',
|
|
6623
|
+
path: 'Municípios',
|
|
6624
|
+
label: 'Concentrações Urbanas',
|
|
6625
|
+
id: 'ibge_malha_br_concurb_2024.geom',
|
|
6626
|
+
line: {
|
|
6627
|
+
paint: {
|
|
6628
|
+
'line-color': schemeCategory10[2],
|
|
6629
|
+
'line-width': 5,
|
|
6630
|
+
'line-opacity': 0.5
|
|
6631
|
+
}
|
|
6632
|
+
}
|
|
6633
|
+
})),
|
|
6634
|
+
// Favelas e Comunidades Urbanas
|
|
6635
|
+
br_divisao_territorial(_objectSpread2({
|
|
6636
|
+
year: '2022',
|
|
6637
|
+
path: 'Favelas e Comunidades Urbanas',
|
|
6638
|
+
label: 'Favelas e Comunidades Urbanas',
|
|
6639
|
+
id: 'ibge_malha_br_fcu_2022.geom',
|
|
6640
|
+
line: {
|
|
6641
|
+
paint: {
|
|
6642
|
+
'line-color': 'brown',
|
|
6643
|
+
'line-width': 1,
|
|
6644
|
+
'line-opacity': 1
|
|
6645
|
+
}
|
|
6646
|
+
},
|
|
6647
|
+
fill: {
|
|
6648
|
+
paint: {
|
|
6649
|
+
'fill-opacity': ['case', ['boolean', ['feature-state', 'hover'], false], 1, 0.6],
|
|
6650
|
+
'fill-pattern': 'waves_1({ stroke: "brown", scale: 0.25 })'
|
|
6651
|
+
},
|
|
6652
|
+
interactive: true,
|
|
6653
|
+
tooltip: {
|
|
6654
|
+
title: ['$literal', ['$get', 'feature.properties.name']],
|
|
6655
|
+
entries: [['Favela ou Comunidade Urbana', null]]
|
|
6656
|
+
},
|
|
6657
|
+
legends: [{
|
|
6658
|
+
type: 'CategoricalLegend',
|
|
6659
|
+
items: [{
|
|
6660
|
+
label: 'Favelas e Comunidades Urbanas',
|
|
6661
|
+
box: {
|
|
6662
|
+
style: {
|
|
6663
|
+
borderColor: 'brown',
|
|
6664
|
+
borderStyle: 'solid',
|
|
6665
|
+
borderWidth: '1px',
|
|
6666
|
+
backgroundImage: svgBgImage(waves_1({
|
|
6667
|
+
stroke: 'brown',
|
|
6668
|
+
scale: '0.25'
|
|
6669
|
+
}))
|
|
6670
|
+
}
|
|
6671
|
+
}
|
|
6672
|
+
}]
|
|
6673
|
+
}]
|
|
6674
|
+
}
|
|
6675
|
+
}, conf)),
|
|
6676
|
+
// Censo 2022
|
|
6677
|
+
br_divisao_territorial(_objectSpread2({
|
|
6678
|
+
path: 'Censo 2022',
|
|
6679
|
+
id: 'ibge_malha_br_regiao_intermediaria_2024.geom',
|
|
6680
|
+
year: '2022',
|
|
6681
|
+
label: 'Região intermediária',
|
|
6682
|
+
line: {
|
|
6683
|
+
paint: {
|
|
6684
|
+
'line-color': schemeCategory10[3],
|
|
6685
|
+
'line-width': 6,
|
|
6686
|
+
'line-opacity': 0.5
|
|
6687
|
+
}
|
|
6688
|
+
}
|
|
6689
|
+
}, conf)), br_divisao_territorial(_objectSpread2({
|
|
6690
|
+
path: 'Censo 2022',
|
|
6691
|
+
id: 'ibge_malha_br_regiao_imediata_2024.geom',
|
|
6692
|
+
year: '2022',
|
|
6693
|
+
label: 'Região imediata',
|
|
6694
|
+
line: {
|
|
6695
|
+
paint: {
|
|
6696
|
+
'line-color': schemeCategory10[4],
|
|
6697
|
+
'line-width': 6,
|
|
6698
|
+
'line-opacity': 0.5
|
|
6699
|
+
}
|
|
6700
|
+
}
|
|
6701
|
+
}, conf)),
|
|
6702
|
+
//
|
|
6703
|
+
// Censo 2022
|
|
6704
|
+
//
|
|
6705
|
+
br_divisao_territorial(_objectSpread2({
|
|
6706
|
+
path: 'Censo 2022',
|
|
6707
|
+
id: 'ibge_malha_br_distrito_2022.geom',
|
|
6708
|
+
year: '2022',
|
|
6709
|
+
label: 'Distritos',
|
|
6710
|
+
line: {
|
|
6711
|
+
paint: {
|
|
6712
|
+
'line-color': schemeCategory10[5],
|
|
6713
|
+
'line-width': 6,
|
|
6714
|
+
'line-opacity': 0.5
|
|
6715
|
+
}
|
|
6716
|
+
}
|
|
6717
|
+
}, conf)), br_divisao_territorial(_objectSpread2(_objectSpread2({
|
|
6718
|
+
path: 'Censo 2022'
|
|
6719
|
+
}, conf), {}, {
|
|
6720
|
+
year: '2022',
|
|
6721
|
+
label: 'Subdistritos',
|
|
6722
|
+
id: 'ibge_malha_br_subdistrito_2022.geom',
|
|
6723
|
+
line: {
|
|
6724
|
+
paint: {
|
|
6725
|
+
'line-color': schemeCategory10[6],
|
|
6726
|
+
'line-width': 2,
|
|
6727
|
+
'line-opacity': 0.5
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
})), br_divisao_territorial(_objectSpread2(_objectSpread2({
|
|
6731
|
+
path: 'Censo 2022'
|
|
6732
|
+
}, conf), {}, {
|
|
6733
|
+
year: '2022',
|
|
6734
|
+
label: 'Bairros',
|
|
6735
|
+
id: 'ibge_malha_br_bairro_2022.geom',
|
|
6736
|
+
line: {
|
|
6737
|
+
paint: {
|
|
6738
|
+
'line-color': 'black',
|
|
6739
|
+
'line-width': 1,
|
|
6740
|
+
'line-opacity': 0.5
|
|
6741
|
+
}
|
|
6742
|
+
}
|
|
6743
|
+
})),
|
|
6744
|
+
//
|
|
6745
|
+
// Censo 2010
|
|
6746
|
+
//
|
|
6747
|
+
br_divisao_territorial(_objectSpread2({
|
|
6748
|
+
path: 'Censo 2010',
|
|
6749
|
+
year: '2010',
|
|
6750
|
+
label: 'Distritos',
|
|
6751
|
+
id: 'ibge_malha_br_distrito_2010.geom',
|
|
6752
|
+
line: {
|
|
6753
|
+
paint: {
|
|
6754
|
+
'line-color': 'blue',
|
|
6755
|
+
'line-width': 6,
|
|
6756
|
+
'line-opacity': 0.5
|
|
6757
|
+
}
|
|
6758
|
+
}
|
|
6759
|
+
}, conf)), br_divisao_territorial(_objectSpread2({
|
|
6760
|
+
path: 'Censo 2010',
|
|
6761
|
+
year: '2010',
|
|
6762
|
+
label: 'Subdistritos',
|
|
6763
|
+
id: 'ibge_malha_br_subdistrito_2010.geom',
|
|
6764
|
+
line: {
|
|
6765
|
+
paint: {
|
|
6766
|
+
'line-color': 'magenta',
|
|
6767
|
+
'line-width': 2,
|
|
6768
|
+
'line-opacity': 0.5
|
|
6769
|
+
}
|
|
6770
|
+
}
|
|
6771
|
+
}, conf))];
|
|
6772
|
+
}
|
|
6773
|
+
|
|
6774
|
+
var CURVATURA_ID = 'curvatura';
|
|
6775
|
+
function curvatura(_ref) {
|
|
6776
|
+
var RASTER_TILE_SERVER_ENDPOINT = _ref.RASTER_TILE_SERVER_ENDPOINT,
|
|
6777
|
+
mosaicJsonUrl = _ref.mosaicJsonUrl;
|
|
6778
|
+
var DEVICE_PIXEL_RATIO_SUFFIX = typeof window !== 'undefined' && window.devicePixelRatio > 1 ? '@2x' : '';
|
|
6779
|
+
return {
|
|
6780
|
+
viewType: VIEW_TYPE_SURFACE_CHOROPLETH,
|
|
6781
|
+
collection_id: CURVATURA_ID,
|
|
6782
|
+
indicator_id: CURVATURA_ID,
|
|
6783
|
+
id: CURVATURA_ID,
|
|
6784
|
+
label: 'Forma da encosta - Em perfil',
|
|
6785
|
+
path: "Emerg\xEAncias clim\xE1ticas / / Suscetibilidade a deslizamentos",
|
|
6786
|
+
confSchema: {
|
|
6787
|
+
data: {
|
|
6788
|
+
// temperaturaRange: {
|
|
6789
|
+
// type: 'range',
|
|
6790
|
+
// defaultValue: DEFAULT_DECLIVIDADE_RANGE,
|
|
6791
|
+
// step: 1,
|
|
6792
|
+
// min: DEFAULT_DECLIVIDADE_RANGE[0],
|
|
6793
|
+
// max: DEFAULT_DECLIVIDADE_RANGE[1],
|
|
6794
|
+
// label: resolve.literal(
|
|
6795
|
+
// resolve.fn((context) => {
|
|
6796
|
+
// const temperaturaRange = _temperaturaRange(
|
|
6797
|
+
// context.value?.temperaturaRange,
|
|
6798
|
+
// )
|
|
6799
|
+
// const minLabel = `${temperaturaRange[0]}°`
|
|
6800
|
+
// const maxLabel = `${temperaturaRange[1]}°${temperaturaRange[1] === DEFAULT_DECLIVIDADE_RANGE[1] ? '+' : ''}`
|
|
6801
|
+
// return `Intervalo de temperatura (${minLabel} - ${maxLabel})`
|
|
6802
|
+
// }),
|
|
6803
|
+
// ),
|
|
6804
|
+
// helperText: 'Intervalo de temperatura apresentado',
|
|
6805
|
+
// },
|
|
6806
|
+
}
|
|
6807
|
+
},
|
|
6808
|
+
metadata: {},
|
|
6809
|
+
sources: _defineProperty({}, CURVATURA_ID, {
|
|
6810
|
+
minzoom: 7,
|
|
6811
|
+
maxzoom: 14,
|
|
6812
|
+
type: 'raster',
|
|
6813
|
+
tiles: [resolve.fn(function (_ref2) {
|
|
6814
|
+
_ref2.view.conf;
|
|
6815
|
+
// const temperaturaRange = _temperaturaRange(
|
|
6816
|
+
// conf?.data?.temperaturaRange,
|
|
6817
|
+
// )
|
|
6818
|
+
|
|
6819
|
+
var baseUrl = "".concat(RASTER_TILE_SERVER_ENDPOINT, "/mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}").concat(DEVICE_PIXEL_RATIO_SUFFIX);
|
|
6820
|
+
var COLOR_MAP = {
|
|
6821
|
+
1: '#d92bcb',
|
|
6822
|
+
2: '#b49bcb',
|
|
6823
|
+
3: '#dcdcdc',
|
|
6824
|
+
4: '#f3ce5e',
|
|
6825
|
+
5: '#fd952e'
|
|
6826
|
+
};
|
|
6827
|
+
return "".concat(baseUrl, "?").concat($urlSearch([{
|
|
6828
|
+
url: mosaicJsonUrl,
|
|
6829
|
+
colormap: COLOR_MAP
|
|
6830
|
+
}]));
|
|
6831
|
+
})]
|
|
6832
|
+
}),
|
|
6833
|
+
layers: _defineProperty({}, "".concat(CURVATURA_ID), {
|
|
6834
|
+
minzoom: 7,
|
|
6835
|
+
// zIndex: 10,
|
|
6836
|
+
type: 'raster',
|
|
6837
|
+
source: CURVATURA_ID,
|
|
6838
|
+
paint: {
|
|
6839
|
+
'raster-opacity': 0.85
|
|
6840
|
+
}
|
|
6841
|
+
})
|
|
6842
|
+
};
|
|
6843
|
+
}
|
|
6844
|
+
|
|
6845
|
+
var DECLIVIDADE_ID = 'declividade';
|
|
6846
|
+
var DEFAULT_DECLIVIDADE_RANGE = [0, 45];
|
|
6847
|
+
var TRANSPARENT$1 = [0, 0, 0, 0];
|
|
6848
|
+
function _declividadeRange(candidate) {
|
|
6849
|
+
return Array.isArray(candidate) && candidate.length === 2 && typeof candidate[0] === 'number' && typeof candidate[1] === 'number' ? candidate : DEFAULT_DECLIVIDADE_RANGE;
|
|
6850
|
+
}
|
|
6851
|
+
var PRECISION$1 = 0.00000001;
|
|
6852
|
+
var CLASSES_DECLIVIDADE = [{
|
|
6853
|
+
color: '#2B83BA',
|
|
6854
|
+
label: '0º',
|
|
6855
|
+
range: [0, 0 + PRECISION$1 - PRECISION$1 / 10]
|
|
6856
|
+
}, {
|
|
6857
|
+
color: '#6BB0AF',
|
|
6858
|
+
label: '0 a 2º',
|
|
6859
|
+
range: [0 + PRECISION$1, 2]
|
|
6860
|
+
}, {
|
|
6861
|
+
color: '#ABDDA4',
|
|
6862
|
+
label: '2 a 5º',
|
|
6863
|
+
range: [2 + PRECISION$1, 5]
|
|
6864
|
+
}, {
|
|
6865
|
+
color: '#D5EEB1',
|
|
6866
|
+
label: '5 a 10º',
|
|
6867
|
+
range: [5 + PRECISION$1, 10]
|
|
6868
|
+
}, {
|
|
6869
|
+
color: '#FFFFBF',
|
|
6870
|
+
label: '10 a 17º',
|
|
6871
|
+
range: [10 + PRECISION$1, 17]
|
|
6872
|
+
}, {
|
|
6873
|
+
color: '#FED690',
|
|
6874
|
+
label: '17 a 20º',
|
|
6875
|
+
range: [17 + PRECISION$1, 20]
|
|
6876
|
+
}, {
|
|
6877
|
+
color: '#FDAE61',
|
|
6878
|
+
label: '20 a 25º',
|
|
6879
|
+
range: [20 + PRECISION$1, 25]
|
|
6880
|
+
}, {
|
|
6881
|
+
color: '#EA633E',
|
|
6882
|
+
label: '25 a 30º',
|
|
6883
|
+
range: [25 + PRECISION$1, 30]
|
|
6884
|
+
}, {
|
|
6885
|
+
color: '#D7191C',
|
|
6886
|
+
label: '30 a 45º',
|
|
6887
|
+
range: [30 + PRECISION$1, 45]
|
|
6888
|
+
}, {
|
|
6889
|
+
color: '#860003',
|
|
6890
|
+
label: 'Acima de 45º',
|
|
6891
|
+
range: [45 + PRECISION$1, 999999]
|
|
6892
|
+
}];
|
|
6893
|
+
function declividade(_ref) {
|
|
6894
|
+
var RASTER_TILE_SERVER_ENDPOINT = _ref.RASTER_TILE_SERVER_ENDPOINT,
|
|
6895
|
+
mosaicJsonUrl = _ref.mosaicJsonUrl;
|
|
6896
|
+
var DEVICE_PIXEL_RATIO_SUFFIX = typeof window !== 'undefined' && window.devicePixelRatio > 1 ? '@2x' : '';
|
|
6897
|
+
return {
|
|
6898
|
+
viewType: VIEW_TYPE_SURFACE_CHOROPLETH,
|
|
6899
|
+
collection_id: DECLIVIDADE_ID,
|
|
6900
|
+
indicator_id: DECLIVIDADE_ID,
|
|
6901
|
+
id: DECLIVIDADE_ID,
|
|
6902
|
+
label: 'Declividade',
|
|
6903
|
+
path: "Emerg\xEAncias clim\xE1ticas / / Suscetibilidade a deslizamentos",
|
|
6904
|
+
confSchema: {
|
|
6905
|
+
data: {
|
|
6906
|
+
declividadeRange: {
|
|
6907
|
+
type: 'range',
|
|
6908
|
+
defaultValue: DEFAULT_DECLIVIDADE_RANGE,
|
|
6909
|
+
step: 1,
|
|
6910
|
+
min: DEFAULT_DECLIVIDADE_RANGE[0],
|
|
6911
|
+
max: DEFAULT_DECLIVIDADE_RANGE[1],
|
|
6912
|
+
label: resolve.literal(resolve.fn(function (context) {
|
|
6913
|
+
var _context$value;
|
|
6914
|
+
var declividadeRange = _declividadeRange((_context$value = context.value) === null || _context$value === void 0 ? void 0 : _context$value.declividadeRange);
|
|
6915
|
+
var minLabel = "".concat(declividadeRange[0], "\xB0");
|
|
6916
|
+
var maxLabel = "".concat(declividadeRange[1], "\xB0").concat(declividadeRange[1] === DEFAULT_DECLIVIDADE_RANGE[1] ? '+' : '');
|
|
6917
|
+
return "Intervalo de declividade (".concat(minLabel, " - ").concat(maxLabel, ")");
|
|
6918
|
+
})),
|
|
6919
|
+
helperText: 'Intervalo de declividade apresentado'
|
|
6920
|
+
}
|
|
6921
|
+
}
|
|
6922
|
+
},
|
|
6923
|
+
metadata: {},
|
|
6924
|
+
sources: _defineProperty({}, DECLIVIDADE_ID, {
|
|
6925
|
+
minzoom: 7,
|
|
6926
|
+
maxzoom: 14,
|
|
6927
|
+
type: 'raster',
|
|
6928
|
+
tiles: [resolve.fn(function (_ref2) {
|
|
6929
|
+
var _conf$data;
|
|
6930
|
+
var conf = _ref2.view.conf;
|
|
6931
|
+
var declividadeRange = _declividadeRange(conf === null || conf === void 0 || (_conf$data = conf.data) === null || _conf$data === void 0 ? void 0 : _conf$data.declividadeRange);
|
|
6932
|
+
var baseUrl = "".concat(RASTER_TILE_SERVER_ENDPOINT, "/mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}").concat(DEVICE_PIXEL_RATIO_SUFFIX);
|
|
6933
|
+
var COLOR_MAP = CLASSES_DECLIVIDADE.map(function (cl) {
|
|
6934
|
+
return [cl.range, cl.color];
|
|
6935
|
+
});
|
|
6936
|
+
return "".concat(baseUrl, "?").concat($urlSearch([{
|
|
6937
|
+
url: mosaicJsonUrl,
|
|
6938
|
+
colormap: COLOR_MAP.map(function (_ref3) {
|
|
6939
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
6940
|
+
bounds = _ref4[0],
|
|
6941
|
+
color = _ref4[1];
|
|
6942
|
+
return [bounds, bounds[0] >= declividadeRange[0] && bounds[1] <= declividadeRange[1] ? color : TRANSPARENT$1];
|
|
6943
|
+
})
|
|
6944
|
+
}]));
|
|
6945
|
+
})]
|
|
6946
|
+
}),
|
|
6947
|
+
layers: _defineProperty({}, "".concat(DECLIVIDADE_ID), {
|
|
6948
|
+
minzoom: 7,
|
|
6949
|
+
// zIndex: 10,
|
|
6950
|
+
type: 'raster',
|
|
6951
|
+
source: DECLIVIDADE_ID,
|
|
6952
|
+
paint: {
|
|
6953
|
+
'raster-opacity': 0.85
|
|
6954
|
+
},
|
|
6955
|
+
legends: [{
|
|
6956
|
+
type: 'CategoricalLegend',
|
|
6957
|
+
title: 'Classes de Declividade',
|
|
6958
|
+
items: CLASSES_DECLIVIDADE
|
|
6959
|
+
}]
|
|
6960
|
+
})
|
|
6961
|
+
};
|
|
6962
|
+
}
|
|
6963
|
+
|
|
6964
|
+
var HAND_ID = 'hand';
|
|
6965
|
+
var DEFAULT_HAND_VALUE = 2;
|
|
6966
|
+
var MAX_HAND_VALUE = 6;
|
|
6967
|
+
function _handValue(conf) {
|
|
6968
|
+
var _conf$data;
|
|
6969
|
+
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;
|
|
6970
|
+
}
|
|
6971
|
+
|
|
6972
|
+
//
|
|
6973
|
+
// Color at DEFAULT_HAND_VALUE
|
|
6974
|
+
//
|
|
6975
|
+
var BASE_COLOR = '#2B83BA';
|
|
6976
|
+
var COLOR_MAP_BASE = [[[0, 0.1], colord(BASE_COLOR).darken(0.2).toHex()], [[0.10000000001, 0.25], colord(BASE_COLOR).darken(0.15).toHex()], [[0.25000000001, 0.5], colord(BASE_COLOR).darken(0.1).toHex()], [[0.50000000001, 1], colord(BASE_COLOR).darken(0.05).toHex()], [[1.00000000001, 1.5], BASE_COLOR], [[1.50000000001, 2], colord(BASE_COLOR).lighten(0.1).toHex()], [[2.00000000001, 2.5], colord(BASE_COLOR).lighten(0.2).toHex()], [[2.50000000001, 3], colord(BASE_COLOR).lighten(0.25).toHex()], [[3.00000000001, 3.5], colord(BASE_COLOR).lighten(0.3).toHex()], [[3.50000000001, 4], colord(BASE_COLOR).lighten(0.35).toHex()], [[4.00000000001, 4.5], colord(BASE_COLOR).lighten(0.4).toHex()], [[4.50000000001, 5], colord(BASE_COLOR).lighten(0.45).toHex()], [[5.00000000001, MAX_HAND_VALUE], colord(BASE_COLOR).lighten(0.5).toHex()]];
|
|
6977
|
+
function hand_legends() {
|
|
6978
|
+
return [{
|
|
6979
|
+
type: 'ContinuousColorLegend',
|
|
6980
|
+
title: 'Altura da drenagem mais próxima',
|
|
6981
|
+
unit: 'Metros',
|
|
6982
|
+
numberUnit: 'm',
|
|
6983
|
+
colors: resolve.fn(function (_ref) {
|
|
6984
|
+
var conf = _ref.view.conf;
|
|
6985
|
+
var handValue = _handValue(conf);
|
|
6986
|
+
return COLOR_MAP_BASE.filter(function (_ref2) {
|
|
6987
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
6988
|
+
range = _ref3[0];
|
|
6989
|
+
_ref3[1];
|
|
6990
|
+
return range[1] <= handValue;
|
|
6991
|
+
}).map(function (_ref4) {
|
|
6992
|
+
var _ref5 = _slicedToArray(_ref4, 2);
|
|
6993
|
+
_ref5[0];
|
|
6994
|
+
var color = _ref5[1];
|
|
6995
|
+
return color;
|
|
6996
|
+
});
|
|
6997
|
+
}),
|
|
6998
|
+
domain: resolve.fn(function (_ref6) {
|
|
6999
|
+
var conf = _ref6.view.conf;
|
|
7000
|
+
var handValue = _handValue(conf);
|
|
7001
|
+
return [0, handValue];
|
|
7002
|
+
}),
|
|
7003
|
+
barHeight: 50
|
|
7004
|
+
}];
|
|
7005
|
+
}
|
|
7006
|
+
function hand(_ref7) {
|
|
7007
|
+
var RASTER_TILE_SERVER_ENDPOINT = _ref7.RASTER_TILE_SERVER_ENDPOINT,
|
|
7008
|
+
mosaicJsonUrl = _ref7.mosaicJsonUrl;
|
|
7009
|
+
var DEVICE_PIXEL_RATIO_SUFFIX = typeof window !== 'undefined' && window.devicePixelRatio > 1 ? '@2x' : '';
|
|
7010
|
+
return {
|
|
7011
|
+
viewType: VIEW_TYPE_SURFACE_CHOROPLETH,
|
|
7012
|
+
collection_id: HAND_ID,
|
|
7013
|
+
indicator_id: HAND_ID,
|
|
7014
|
+
id: HAND_ID,
|
|
7015
|
+
label: 'Suscetibilidade à inundação',
|
|
7016
|
+
path: "Emerg\xEAncias clim\xE1ticas / / Riscos hidrol\xF3gicos",
|
|
7017
|
+
confSchema: {
|
|
7018
|
+
data: {
|
|
7019
|
+
handValue: {
|
|
7020
|
+
type: 'slider',
|
|
7021
|
+
defaultValue: DEFAULT_HAND_VALUE,
|
|
7022
|
+
step: 1,
|
|
7023
|
+
min: 0,
|
|
7024
|
+
max: MAX_HAND_VALUE,
|
|
7025
|
+
label: resolve.literal(resolve.fn(function (context) {
|
|
7026
|
+
var _context$value;
|
|
7027
|
+
return "Altura (".concat(typeof ((_context$value = context.value) === null || _context$value === void 0 ? void 0 : _context$value.handValue) === 'number' ? context.value.handValue : DEFAULT_HAND_VALUE, "m)");
|
|
7028
|
+
})),
|
|
7029
|
+
helperText: 'Altura acima da drenagem mais próxima'
|
|
7030
|
+
}
|
|
7031
|
+
}
|
|
7032
|
+
},
|
|
7033
|
+
metadata: {},
|
|
7034
|
+
sources: _defineProperty({}, HAND_ID, {
|
|
7035
|
+
type: 'raster',
|
|
7036
|
+
minzoom: 7,
|
|
7037
|
+
maxzoom: 14,
|
|
7038
|
+
tiles: [resolve.fn(function (_ref8) {
|
|
7039
|
+
var conf = _ref8.view.conf;
|
|
7040
|
+
var handValue = _handValue(conf);
|
|
7041
|
+
var baseUrl = "".concat(RASTER_TILE_SERVER_ENDPOINT, "/mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}").concat(DEVICE_PIXEL_RATIO_SUFFIX);
|
|
7042
|
+
return "".concat(baseUrl, "?").concat($urlSearch([{
|
|
7043
|
+
url: mosaicJsonUrl,
|
|
7044
|
+
// colormap: [[[0, handValue], '#2B83BA']],
|
|
7045
|
+
colormap: COLOR_MAP_BASE.filter(function (_ref9) {
|
|
7046
|
+
var _ref10 = _slicedToArray(_ref9, 2),
|
|
7047
|
+
range = _ref10[0];
|
|
7048
|
+
_ref10[1];
|
|
7049
|
+
return range[1] <= handValue;
|
|
7050
|
+
})
|
|
7051
|
+
}]));
|
|
7052
|
+
})]
|
|
7053
|
+
}),
|
|
7054
|
+
layers: _defineProperty({}, "".concat(HAND_ID), {
|
|
7055
|
+
minzoom: 7,
|
|
7056
|
+
// zIndex: 10,
|
|
7057
|
+
type: 'raster',
|
|
7058
|
+
source: HAND_ID,
|
|
7059
|
+
paint: {
|
|
7060
|
+
'raster-opacity': 0.85
|
|
7061
|
+
},
|
|
7062
|
+
legends: hand_legends()
|
|
7063
|
+
})
|
|
7064
|
+
};
|
|
7065
|
+
}
|
|
7066
|
+
|
|
7067
|
+
function overture_places_poc(_ref) {
|
|
7068
|
+
var VECTOR_TILE_SERVER_ENDPOINT = _ref.VECTOR_TILE_SERVER_ENDPOINT;
|
|
7069
|
+
return {
|
|
7070
|
+
collection_id: 'proof_of_concept',
|
|
7071
|
+
indicator_id: 'overture_places_poc',
|
|
7072
|
+
id: 'overture_places_poc',
|
|
7073
|
+
label: 'Pontos de atividade comercial',
|
|
7074
|
+
sourceLabel: 'Overture Maps',
|
|
7075
|
+
path: 'Infraestrutura e serviços urbanos / 2022 / Atividade comercial',
|
|
7076
|
+
metadata: {},
|
|
7077
|
+
sources: {
|
|
7078
|
+
atividade_comercial: tableVectorSource({
|
|
7079
|
+
VECTOR_TILE_SERVER_ENDPOINT: VECTOR_TILE_SERVER_ENDPOINT
|
|
7080
|
+
}, 'overture_br_places', {
|
|
7081
|
+
attribution: 'Overture Maps',
|
|
7082
|
+
minzoom: 10
|
|
7083
|
+
})
|
|
7084
|
+
},
|
|
7085
|
+
layers: {
|
|
7086
|
+
atividade_comercial: {
|
|
7087
|
+
source: 'atividade_comercial',
|
|
7088
|
+
'source-layer': 'overture_br_places.geom',
|
|
7089
|
+
filter: ['==', ['get', 'municipio_id'], ['$get', 'app.municipioId']],
|
|
7090
|
+
type: 'circle',
|
|
7091
|
+
paint: {
|
|
7092
|
+
'circle-radius': 2,
|
|
7093
|
+
// small circle size
|
|
7094
|
+
'circle-color': '#3E63DD',
|
|
7095
|
+
// red fill
|
|
7096
|
+
'circle-opacity': ['interpolate', ['linear'], ['zoom'], 10, 0.1, 16, 0.4]
|
|
7097
|
+
// 'circle-stroke-width': .5, // no outline
|
|
7098
|
+
// 'circle-stroke-color': '#ff0000', // no outline
|
|
7099
|
+
}
|
|
7100
|
+
|
|
7101
|
+
// type: 'heatmap',
|
|
7102
|
+
// paint: {
|
|
7103
|
+
// // Increase the heatmap weight based on frequency and property magnitude
|
|
7104
|
+
// 'heatmap-weight': [
|
|
7105
|
+
// 'interpolate',
|
|
7106
|
+
// ['linear'],
|
|
7107
|
+
// ['get', 'mag'],
|
|
7108
|
+
// 0,
|
|
7109
|
+
// 0,
|
|
7110
|
+
// 6,
|
|
7111
|
+
// 1,
|
|
7112
|
+
// ],
|
|
7113
|
+
// // Increase the heatmap color weight weight by zoom level
|
|
7114
|
+
// // heatmap-intensity is a multiplier on top of heatmap-weight
|
|
7115
|
+
// 'heatmap-intensity': [
|
|
7116
|
+
// 'interpolate',
|
|
7117
|
+
// ['linear'],
|
|
7118
|
+
// ['zoom'],
|
|
7119
|
+
// 0,
|
|
7120
|
+
// 1,
|
|
7121
|
+
// 9,
|
|
7122
|
+
// 3,
|
|
7123
|
+
// ],
|
|
7124
|
+
// // Color ramp for heatmap. Domain is 0 (low) to 1 (high).
|
|
7125
|
+
// // Begin color ramp at 0-stop with a 0-transparency color
|
|
7126
|
+
// // to create a blur-like effect.
|
|
7127
|
+
// 'heatmap-color': [
|
|
7128
|
+
// 'interpolate',
|
|
7129
|
+
// ['linear'],
|
|
7130
|
+
// ['heatmap-density'],
|
|
7131
|
+
// 0,
|
|
7132
|
+
// 'rgba(33,102,172,0)',
|
|
7133
|
+
// 0.2,
|
|
7134
|
+
// 'rgb(103,169,207)',
|
|
7135
|
+
// 0.4,
|
|
7136
|
+
// 'rgb(209,229,240)',
|
|
7137
|
+
// 0.6,
|
|
7138
|
+
// 'rgb(253,219,199)',
|
|
7139
|
+
// 0.8,
|
|
7140
|
+
// 'rgb(239,138,98)',
|
|
7141
|
+
// 1,
|
|
7142
|
+
// 'rgb(178,24,43)',
|
|
7143
|
+
// ],
|
|
7144
|
+
// // Adjust the heatmap radius by zoom level
|
|
7145
|
+
// 'heatmap-radius': [
|
|
7146
|
+
// 'interpolate',
|
|
7147
|
+
// ['linear'],
|
|
7148
|
+
// ['zoom'],
|
|
7149
|
+
// 0,
|
|
7150
|
+
// 2,
|
|
7151
|
+
// 9,
|
|
7152
|
+
// 20,
|
|
7153
|
+
// ],
|
|
7154
|
+
// },
|
|
7155
|
+
}
|
|
7156
|
+
}
|
|
7157
|
+
};
|
|
7158
|
+
}
|
|
7159
|
+
|
|
7160
|
+
var _templateObject$5, _templateObject2$3;
|
|
7161
|
+
var AutoWrapContainer = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n display: flex;\n direction: row;\n flex-wrap: wrap;\n margin-left: -10px;\n margin-top: -10px;\n\n > * {\n margin-left: 10px;\n margin-top: 10px;\n }\n"])));
|
|
7162
|
+
var UnstyledList = styled.ul(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral(["\n margin: 0;\n"])));
|
|
7163
|
+
var REDUS_MUTIRAO_COP_2025_ID = 'redus_mutirao_cop_2025.geom';
|
|
7164
|
+
var URL_RE = /^https?:\/\//;
|
|
7165
|
+
function _ensureUrl(url) {
|
|
7166
|
+
if (!url) {
|
|
7167
|
+
return '';
|
|
7168
|
+
}
|
|
7169
|
+
return URL_RE.test(url) ? url : "https://".concat(url);
|
|
7170
|
+
}
|
|
7171
|
+
function AsyncImage(_ref) {
|
|
7172
|
+
var src = _ref.src;
|
|
7173
|
+
var _useState = useState(false),
|
|
7174
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7175
|
+
loaded = _useState2[0],
|
|
7176
|
+
setLoaded = _useState2[1];
|
|
7177
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7178
|
+
style: {
|
|
7179
|
+
position: 'relative'
|
|
7180
|
+
}
|
|
7181
|
+
}, /*#__PURE__*/React.createElement(AspectRatio, {
|
|
7182
|
+
ratio: 16 / 9
|
|
7183
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
7184
|
+
src: src,
|
|
7185
|
+
onLoad: function onLoad() {
|
|
7186
|
+
return setLoaded(true);
|
|
7187
|
+
},
|
|
7188
|
+
onError: function onError() {
|
|
7189
|
+
return setLoaded(true);
|
|
7190
|
+
},
|
|
7191
|
+
style: {
|
|
7192
|
+
display: loaded ? 'block' : 'none',
|
|
7193
|
+
maxWidth: '100%'
|
|
7194
|
+
}
|
|
7195
|
+
})), !loaded && /*#__PURE__*/React.createElement(LoadingIndicator, {
|
|
7196
|
+
style: {
|
|
7197
|
+
position: 'absolute',
|
|
7198
|
+
top: '50%',
|
|
7199
|
+
left: '50%',
|
|
7200
|
+
transform: 'translate(-50%, -50%)'
|
|
7201
|
+
}
|
|
7202
|
+
}));
|
|
7203
|
+
}
|
|
7204
|
+
var MITIGACAO = 'Mitigação – energias renováveis, eficiência energética, mobilidade sustentável, construções verdes, redução de emissões';
|
|
7205
|
+
var ADAPTACAO = 'Adaptação – resiliência climática, gestão da água, reflorestamento, agricultura sustentável, saúde, nutrição';
|
|
7206
|
+
var FINANCIAMENTO = 'Financiamento climático – bioeconomia, finanças sustentáveis, empreendedorismo climático, compras públicas verdes';
|
|
7207
|
+
var GOVERNANCA = 'Governança – políticas públicas, governança multinível, inovação digital, participação social, fortalecimento institucional';
|
|
7208
|
+
var JUSTICA_CLIMATICA = 'Justiça climática – direito à cidade, moradia digna, cultura e povos tradicionais, redução de desigualdades, segurança alimentar';
|
|
7209
|
+
var OUTRO = 'Outro';
|
|
7210
|
+
var LEGEND_ITEMS = [{
|
|
7211
|
+
label: 'Mitigação',
|
|
7212
|
+
value: MITIGACAO,
|
|
7213
|
+
color: schemeCategory10[8],
|
|
7214
|
+
iconPath: mdiSprout,
|
|
7215
|
+
icon: 'mdiSprout({fill:"white"})'
|
|
7216
|
+
}, {
|
|
7217
|
+
label: 'Adaptação',
|
|
7218
|
+
value: ADAPTACAO,
|
|
7219
|
+
color: schemeCategory10[2],
|
|
7220
|
+
iconPath: mdiTree,
|
|
7221
|
+
icon: 'mdiTree({fill:"white"})'
|
|
7222
|
+
}, {
|
|
7223
|
+
label: 'Financiamento',
|
|
7224
|
+
value: FINANCIAMENTO,
|
|
7225
|
+
color: schemeCategory10[9],
|
|
7226
|
+
iconPath: mdiCurrencyUsd,
|
|
7227
|
+
icon: 'mdiCurrencyUsd({fill:"white"})'
|
|
7228
|
+
}, {
|
|
7229
|
+
label: 'Governança',
|
|
7230
|
+
value: GOVERNANCA,
|
|
7231
|
+
color: schemeCategory10[0],
|
|
7232
|
+
iconPath: mdiAccountMultipleOutline,
|
|
7233
|
+
icon: 'mdiAccountMultipleOutline({fill:"white"})'
|
|
7234
|
+
}, {
|
|
7235
|
+
label: 'Justiça climática',
|
|
7236
|
+
value: JUSTICA_CLIMATICA,
|
|
7237
|
+
color: schemeCategory10[1],
|
|
7238
|
+
iconPath: mdiScaleBalance,
|
|
7239
|
+
icon: 'mdiScaleBalance({fill:"white"})'
|
|
7240
|
+
}, {
|
|
7241
|
+
label: 'Outro',
|
|
7242
|
+
value: OUTRO,
|
|
7243
|
+
color: schemeCategory10[7],
|
|
7244
|
+
iconPath: null,
|
|
7245
|
+
icon: 'none'
|
|
7246
|
+
}];
|
|
7247
|
+
function _eixoShortLabel(value) {
|
|
7248
|
+
var _LEGEND_ITEMS$find;
|
|
7249
|
+
return ((_LEGEND_ITEMS$find = LEGEND_ITEMS.find(function (item) {
|
|
7250
|
+
return item.value === value;
|
|
7251
|
+
})) === null || _LEGEND_ITEMS$find === void 0 ? void 0 : _LEGEND_ITEMS$find.label) || 'Outro';
|
|
7252
|
+
}
|
|
7253
|
+
function redus_mutirao_cop_2025(conf) {
|
|
7254
|
+
var VECTOR_TILE_SERVER_ENDPOINT = conf.VECTOR_TILE_SERVER_ENDPOINT;
|
|
7255
|
+
return {
|
|
7256
|
+
collection_id: REDUS_MUTIRAO_COP_2025_ID,
|
|
7257
|
+
indicator_id: REDUS_MUTIRAO_COP_2025_ID,
|
|
7258
|
+
id: REDUS_MUTIRAO_COP_2025_ID,
|
|
7259
|
+
label: 'Mutirão ReDUS COP30',
|
|
7260
|
+
path: "Emerg\xEAncias Clim\xE1ticas / _ / COP30",
|
|
7261
|
+
metadata: {},
|
|
7262
|
+
sources: _defineProperty({}, REDUS_MUTIRAO_COP_2025_ID, {
|
|
7263
|
+
type: 'vector',
|
|
7264
|
+
minzoom: 3,
|
|
7265
|
+
tiles: ["".concat(VECTOR_TILE_SERVER_ENDPOINT, "/").concat(REDUS_MUTIRAO_COP_2025_ID, "/{z}/{x}/{y}")]
|
|
7266
|
+
}),
|
|
7267
|
+
layers: _defineProperty(_defineProperty({}, "".concat(REDUS_MUTIRAO_COP_2025_ID, "_symbols"), {
|
|
7268
|
+
type: 'symbol',
|
|
7269
|
+
source: REDUS_MUTIRAO_COP_2025_ID,
|
|
7270
|
+
zIndex: Z_OVERLAY_MIDDLE_2000 + 1,
|
|
7271
|
+
'source-layer': REDUS_MUTIRAO_COP_2025_ID,
|
|
7272
|
+
minzoom: 3,
|
|
7273
|
+
layout: {
|
|
7274
|
+
'icon-image': ['match', ['get', 'eixos_cop_30_primeiro']].concat(_toConsumableArray(LEGEND_ITEMS.map(function (item) {
|
|
7275
|
+
return [item.value, ['literal', item.icon]];
|
|
7276
|
+
}).flat()), [
|
|
7277
|
+
// default:
|
|
7278
|
+
'none']),
|
|
7279
|
+
'icon-size': ['interpolate', ['linear'], ['zoom'], 5, 0.5,
|
|
7280
|
+
// at zoom 5 → radius 0.5
|
|
7281
|
+
15, 0.8 // at zoom 15 → radius 0.8
|
|
7282
|
+
]
|
|
7283
|
+
}
|
|
7284
|
+
}), "".concat(REDUS_MUTIRAO_COP_2025_ID, "_circles"), {
|
|
7285
|
+
zIndex: Z_OVERLAY_MIDDLE_2000,
|
|
7286
|
+
source: REDUS_MUTIRAO_COP_2025_ID,
|
|
7287
|
+
'source-layer': REDUS_MUTIRAO_COP_2025_ID,
|
|
7288
|
+
minzoom: 3,
|
|
7289
|
+
type: 'circle',
|
|
7290
|
+
paint: {
|
|
7291
|
+
'circle-opacity': 1,
|
|
7292
|
+
'circle-radius': ['interpolate', ['linear'], ['zoom'], 5, 10,
|
|
7293
|
+
// at zoom 5 → radius 10
|
|
7294
|
+
15, 15 // at zoom 15 → radius 15
|
|
7295
|
+
],
|
|
7296
|
+
'circle-stroke-width': 1,
|
|
7297
|
+
'circle-stroke-color': '#000000',
|
|
7298
|
+
// 'circle-color': '#3E63DD',
|
|
7299
|
+
'circle-color': ['match', ['get', 'eixos_cop_30_primeiro']].concat(_toConsumableArray(LEGEND_ITEMS.map(function (item) {
|
|
7300
|
+
return [item.value, item.color];
|
|
7301
|
+
}).flat()), [
|
|
7302
|
+
// default
|
|
7303
|
+
schemeCategory10[7]])
|
|
7304
|
+
},
|
|
7305
|
+
interactive: true,
|
|
7306
|
+
onClick: function () {
|
|
7307
|
+
var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(feature, e, context) {
|
|
7308
|
+
var properties;
|
|
7309
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7310
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7311
|
+
case 0:
|
|
7312
|
+
properties = feature.properties;
|
|
7313
|
+
_context.next = 3;
|
|
7314
|
+
return context.dialogs.view(/*#__PURE__*/React.createElement(Flex, {
|
|
7315
|
+
direction: "column",
|
|
7316
|
+
gap: "4"
|
|
7317
|
+
}, /*#__PURE__*/React.createElement(Flex, {
|
|
7318
|
+
direction: "column",
|
|
7319
|
+
gap: "2"
|
|
7320
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
7321
|
+
as: "h1",
|
|
7322
|
+
size: "6"
|
|
7323
|
+
}, properties.name), /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Confetti, {
|
|
7324
|
+
style: {
|
|
7325
|
+
position: 'fixed',
|
|
7326
|
+
top: 0,
|
|
7327
|
+
left: 0,
|
|
7328
|
+
zIndex: 9999
|
|
7329
|
+
},
|
|
7330
|
+
recycle: false,
|
|
7331
|
+
numberOfPieces: 700,
|
|
7332
|
+
tweenDuration: 8000
|
|
7333
|
+
})), (properties.eixos_cop_30_text || properties.odus_text) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AutoWrapContainer, null, JSON.parse(properties.eixos_cop_30_text).map(function (eixo, idx) {
|
|
7334
|
+
return /*#__PURE__*/React.createElement(Badge, {
|
|
7335
|
+
color: "green",
|
|
7336
|
+
key: idx
|
|
7337
|
+
}, _eixoShortLabel(eixo));
|
|
7338
|
+
}), JSON.parse(properties.odus_text).map(function (obj, idx) {
|
|
7339
|
+
return /*#__PURE__*/React.createElement(Badge, {
|
|
7340
|
+
key: idx
|
|
7341
|
+
}, obj);
|
|
7342
|
+
}))), /*#__PURE__*/React.createElement(Heading, {
|
|
7343
|
+
as: "h3",
|
|
7344
|
+
size: "2",
|
|
7345
|
+
style: {
|
|
7346
|
+
fontWeight: 'normal'
|
|
7347
|
+
}
|
|
7348
|
+
}, "Organiza\xE7\xE3o respons\xE1vel:", ' ', /*#__PURE__*/React.createElement("strong", null, properties.organizacao)), properties.parcerias && /*#__PURE__*/React.createElement(Heading, {
|
|
7349
|
+
as: "h3",
|
|
7350
|
+
size: "2",
|
|
7351
|
+
style: {
|
|
7352
|
+
fontWeight: 'normal'
|
|
7353
|
+
}
|
|
7354
|
+
}, "Em parceria com: ", /*#__PURE__*/React.createElement("strong", null, properties.parcerias)), /*#__PURE__*/React.createElement(Heading, {
|
|
7355
|
+
as: "h3",
|
|
7356
|
+
size: "2",
|
|
7357
|
+
style: {
|
|
7358
|
+
fontWeight: 'normal'
|
|
7359
|
+
}
|
|
7360
|
+
}, "Cidade:", ' ', /*#__PURE__*/React.createElement("strong", null, properties.cidade, " - ", properties.estado))), properties.cover_image && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("img", {
|
|
7361
|
+
style: {
|
|
7362
|
+
maxWidth: '100%'
|
|
7363
|
+
},
|
|
7364
|
+
src: properties.cover_image
|
|
7365
|
+
})), properties.descricao_text && /*#__PURE__*/React.createElement(Flex, {
|
|
7366
|
+
gap: "2"
|
|
7367
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
7368
|
+
size: "3"
|
|
7369
|
+
}, "Descri\xE7\xE3o:"), /*#__PURE__*/React.createElement(RichTextOutput, {
|
|
7370
|
+
value: JSON.parse(properties.descricao_text)
|
|
7371
|
+
})), properties.impacto_text && /*#__PURE__*/React.createElement(Flex, {
|
|
7372
|
+
gap: "2"
|
|
7373
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
7374
|
+
size: "3"
|
|
7375
|
+
}, "Impacto:"), /*#__PURE__*/React.createElement(RichTextOutput, {
|
|
7376
|
+
value: JSON.parse(properties.impacto_text)
|
|
7377
|
+
})), properties.escala_de_atuacao_text && /*#__PURE__*/React.createElement(Flex, {
|
|
7378
|
+
gap: "2"
|
|
7379
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
7380
|
+
size: "3"
|
|
7381
|
+
}, "Escala de atua\xE7\xE3o:"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnstyledList, null, JSON.parse(properties.escala_de_atuacao_text).map(function (escala, idx) {
|
|
7382
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
7383
|
+
key: idx
|
|
7384
|
+
}, escala);
|
|
7385
|
+
})))), properties.fase_text && /*#__PURE__*/React.createElement(Flex, {
|
|
7386
|
+
gap: "2"
|
|
7387
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
7388
|
+
size: "3"
|
|
7389
|
+
}, "Fase:"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnstyledList, null, JSON.parse(properties.fase_text).map(function (fase, idx) {
|
|
7390
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
7391
|
+
key: idx
|
|
7392
|
+
}, fase);
|
|
7393
|
+
})))), /*#__PURE__*/React.createElement(Flex, {
|
|
7394
|
+
gap: "2"
|
|
7395
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
7396
|
+
size: "3"
|
|
7397
|
+
}, "Informa\xE7\xF5es de contato:"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnstyledList, null, _ensureUrl(properties.site) && /*#__PURE__*/React.createElement("li", null, "Site:", ' ', /*#__PURE__*/React.createElement("a", {
|
|
7398
|
+
href: _ensureUrl(properties.site),
|
|
7399
|
+
target: "_blank",
|
|
7400
|
+
rel: "noreferrer noopener"
|
|
7401
|
+
}, _ensureUrl(properties.site))), properties.redes_sociais && /*#__PURE__*/React.createElement("li", null, "Redes sociais: ", properties.redes_sociais), properties.email && /*#__PURE__*/React.createElement("li", null, "E-mail:", ' ', /*#__PURE__*/React.createElement("a", {
|
|
7402
|
+
href: "mailto:".concat(properties.email)
|
|
7403
|
+
}, properties.email))))), properties.other_attachments_text && /*#__PURE__*/React.createElement(Flex, {
|
|
7404
|
+
gap: "2"
|
|
7405
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
7406
|
+
size: "3"
|
|
7407
|
+
}, "Mais informa\xE7\xF5es:"), /*#__PURE__*/React.createElement(EvenSpacedList, {
|
|
7408
|
+
columns: 2,
|
|
7409
|
+
gap: "3"
|
|
7410
|
+
}, JSON.parse(properties.other_attachments_text).map(function (fase, idx) {
|
|
7411
|
+
return /*#__PURE__*/React.createElement(FileOutput, {
|
|
7412
|
+
value: fase,
|
|
7413
|
+
key: idx
|
|
7414
|
+
});
|
|
7415
|
+
})))));
|
|
7416
|
+
case 3:
|
|
7417
|
+
case "end":
|
|
7418
|
+
return _context.stop();
|
|
7419
|
+
}
|
|
7420
|
+
}, _callee);
|
|
7421
|
+
}));
|
|
7422
|
+
function onClick(_x, _x2, _x3) {
|
|
7423
|
+
return _onClick.apply(this, arguments);
|
|
7424
|
+
}
|
|
7425
|
+
return onClick;
|
|
7426
|
+
}(),
|
|
7427
|
+
tooltip: {
|
|
7428
|
+
title: resolve.literal(resolve.fn(function (_ref2) {
|
|
7429
|
+
var _feature$properties2;
|
|
7430
|
+
var feature = _ref2.feature;
|
|
7431
|
+
var eixo = LEGEND_ITEMS.find(function (item) {
|
|
7432
|
+
var _feature$properties;
|
|
7433
|
+
return item.value === (feature === null || feature === void 0 || (_feature$properties = feature.properties) === null || _feature$properties === void 0 ? void 0 : _feature$properties.eixos_cop_30_primeiro);
|
|
7434
|
+
}) || null;
|
|
7435
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7436
|
+
style: {
|
|
7437
|
+
display: 'inline-flex'
|
|
7438
|
+
}
|
|
7439
|
+
}, eixo && /*#__PURE__*/React.createElement(Icon, {
|
|
7440
|
+
path: eixo.iconPath,
|
|
7441
|
+
size: "18px",
|
|
7442
|
+
style: {
|
|
7443
|
+
flexGrow: 0,
|
|
7444
|
+
flexShrink: 0,
|
|
7445
|
+
marginRight: 5
|
|
7446
|
+
},
|
|
7447
|
+
color: "white"
|
|
7448
|
+
}), "".concat(eixo === null || eixo === void 0 ? void 0 : eixo.label, ": ").concat(feature === null || feature === void 0 || (_feature$properties2 = feature.properties) === null || _feature$properties2 === void 0 ? void 0 : _feature$properties2.name));
|
|
7449
|
+
})),
|
|
7450
|
+
// title: ['$literal', ['$get', 'feature.properties.name']],
|
|
7451
|
+
entries: [['Organização', ['$literal', ['$get', 'feature.properties.organizacao']]], resolve.literal(resolve.fn(function (_ref3) {
|
|
7452
|
+
var _feature$properties3, _feature$properties4;
|
|
7453
|
+
var feature = _ref3.feature;
|
|
7454
|
+
return (_feature$properties3 = feature.properties) !== null && _feature$properties3 !== void 0 && _feature$properties3.parcerias ? ['Parcerias', (_feature$properties4 = feature.properties) === null || _feature$properties4 === void 0 ? void 0 : _feature$properties4.parcerias] : null;
|
|
7455
|
+
})), resolve.literal(resolve.fn(function (_ref4) {
|
|
7456
|
+
var feature = _ref4.feature;
|
|
7457
|
+
return feature.properties.cover_image ? [null, /*#__PURE__*/React.createElement(AsyncImage, {
|
|
7458
|
+
style: {
|
|
7459
|
+
maxWidth: '100%'
|
|
7460
|
+
},
|
|
7461
|
+
src: feature.properties.cover_image
|
|
7462
|
+
})] : null;
|
|
7463
|
+
}))].filter(Boolean)
|
|
7464
|
+
},
|
|
7465
|
+
legends: [{
|
|
7466
|
+
type: 'CategoricalLegend',
|
|
7467
|
+
title: 'Eixos de atuação',
|
|
7468
|
+
unit: 'Eixos de atuação da COP30',
|
|
7469
|
+
items: LEGEND_ITEMS.map(function (item) {
|
|
7470
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
7471
|
+
box: {
|
|
7472
|
+
children: item.iconPath && /*#__PURE__*/React.createElement(Icon, {
|
|
7473
|
+
path: item.iconPath,
|
|
7474
|
+
size: "14px",
|
|
7475
|
+
color: "white"
|
|
7476
|
+
}),
|
|
7477
|
+
style: {
|
|
7478
|
+
borderRadius: '100%',
|
|
7479
|
+
borderColor: '#000000'
|
|
7480
|
+
}
|
|
7481
|
+
}
|
|
7482
|
+
});
|
|
7483
|
+
})
|
|
7484
|
+
}]
|
|
7485
|
+
})
|
|
7486
|
+
};
|
|
7487
|
+
}
|
|
7488
|
+
|
|
7489
|
+
var TEMPERATURA_SUPERFICIE_ID = 'temperatura_superficie';
|
|
7490
|
+
var TEMPERATURA_MIN = 20;
|
|
7491
|
+
var TEMPERATURA_MAX = 60;
|
|
7492
|
+
var DEFAULT_TEMPERATURA_RANGE = [TEMPERATURA_MIN, TEMPERATURA_MAX];
|
|
7493
|
+
var TRANSPARENT = [0, 0, 0, 0];
|
|
7494
|
+
function _temperaturaRange(candidate) {
|
|
7495
|
+
return Array.isArray(candidate) && candidate.length === 2 && typeof candidate[0] === 'number' && typeof candidate[1] === 'number' ? candidate : DEFAULT_TEMPERATURA_RANGE;
|
|
7496
|
+
}
|
|
7497
|
+
var COLOR_STEPS = TEMPERATURA_MAX - TEMPERATURA_MIN + 1;
|
|
7498
|
+
var PRECISION = 0.00000001;
|
|
7499
|
+
var COLOR_MAP = Array.from({
|
|
7500
|
+
length: COLOR_STEPS
|
|
7501
|
+
}, function (_, idx) {
|
|
7502
|
+
var progress = idx / (COLOR_STEPS - 1);
|
|
7503
|
+
var rangeStart = TEMPERATURA_MIN + idx;
|
|
7504
|
+
var rangeEnd = idx === COLOR_STEPS - 1 ? 9999999 : rangeStart + 1 - PRECISION;
|
|
7505
|
+
return [[rangeStart, rangeEnd], colord(interpolateSpectral(1 - progress)).toHex()];
|
|
7506
|
+
});
|
|
7507
|
+
function temperatura_legends() {
|
|
7508
|
+
return [{
|
|
7509
|
+
type: 'ContinuousColorLegend',
|
|
7510
|
+
title: 'Temperatura máxima de superfície (ºC)',
|
|
7511
|
+
unit: 'Valor médio em º Celsiu da temperatur máxima no período de 2021 - 2025',
|
|
7512
|
+
numberUnit: 'º',
|
|
7513
|
+
colors: resolve.fn(function (_ref) {
|
|
7514
|
+
var _conf$data;
|
|
7515
|
+
var conf = _ref.view.conf;
|
|
7516
|
+
var temperaturaRange = _temperaturaRange(conf === null || conf === void 0 || (_conf$data = conf.data) === null || _conf$data === void 0 ? void 0 : _conf$data.temperaturaRange);
|
|
7517
|
+
return COLOR_MAP.filter(function (_ref2) {
|
|
7518
|
+
var _ref3 = _slicedToArray(_ref2, 1),
|
|
7519
|
+
range = _ref3[0];
|
|
7520
|
+
return range[0] <= temperaturaRange[1] && range[1] >= temperaturaRange[0];
|
|
7521
|
+
}).map(function (_ref4) {
|
|
7522
|
+
var _ref5 = _slicedToArray(_ref4, 2);
|
|
7523
|
+
_ref5[0];
|
|
7524
|
+
var color = _ref5[1];
|
|
7525
|
+
return color;
|
|
7526
|
+
});
|
|
7527
|
+
}),
|
|
7528
|
+
domain: resolve.fn(function (_ref6) {
|
|
7529
|
+
var _conf$data2;
|
|
7530
|
+
var conf = _ref6.view.conf;
|
|
7531
|
+
var temperaturaRange = _temperaturaRange(conf === null || conf === void 0 || (_conf$data2 = conf.data) === null || _conf$data2 === void 0 ? void 0 : _conf$data2.temperaturaRange);
|
|
7532
|
+
return temperaturaRange;
|
|
7533
|
+
}),
|
|
7534
|
+
barDirection: 'to right',
|
|
7535
|
+
barWidth: '100%',
|
|
7536
|
+
barHeight: 15
|
|
7537
|
+
}];
|
|
7538
|
+
}
|
|
7539
|
+
function temperatura_superficie(_ref7) {
|
|
7540
|
+
var RASTER_TILE_SERVER_ENDPOINT = _ref7.RASTER_TILE_SERVER_ENDPOINT,
|
|
7541
|
+
mosaicJsonUrl = _ref7.mosaicJsonUrl;
|
|
7542
|
+
var DEVICE_PIXEL_RATIO_SUFFIX = typeof window !== 'undefined' && window.devicePixelRatio > 1 ? '@2x' : '';
|
|
7543
|
+
return {
|
|
7544
|
+
viewType: VIEW_TYPE_SURFACE_CHOROPLETH,
|
|
7545
|
+
collection_id: TEMPERATURA_SUPERFICIE_ID,
|
|
7546
|
+
indicator_id: TEMPERATURA_SUPERFICIE_ID,
|
|
7547
|
+
id: TEMPERATURA_SUPERFICIE_ID,
|
|
7548
|
+
label: 'Temperatura máxima de superfície (ºC)',
|
|
7549
|
+
year: '2021 - 2025',
|
|
7550
|
+
path: "Emerg\xEAncias clim\xE1ticas / / Extremos de temperatura",
|
|
7551
|
+
confSchema: {
|
|
7552
|
+
data: {
|
|
7553
|
+
temperaturaRange: {
|
|
7554
|
+
type: 'range',
|
|
7555
|
+
defaultValue: DEFAULT_TEMPERATURA_RANGE,
|
|
7556
|
+
step: 1,
|
|
7557
|
+
min: DEFAULT_TEMPERATURA_RANGE[0],
|
|
7558
|
+
max: DEFAULT_TEMPERATURA_RANGE[1],
|
|
7559
|
+
label: resolve.literal(resolve.fn(function (context) {
|
|
7560
|
+
var _context$value;
|
|
7561
|
+
var temperaturaRange = _temperaturaRange((_context$value = context.value) === null || _context$value === void 0 ? void 0 : _context$value.temperaturaRange);
|
|
7562
|
+
var minLabel = "".concat(temperaturaRange[0], "\xB0");
|
|
7563
|
+
var maxLabel = "".concat(temperaturaRange[1], "\xB0").concat(temperaturaRange[1] === DEFAULT_TEMPERATURA_RANGE[1] ? '+' : '');
|
|
7564
|
+
return "Intervalo de temperatura (".concat(minLabel, " - ").concat(maxLabel, ")");
|
|
7565
|
+
})),
|
|
7566
|
+
helperText: 'Intervalo de temperatura apresentado'
|
|
7567
|
+
}
|
|
7568
|
+
}
|
|
7569
|
+
},
|
|
7570
|
+
metadata: {},
|
|
7571
|
+
sources: _defineProperty({}, TEMPERATURA_SUPERFICIE_ID, {
|
|
7572
|
+
minzoom: 7,
|
|
7573
|
+
maxzoom: 14,
|
|
7574
|
+
type: 'raster',
|
|
7575
|
+
tiles: [resolve.fn(function (_ref8) {
|
|
7576
|
+
var _conf$data3;
|
|
7577
|
+
var conf = _ref8.view.conf;
|
|
7578
|
+
var temperaturaRange = _temperaturaRange(conf === null || conf === void 0 || (_conf$data3 = conf.data) === null || _conf$data3 === void 0 ? void 0 : _conf$data3.temperaturaRange);
|
|
7579
|
+
var baseUrl = "".concat(RASTER_TILE_SERVER_ENDPOINT, "/mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}").concat(DEVICE_PIXEL_RATIO_SUFFIX);
|
|
7580
|
+
return "".concat(baseUrl, "?").concat($urlSearch([{
|
|
7581
|
+
url: mosaicJsonUrl,
|
|
7582
|
+
colormap: COLOR_MAP.map(function (_ref9) {
|
|
7583
|
+
var _ref10 = _slicedToArray(_ref9, 2),
|
|
7584
|
+
bounds = _ref10[0],
|
|
7585
|
+
color = _ref10[1];
|
|
7586
|
+
return [bounds, bounds[0] >= temperaturaRange[0] && bounds[1] <= temperaturaRange[1] ? color : TRANSPARENT];
|
|
7587
|
+
})
|
|
7588
|
+
}]));
|
|
7589
|
+
})]
|
|
7590
|
+
}),
|
|
7591
|
+
layers: _defineProperty({}, "".concat(TEMPERATURA_SUPERFICIE_ID), {
|
|
7592
|
+
minzoom: 7,
|
|
7593
|
+
// zIndex: 10,
|
|
7594
|
+
type: 'raster',
|
|
7595
|
+
source: TEMPERATURA_SUPERFICIE_ID,
|
|
7596
|
+
paint: {
|
|
7597
|
+
'raster-opacity': 0.85
|
|
7598
|
+
},
|
|
7599
|
+
legends: temperatura_legends()
|
|
7600
|
+
})
|
|
7601
|
+
};
|
|
7602
|
+
}
|
|
7603
|
+
|
|
6452
7604
|
var index = /*#__PURE__*/Object.freeze({
|
|
6453
7605
|
__proto__: null,
|
|
6454
7606
|
STAGE_SPECIAL_KEYS: STAGE_SPECIAL_KEYS,
|
|
6455
7607
|
STAGE_VALUE_KEY: STAGE_VALUE_KEY,
|
|
7608
|
+
ana_br_bacias_hidrograficas: ana_br_bacias_hidrograficas,
|
|
7609
|
+
br_divisao_territorial: br_divisao_territorial,
|
|
7610
|
+
br_divisao_territorial_views: br_divisao_territorial_views,
|
|
6456
7611
|
cem_censo_2010_2022: cem_censo_2010_2022,
|
|
6457
7612
|
cem_censo_2022: cem_censo_2022,
|
|
6458
7613
|
cem_escolas_2022: cem_escolas_2022,
|
|
6459
7614
|
cem_saude_2024: cem_saude_2024,
|
|
7615
|
+
curvatura: curvatura,
|
|
7616
|
+
declividade: declividade,
|
|
6460
7617
|
fetchViewSpecs: fetchViewSpecs,
|
|
7618
|
+
hand: hand,
|
|
7619
|
+
overture_places_poc: overture_places_poc,
|
|
7620
|
+
redus_mutirao_cop_2025: redus_mutirao_cop_2025,
|
|
6461
7621
|
resolveConfSchema: resolveConfSchema,
|
|
6462
7622
|
resolveControls: resolveControls,
|
|
6463
7623
|
resolveDownload: resolveDownload,
|
|
@@ -6465,7 +7625,8 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
6465
7625
|
resolveMetadata: resolveMetadata,
|
|
6466
7626
|
resolveSources: resolveSources,
|
|
6467
7627
|
resolveView: resolveView,
|
|
6468
|
-
resolveViewSpecs: resolveViewSpecs
|
|
7628
|
+
resolveViewSpecs: resolveViewSpecs,
|
|
7629
|
+
temperatura_superficie: temperatura_superficie
|
|
6469
7630
|
});
|
|
6470
7631
|
|
|
6471
7632
|
var CollapsibleContent_slideDown = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n"], ["\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n"])));
|
|
@@ -6476,7 +7637,7 @@ var templateObject_1, templateObject_2, templateObject_3;
|
|
|
6476
7637
|
var REMARK_PLUGINS = [].concat(_toConsumableArray(MARKDOWN_DEFAULT_REMARK_PLUGINS), [remarkMath]);
|
|
6477
7638
|
var REHYPE_PLUGINS = [].concat(_toConsumableArray(MARKDOWN_DEFAULT_REHYPE_PLUGINS), [rehypeKatex]);
|
|
6478
7639
|
function Markdown(props) {
|
|
6479
|
-
return /*#__PURE__*/React.createElement(Markdown$1, _extends({
|
|
7640
|
+
return /*#__PURE__*/React$1.createElement(Markdown$1, _extends({
|
|
6480
7641
|
remarkPlugins: REMARK_PLUGINS,
|
|
6481
7642
|
rehypePlugins: REHYPE_PLUGINS
|
|
6482
7643
|
}, props));
|
|
@@ -6506,7 +7667,7 @@ var _createDialogSystem = createDialogSystem({
|
|
|
6506
7667
|
useDialogs = _createDialogSystem2[1];
|
|
6507
7668
|
function DialogsProvider(_ref2) {
|
|
6508
7669
|
var children = _ref2.children;
|
|
6509
|
-
return /*#__PURE__*/React.createElement(DialogsProvider_, {
|
|
7670
|
+
return /*#__PURE__*/React$1.createElement(DialogsProvider_, {
|
|
6510
7671
|
prompt: {
|
|
6511
7672
|
restore: 'Restaurar',
|
|
6512
7673
|
cancel: 'Cancelar',
|
|
@@ -6518,7 +7679,7 @@ function DialogsProvider(_ref2) {
|
|
|
6518
7679
|
var CONF_TABS = {
|
|
6519
7680
|
data: {
|
|
6520
7681
|
id: 'data',
|
|
6521
|
-
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
7682
|
+
icon: /*#__PURE__*/React$1.createElement(Icon, {
|
|
6522
7683
|
path: mdiFilterVariant,
|
|
6523
7684
|
size: "16px"
|
|
6524
7685
|
}),
|
|
@@ -6526,7 +7687,7 @@ var CONF_TABS = {
|
|
|
6526
7687
|
},
|
|
6527
7688
|
style: {
|
|
6528
7689
|
id: 'style',
|
|
6529
|
-
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
7690
|
+
icon: /*#__PURE__*/React$1.createElement(Icon, {
|
|
6530
7691
|
path: mdiOpacity,
|
|
6531
7692
|
size: "16px"
|
|
6532
7693
|
}),
|
|
@@ -6559,21 +7720,21 @@ function ViewConfTabs(_ref) {
|
|
|
6559
7720
|
}).filter(Boolean);
|
|
6560
7721
|
}, [CONF_SCHEMA]);
|
|
6561
7722
|
var dialogs = useDialogs();
|
|
6562
|
-
return /*#__PURE__*/React.createElement(Tabs.Root, {
|
|
7723
|
+
return /*#__PURE__*/React$1.createElement(Tabs.Root, {
|
|
6563
7724
|
defaultValue: ((_enabledTabs$ = enabledTabs[0]) === null || _enabledTabs$ === void 0 ? void 0 : _enabledTabs$.id) || null
|
|
6564
|
-
}, /*#__PURE__*/React.createElement(Flex, {
|
|
7725
|
+
}, /*#__PURE__*/React$1.createElement(Flex, {
|
|
6565
7726
|
direction: "row",
|
|
6566
7727
|
gap: "0"
|
|
6567
|
-
}, /*#__PURE__*/React.createElement(Tabs.List, {
|
|
7728
|
+
}, /*#__PURE__*/React$1.createElement(Tabs.List, {
|
|
6568
7729
|
size: "1"
|
|
6569
7730
|
}, enabledTabs.map(function (tab) {
|
|
6570
|
-
return /*#__PURE__*/React.createElement(Tabs.Trigger, {
|
|
7731
|
+
return /*#__PURE__*/React$1.createElement(Tabs.Trigger, {
|
|
6571
7732
|
key: tab.id,
|
|
6572
7733
|
value: tab.id
|
|
6573
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
7734
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
6574
7735
|
content: tab.label
|
|
6575
7736
|
}, tab.icon));
|
|
6576
|
-
})), /*#__PURE__*/React.createElement(Flex, {
|
|
7737
|
+
})), /*#__PURE__*/React$1.createElement(Flex, {
|
|
6577
7738
|
direction: "row",
|
|
6578
7739
|
alignItems: "center",
|
|
6579
7740
|
gap: "10px",
|
|
@@ -6584,7 +7745,7 @@ function ViewConfTabs(_ref) {
|
|
|
6584
7745
|
flexGrow: 1,
|
|
6585
7746
|
boxShadow: 'color(display-p3 0.0039 0.251 0.5137 / 0.174) 0px -1px 0px 0px inset'
|
|
6586
7747
|
}
|
|
6587
|
-
}, viewSpec.metodology && /*#__PURE__*/React.createElement(IconButton, {
|
|
7748
|
+
}, viewSpec.metodology && /*#__PURE__*/React$1.createElement(IconButton, {
|
|
6588
7749
|
variant: "ghost",
|
|
6589
7750
|
size: "1",
|
|
6590
7751
|
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
@@ -6627,9 +7788,9 @@ function ViewConfTabs(_ref) {
|
|
|
6627
7788
|
_context2.next = 6;
|
|
6628
7789
|
return dialogs.view({
|
|
6629
7790
|
maxHeight: '90vh',
|
|
6630
|
-
children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Heading, {
|
|
7791
|
+
children: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Heading, {
|
|
6631
7792
|
as: "h1"
|
|
6632
|
-
}, viewSpec.label, " - Notas metodol\xF3gicas"), /*#__PURE__*/React.createElement(Markdown, {
|
|
7793
|
+
}, viewSpec.label, " - Notas metodol\xF3gicas"), /*#__PURE__*/React$1.createElement(Markdown, {
|
|
6633
7794
|
children: markdown.trim()
|
|
6634
7795
|
}))
|
|
6635
7796
|
});
|
|
@@ -6639,12 +7800,12 @@ function ViewConfTabs(_ref) {
|
|
|
6639
7800
|
}
|
|
6640
7801
|
}, _callee2);
|
|
6641
7802
|
}))
|
|
6642
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
7803
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
6643
7804
|
content: "Notas metodol\xF3gicas"
|
|
6644
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7805
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
6645
7806
|
path: mdiHelpCircleOutline,
|
|
6646
7807
|
size: "16px"
|
|
6647
|
-
}))), typeof (resolvedView === null || resolvedView === void 0 ? void 0 : resolvedView.download) === 'function' && /*#__PURE__*/React.createElement(IconButton, {
|
|
7808
|
+
}))), typeof (resolvedView === null || resolvedView === void 0 ? void 0 : resolvedView.download) === 'function' && /*#__PURE__*/React$1.createElement(IconButton, {
|
|
6648
7809
|
variant: "ghost",
|
|
6649
7810
|
size: "1",
|
|
6650
7811
|
onClick: function onClick() {
|
|
@@ -6652,22 +7813,22 @@ function ViewConfTabs(_ref) {
|
|
|
6652
7813
|
dialogs: dialogs
|
|
6653
7814
|
});
|
|
6654
7815
|
}
|
|
6655
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
7816
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
6656
7817
|
content: "Baixar dados"
|
|
6657
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7818
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
6658
7819
|
path: mdiDownload,
|
|
6659
7820
|
size: "16px"
|
|
6660
|
-
}))), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
7821
|
+
}))), /*#__PURE__*/React$1.createElement(DropdownMenu, {
|
|
6661
7822
|
options: [{
|
|
6662
7823
|
label: 'Visualizar como mapa comparado',
|
|
6663
7824
|
onClick: function onClick() {
|
|
6664
7825
|
return onSetView(viewConf, 1);
|
|
6665
7826
|
}
|
|
6666
7827
|
}]
|
|
6667
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
7828
|
+
}, /*#__PURE__*/React$1.createElement(IconButton, {
|
|
6668
7829
|
variant: "ghost",
|
|
6669
7830
|
size: "1"
|
|
6670
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7831
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
6671
7832
|
path: mdiDotsVertical,
|
|
6672
7833
|
size: "16px"
|
|
6673
7834
|
}))))), Array.isArray(enabledTabs) && enabledTabs.length > 0 ? enabledTabs.map(function (tab) {
|
|
@@ -6682,14 +7843,14 @@ function ViewConfTabs(_ref) {
|
|
|
6682
7843
|
return Boolean(value);
|
|
6683
7844
|
}));
|
|
6684
7845
|
var tabConfValue = immediateViewConf[tab.id];
|
|
6685
|
-
return /*#__PURE__*/React.createElement(Tabs.Content, {
|
|
7846
|
+
return /*#__PURE__*/React$1.createElement(Tabs.Content, {
|
|
6686
7847
|
key: tab.id,
|
|
6687
7848
|
value: tab.id
|
|
6688
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
7849
|
+
}, /*#__PURE__*/React$1.createElement(Box, {
|
|
6689
7850
|
p: "3"
|
|
6690
|
-
}, /*#__PURE__*/React.createElement(Theme, {
|
|
7851
|
+
}, /*#__PURE__*/React$1.createElement(Theme, {
|
|
6691
7852
|
scaling: "100%"
|
|
6692
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
7853
|
+
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
6693
7854
|
schema: {
|
|
6694
7855
|
type: 'object',
|
|
6695
7856
|
properties: tabConfSchema
|
|
@@ -6699,7 +7860,7 @@ function ViewConfTabs(_ref) {
|
|
|
6699
7860
|
return setImmediateViewConf(_objectSpread2(_objectSpread2({}, viewConf), {}, _defineProperty({}, tab.id, _objectSpread2(_objectSpread2({}, viewConf[tab.id] || {}), nextValue))));
|
|
6700
7861
|
}
|
|
6701
7862
|
}))));
|
|
6702
|
-
}) : /*#__PURE__*/React.createElement(Box, {
|
|
7863
|
+
}) : /*#__PURE__*/React$1.createElement(Box, {
|
|
6703
7864
|
p: "3",
|
|
6704
7865
|
style: {
|
|
6705
7866
|
fontSize: '.9rem'
|
|
@@ -6736,18 +7897,18 @@ function HeadingWithTooltipAndEllipsis(_ref7) {
|
|
|
6736
7897
|
_ref7$maxLines = _ref7.maxLines,
|
|
6737
7898
|
maxLines = _ref7$maxLines === void 0 ? 2 : _ref7$maxLines,
|
|
6738
7899
|
props = _objectWithoutProperties(_ref7, _excluded$4);
|
|
6739
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
7900
|
+
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
6740
7901
|
content: content
|
|
6741
|
-
}, /*#__PURE__*/React.createElement(Heading, _extends({
|
|
7902
|
+
}, /*#__PURE__*/React$1.createElement(Heading, _extends({
|
|
6742
7903
|
size: "2",
|
|
6743
7904
|
as: "h4",
|
|
6744
7905
|
style: {
|
|
6745
7906
|
fontWeight: 'normal',
|
|
6746
7907
|
color: 'var(--accent-9)'
|
|
6747
7908
|
}
|
|
6748
|
-
}, props), /*#__PURE__*/React.createElement(TextEllipsis, {
|
|
7909
|
+
}, props), /*#__PURE__*/React$1.createElement(TextEllipsis, {
|
|
6749
7910
|
maxLines: maxLines
|
|
6750
|
-
}, /*#__PURE__*/React.createElement(Highlighter, {
|
|
7911
|
+
}, /*#__PURE__*/React$1.createElement(Highlighter, {
|
|
6751
7912
|
searchWords: textSearch && textSearch.length > 3 ? [textSearch] : [],
|
|
6752
7913
|
textToHighlight: content
|
|
6753
7914
|
}))));
|
|
@@ -6774,9 +7935,9 @@ function ViewControl(_ref8) {
|
|
|
6774
7935
|
var toggleView = useCallback(function () {
|
|
6775
7936
|
return active ? deactivateView() : setView();
|
|
6776
7937
|
}, [active, deactivateView, setView]);
|
|
6777
|
-
return viewSpec && /*#__PURE__*/React.createElement(Collapsible.Root, {
|
|
7938
|
+
return viewSpec && /*#__PURE__*/React$1.createElement(Collapsible.Root, {
|
|
6778
7939
|
open: configurable === true && active
|
|
6779
|
-
}, /*#__PURE__*/React.createElement(Container$1, null, /*#__PURE__*/React.createElement(Summary, {
|
|
7940
|
+
}, /*#__PURE__*/React$1.createElement(Container$1, null, /*#__PURE__*/React$1.createElement(Summary, {
|
|
6780
7941
|
type: "button",
|
|
6781
7942
|
role: "button",
|
|
6782
7943
|
style: style,
|
|
@@ -6784,19 +7945,19 @@ function ViewControl(_ref8) {
|
|
|
6784
7945
|
onClick: configurable ? function () {
|
|
6785
7946
|
return toggleView();
|
|
6786
7947
|
} : null
|
|
6787
|
-
}, /*#__PURE__*/React.createElement(Flex, {
|
|
7948
|
+
}, /*#__PURE__*/React$1.createElement(Flex, {
|
|
6788
7949
|
direction: "row",
|
|
6789
7950
|
alignItems: "center",
|
|
6790
7951
|
justifyContent: "space-between",
|
|
6791
7952
|
p: "3",
|
|
6792
7953
|
width: "100%"
|
|
6793
|
-
}, /*#__PURE__*/React.createElement(Flex, {
|
|
7954
|
+
}, /*#__PURE__*/React$1.createElement(Flex, {
|
|
6794
7955
|
direction: "column",
|
|
6795
7956
|
gap: "1",
|
|
6796
7957
|
style: {
|
|
6797
7958
|
flexGrow: '1'
|
|
6798
7959
|
}
|
|
6799
|
-
}, path && /*#__PURE__*/React.createElement(HeadingWithTooltipAndEllipsis, {
|
|
7960
|
+
}, path && /*#__PURE__*/React$1.createElement(HeadingWithTooltipAndEllipsis, {
|
|
6800
7961
|
size: "1",
|
|
6801
7962
|
as: "h6",
|
|
6802
7963
|
content: typeof path === 'string' ? path : viewSpec.path,
|
|
@@ -6806,18 +7967,18 @@ function ViewControl(_ref8) {
|
|
|
6806
7967
|
color: 'var(--gray-9)',
|
|
6807
7968
|
fontWeight: 'normal'
|
|
6808
7969
|
}
|
|
6809
|
-
}), /*#__PURE__*/React.createElement(HeadingWithTooltipAndEllipsis, {
|
|
7970
|
+
}), /*#__PURE__*/React$1.createElement(HeadingWithTooltipAndEllipsis, {
|
|
6810
7971
|
content: viewSpec.label,
|
|
6811
7972
|
textSearch: textSearch,
|
|
6812
7973
|
maxLines: 2
|
|
6813
|
-
}), /*#__PURE__*/React.createElement(Text, {
|
|
7974
|
+
}), /*#__PURE__*/React$1.createElement(Text, {
|
|
6814
7975
|
color: "gray",
|
|
6815
7976
|
style: {
|
|
6816
7977
|
color: 'var(--gray-9)',
|
|
6817
7978
|
textTransform: 'uppercase'
|
|
6818
7979
|
},
|
|
6819
7980
|
size: "1"
|
|
6820
|
-
}, viewSpec.sourceLabel)), /*#__PURE__*/React.createElement(SwitchInput, {
|
|
7981
|
+
}, viewSpec.sourceLabel)), /*#__PURE__*/React$1.createElement(SwitchInput, {
|
|
6821
7982
|
radius: "full",
|
|
6822
7983
|
value: active,
|
|
6823
7984
|
onSetValue: function onSetValue() {
|
|
@@ -6830,11 +7991,11 @@ function ViewControl(_ref8) {
|
|
|
6830
7991
|
onClick: function onClick(e) {
|
|
6831
7992
|
return e.stopPropagation();
|
|
6832
7993
|
}
|
|
6833
|
-
}))), /*#__PURE__*/React.createElement(CollapsibleContent, {
|
|
7994
|
+
}))), /*#__PURE__*/React$1.createElement(CollapsibleContent, {
|
|
6834
7995
|
style: {
|
|
6835
7996
|
borderTop: '1px solid var(--gray-8)'
|
|
6836
7997
|
}
|
|
6837
|
-
}, viewConf && /*#__PURE__*/React.createElement(ViewConfTabs, {
|
|
7998
|
+
}, viewConf && /*#__PURE__*/React$1.createElement(ViewConfTabs, {
|
|
6838
7999
|
viewSpec: viewSpec,
|
|
6839
8000
|
viewConf: viewConf,
|
|
6840
8001
|
resolvedView: resolvedView,
|
|
@@ -6845,22 +8006,22 @@ function ViewControl(_ref8) {
|
|
|
6845
8006
|
var _excluded$3 = ["viewSpecs", "viewConfState", "resolvedViews", "onSetView", "onDeactivateView", "style"];
|
|
6846
8007
|
var _templateObject$3, _templateObject2$1;
|
|
6847
8008
|
var STATIC_NODE_ICONS = {
|
|
6848
|
-
'populacao-e-domicilios': /*#__PURE__*/React.createElement(Icon, {
|
|
8009
|
+
'populacao-e-domicilios': /*#__PURE__*/React$1.createElement(Icon, {
|
|
6849
8010
|
path: mdiAccountGroup
|
|
6850
8011
|
}),
|
|
6851
|
-
educacao: /*#__PURE__*/React.createElement(Icon, {
|
|
8012
|
+
educacao: /*#__PURE__*/React$1.createElement(Icon, {
|
|
6852
8013
|
path: mdiSchool
|
|
6853
8014
|
}),
|
|
6854
|
-
'infraestrutura-e-servicos-urbanos': /*#__PURE__*/React.createElement(Icon, {
|
|
8015
|
+
'infraestrutura-e-servicos-urbanos': /*#__PURE__*/React$1.createElement(Icon, {
|
|
6855
8016
|
path: mdiHomeCity
|
|
6856
8017
|
}),
|
|
6857
|
-
saude: /*#__PURE__*/React.createElement(Icon, {
|
|
8018
|
+
saude: /*#__PURE__*/React$1.createElement(Icon, {
|
|
6858
8019
|
path: mdiHospitalBox
|
|
6859
8020
|
}),
|
|
6860
|
-
'emergencias-climaticas': /*#__PURE__*/React.createElement(Icon, {
|
|
8021
|
+
'emergencias-climaticas': /*#__PURE__*/React$1.createElement(Icon, {
|
|
6861
8022
|
path: mdiEarth
|
|
6862
8023
|
}),
|
|
6863
|
-
'divisoes-territoriais': /*#__PURE__*/React.createElement(Icon, {
|
|
8024
|
+
'divisoes-territoriais': /*#__PURE__*/React$1.createElement(Icon, {
|
|
6864
8025
|
path: mdiMap
|
|
6865
8026
|
})
|
|
6866
8027
|
};
|
|
@@ -6883,7 +8044,7 @@ function Item(_ref) {
|
|
|
6883
8044
|
resolvedViews = _useContext.resolvedViews,
|
|
6884
8045
|
_onSetView = _useContext.onSetView,
|
|
6885
8046
|
_onDeactivateView = _useContext.onDeactivateView;
|
|
6886
|
-
return /*#__PURE__*/React.createElement(ViewControl, {
|
|
8047
|
+
return /*#__PURE__*/React$1.createElement(ViewControl, {
|
|
6887
8048
|
textSearch: textSearch,
|
|
6888
8049
|
path: Boolean(textSearch) ? node.path : null,
|
|
6889
8050
|
viewSpec: node,
|
|
@@ -6959,7 +8120,7 @@ var DirNav = makeDirNav({
|
|
|
6959
8120
|
viewSpecsById: viewSpecsById,
|
|
6960
8121
|
nodeId: node.id
|
|
6961
8122
|
});
|
|
6962
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8123
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
6963
8124
|
style: {
|
|
6964
8125
|
flexGrow: 1,
|
|
6965
8126
|
textAlign: 'left',
|
|
@@ -6969,11 +8130,11 @@ var DirNav = makeDirNav({
|
|
|
6969
8130
|
alignItems: 'center',
|
|
6970
8131
|
justifyContent: 'space-between'
|
|
6971
8132
|
}
|
|
6972
|
-
}, /*#__PURE__*/React.createElement(TextEllipsis, {
|
|
8133
|
+
}, /*#__PURE__*/React$1.createElement(TextEllipsis, {
|
|
6973
8134
|
style: {
|
|
6974
8135
|
flexShrink: 1
|
|
6975
8136
|
}
|
|
6976
|
-
}, node.label), activeViewsCount > 0 && /*#__PURE__*/React.createElement("span", {
|
|
8137
|
+
}, node.label), activeViewsCount > 0 && /*#__PURE__*/React$1.createElement("span", {
|
|
6977
8138
|
style: {
|
|
6978
8139
|
marginLeft: 6,
|
|
6979
8140
|
fontSize: '.8rem',
|
|
@@ -6996,9 +8157,9 @@ function ViewMenu(_ref4) {
|
|
|
6996
8157
|
return [spec.id, spec];
|
|
6997
8158
|
}));
|
|
6998
8159
|
}, [viewSpecs]);
|
|
6999
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8160
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
7000
8161
|
style: style
|
|
7001
|
-
}, /*#__PURE__*/React.createElement(ViewMenuContext.Provider, {
|
|
8162
|
+
}, /*#__PURE__*/React$1.createElement(ViewMenuContext.Provider, {
|
|
7002
8163
|
value: {
|
|
7003
8164
|
viewSpecsById: viewSpecsById,
|
|
7004
8165
|
viewConfState: viewConfState,
|
|
@@ -7006,7 +8167,7 @@ function ViewMenu(_ref4) {
|
|
|
7006
8167
|
onSetView: onSetView,
|
|
7007
8168
|
onDeactivateView: onDeactivateView
|
|
7008
8169
|
}
|
|
7009
|
-
}, /*#__PURE__*/React.createElement(DirNav, _extends({
|
|
8170
|
+
}, /*#__PURE__*/React$1.createElement(DirNav, _extends({
|
|
7010
8171
|
style: {
|
|
7011
8172
|
flexGrow: 1,
|
|
7012
8173
|
overflow: 'hidden'
|
|
@@ -7021,18 +8182,18 @@ function ViewMenu(_ref4) {
|
|
|
7021
8182
|
viewSpecsById: viewSpecsById,
|
|
7022
8183
|
nodeId: node.id
|
|
7023
8184
|
});
|
|
7024
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8185
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
7025
8186
|
style: {
|
|
7026
8187
|
position: 'relative'
|
|
7027
8188
|
}
|
|
7028
|
-
}, STATIC_NODE_ICONS[node.id], activeViewsCount > 0 && /*#__PURE__*/React.createElement(ActiveCounter, null, activeViewsCount));
|
|
8189
|
+
}, STATIC_NODE_ICONS[node.id], activeViewsCount > 0 && /*#__PURE__*/React$1.createElement(ActiveCounter, null, activeViewsCount));
|
|
7029
8190
|
}
|
|
7030
8191
|
}, props))));
|
|
7031
8192
|
}
|
|
7032
8193
|
|
|
7033
8194
|
function GeoReDUSLogoSymbol() {
|
|
7034
8195
|
var color = '#FFFFFF';
|
|
7035
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
8196
|
+
return /*#__PURE__*/React$1.createElement("svg", {
|
|
7036
8197
|
version: "1.1",
|
|
7037
8198
|
id: "Layer_1",
|
|
7038
8199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -7043,59 +8204,59 @@ function GeoReDUSLogoSymbol() {
|
|
|
7043
8204
|
x: "0px",
|
|
7044
8205
|
y: "0px",
|
|
7045
8206
|
viewBox: "0 0 117.98 129.33"
|
|
7046
|
-
}, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
8207
|
+
}, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("path", {
|
|
7047
8208
|
d: "M67.52,21.86l-3.1-0.07c0.06-2.71-0.94-5.28-2.81-7.23c-1.87-1.96-4.39-3.07-7.1-3.13l0.07-3.1 c3.54,0.08,6.83,1.53,9.27,4.08C66.29,14.97,67.6,18.32,67.52,21.86L67.52,21.86z"
|
|
7048
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8209
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7049
8210
|
d: "M75.86,22.04l-3.1-0.07C72.99,11.79,64.88,3.32,54.7,3.1L54.77,0C66.66,0.26,76.12,10.15,75.86,22.04L75.86,22.04z"
|
|
7050
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8211
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7051
8212
|
d: "M54.19,25.36c2.47,0.05,4.51-1.9,4.56-4.37c0.05-2.47-1.9-4.51-4.37-4.56c-2.47-0.05-4.51,1.9-4.56,4.37 C49.77,23.27,51.73,25.31,54.19,25.36L54.19,25.36z"
|
|
7052
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8213
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7053
8214
|
d: "M51.2,107.68c-3.84,0-6.97,3.13-6.97,6.97c0,3.84,3.13,6.97,6.97,6.97l0.23,0.02c0.03,0.01,4.8,0.42,12.67-6.99 c-7.86-7.49-12.62-6.99-12.67-6.98l-0.13,0.02L51.2,107.68L51.2,107.68z M51.65,124.74c-0.24,0-0.43-0.01-0.55-0.03 c-5.51-0.05-9.97-4.55-9.97-10.07c0-5.52,4.46-10.01,9.96-10.07c1.17-0.14,7.18-0.29,16.33,8.98l1.08,1.1l-1.09,1.09 C59.24,123.92,53.6,124.74,51.65,124.74L51.65,124.74z"
|
|
7054
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8215
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7055
8216
|
d: "M54.43,70.07c3.15,0,5.71-2.56,5.71-5.71c0-3.15-2.56-5.71-5.71-5.71c-3.15,0-5.71,2.56-5.71,5.71 C48.72,67.52,51.28,70.07,54.43,70.07L54.43,70.07z"
|
|
7056
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8217
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7057
8218
|
d: "M55.01,116.19c-23.03,0-41.76-18.73-41.76-41.76c0-23,18.7-41.71,41.69-41.71c23,0,41.71,18.71,41.71,41.71h-3.1 c0-21.29-17.32-38.61-38.61-38.61c-21.28,0-38.59,17.32-38.59,38.61c0,21.32,17.34,38.66,38.66,38.66V116.19L55.01,116.19z"
|
|
7058
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8219
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7059
8220
|
d: "M54.92,129.33C24.64,129.33,0,104.71,0,74.44c0-30.28,24.64-54.92,54.92-54.92v3.1C26.35,22.61,3.1,45.86,3.1,74.44 c0,28.56,23.25,51.8,51.82,51.8c28.56,0,51.8-23.24,51.8-51.8h3.1C109.82,104.71,85.19,129.33,54.92,129.33L54.92,129.33z"
|
|
7060
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8221
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7061
8222
|
d: "M54.86,102.79c-4.64,0-8.27-1.37-10.8-4.07c-3.85-4.1-3.69-9.79-3.66-10.46v-6.47c0-4.73,3.85-8.57,8.57-8.57h12.71 c4.73,0,8.57,3.85,8.57,8.57l0,0.07c-0.01,0.11-0.7,11.23-15.96,11.23v-3.1c11.94,0,12.81-7.59,12.87-8.25 c-0.03-3-2.47-5.42-5.47-5.42H48.97c-3.02,0-5.47,2.46-5.47,5.47l0,6.61c0,0.05-0.25,4.94,2.84,8.22 c1.92,2.04,4.79,3.07,8.53,3.07c13.91,0,25.22-11.33,25.22-25.25c0-13.91-11.31-25.22-25.22-25.22 c-13.88,0-24.76,11.08-24.76,25.22h-3.1c0-15.88,12.24-28.32,27.86-28.32c15.62,0,28.32,12.7,28.32,28.32 C83.18,90.07,70.48,102.79,54.86,102.79L54.86,102.79z"
|
|
7062
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8223
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7063
8224
|
d: "M108.31,55.76c-2.22,0-4.03-1.8-4.03-4.03c0-2.22,1.8-4.03,4.03-4.03c2.22,0,4.03,1.8,4.03,4.03 C112.34,53.95,110.53,55.76,108.31,55.76L108.31,55.76z M117.95,51.85c0-5.35-4.33-9.68-9.68-9.68c-5.35,0-9.68,4.33-9.68,9.68 c0,0-0.98,6.53,9.68,17.18C119.05,58.38,117.95,51.85,117.95,51.85L117.95,51.85z"
|
|
7064
|
-
}), /*#__PURE__*/React.createElement("polygon", {
|
|
8225
|
+
}), /*#__PURE__*/React$1.createElement("polygon", {
|
|
7065
8226
|
points: "97.94,83.14 89.42,83.14 89.42,91.66 97.94,91.66 97.94,83.14 "
|
|
7066
|
-
}), /*#__PURE__*/React.createElement("polygon", {
|
|
8227
|
+
}), /*#__PURE__*/React$1.createElement("polygon", {
|
|
7067
8228
|
points: "85.85,100.08 77.33,100.08 77.33,108.6 85.85,108.6 85.85,100.08 "
|
|
7068
|
-
})))), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
8229
|
+
})))), /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("path", {
|
|
7069
8230
|
fill: color,
|
|
7070
8231
|
d: "M67.52,21.86l-3.1-0.07c0.06-2.71-0.94-5.28-2.81-7.23c-1.87-1.96-4.39-3.07-7.1-3.13l0.07-3.1 c3.54,0.08,6.83,1.53,9.27,4.08C66.29,14.97,67.6,18.32,67.52,21.86L67.52,21.86z"
|
|
7071
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8232
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7072
8233
|
fill: color,
|
|
7073
8234
|
d: "M75.86,22.04l-3.1-0.07C72.99,11.79,64.88,3.32,54.7,3.1L54.77,0C66.66,0.26,76.12,10.15,75.86,22.04 L75.86,22.04z"
|
|
7074
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8235
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7075
8236
|
fill: color,
|
|
7076
8237
|
d: "M54.19,25.36c2.47,0.05,4.51-1.9,4.56-4.37c0.05-2.47-1.9-4.51-4.37-4.56c-2.47-0.05-4.51,1.9-4.56,4.37 C49.77,23.27,51.73,25.31,54.19,25.36L54.19,25.36z"
|
|
7077
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8238
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7078
8239
|
fill: color,
|
|
7079
8240
|
d: "M51.2,107.68c-3.84,0-6.97,3.13-6.97,6.97c0,3.84,3.13,6.97,6.97,6.97l0.23,0.02 c0.03,0.01,4.8,0.42,12.67-6.99c-7.86-7.49-12.62-6.99-12.67-6.98l-0.13,0.02L51.2,107.68L51.2,107.68z M51.65,124.74 c-0.24,0-0.43-0.01-0.55-0.03c-5.51-0.05-9.97-4.55-9.97-10.07c0-5.52,4.46-10.01,9.96-10.07c1.17-0.14,7.18-0.29,16.33,8.98 l1.08,1.1l-1.09,1.09C59.24,123.92,53.6,124.74,51.65,124.74L51.65,124.74z"
|
|
7080
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8241
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7081
8242
|
fill: color,
|
|
7082
8243
|
d: "M54.43,70.07c3.15,0,5.71-2.56,5.71-5.71c0-3.15-2.56-5.71-5.71-5.71c-3.15,0-5.71,2.56-5.71,5.71 C48.72,67.52,51.28,70.07,54.43,70.07L54.43,70.07z"
|
|
7083
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8244
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7084
8245
|
fill: color,
|
|
7085
8246
|
d: "M55.01,116.19c-23.03,0-41.76-18.73-41.76-41.76c0-23,18.7-41.71,41.69-41.71c23,0,41.71,18.71,41.71,41.71 h-3.1c0-21.29-17.32-38.61-38.61-38.61c-21.28,0-38.59,17.32-38.59,38.61c0,21.32,17.34,38.66,38.66,38.66V116.19L55.01,116.19z"
|
|
7086
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8247
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7087
8248
|
fill: color,
|
|
7088
8249
|
d: "M54.92,129.33C24.64,129.33,0,104.71,0,74.44c0-30.28,24.64-54.92,54.92-54.92v3.1 C26.35,22.61,3.1,45.86,3.1,74.44c0,28.56,23.25,51.8,51.82,51.8c28.56,0,51.8-23.24,51.8-51.8h3.1 C109.82,104.71,85.19,129.33,54.92,129.33L54.92,129.33z"
|
|
7089
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8250
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7090
8251
|
fill: color,
|
|
7091
8252
|
d: "M54.86,102.79c-4.64,0-8.27-1.37-10.8-4.07c-3.85-4.1-3.69-9.79-3.66-10.46v-6.47 c0-4.73,3.85-8.57,8.57-8.57h12.71c4.73,0,8.57,3.85,8.57,8.57l0,0.07c-0.01,0.11-0.7,11.23-15.96,11.23v-3.1 c11.94,0,12.81-7.59,12.87-8.25c-0.03-3-2.47-5.42-5.47-5.42H48.97c-3.02,0-5.47,2.46-5.47,5.47l0,6.61 c0,0.05-0.25,4.94,2.84,8.22c1.92,2.04,4.79,3.07,8.53,3.07c13.91,0,25.22-11.33,25.22-25.25c0-13.91-11.31-25.22-25.22-25.22 c-13.88,0-24.76,11.08-24.76,25.22h-3.1c0-15.88,12.24-28.32,27.86-28.32c15.62,0,28.32,12.7,28.32,28.32 C83.18,90.07,70.48,102.79,54.86,102.79L54.86,102.79z"
|
|
7092
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8253
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7093
8254
|
fill: color,
|
|
7094
8255
|
d: "M108.31,55.76c-2.22,0-4.03-1.8-4.03-4.03c0-2.22,1.8-4.03,4.03-4.03c2.22,0,4.03,1.8,4.03,4.03 C112.34,53.95,110.53,55.76,108.31,55.76L108.31,55.76z M117.95,51.85c0-5.35-4.33-9.68-9.68-9.68c-5.35,0-9.68,4.33-9.68,9.68 c0,0-0.98,6.53,9.68,17.18C119.05,58.38,117.95,51.85,117.95,51.85L117.95,51.85z"
|
|
7095
|
-
}), /*#__PURE__*/React.createElement("polygon", {
|
|
8256
|
+
}), /*#__PURE__*/React$1.createElement("polygon", {
|
|
7096
8257
|
fill: color,
|
|
7097
8258
|
points: "97.94,83.14 89.42,83.14 89.42,91.66 97.94,91.66 97.94,83.14 "
|
|
7098
|
-
}), /*#__PURE__*/React.createElement("polygon", {
|
|
8259
|
+
}), /*#__PURE__*/React$1.createElement("polygon", {
|
|
7099
8260
|
fill: color,
|
|
7100
8261
|
points: "85.85,100.08 77.33,100.08 77.33,108.6 85.85,108.6 85.85,100.08 "
|
|
7101
8262
|
})))));
|
|
@@ -7103,7 +8264,7 @@ function GeoReDUSLogoSymbol() {
|
|
|
7103
8264
|
|
|
7104
8265
|
function GeoReDUSLogoText() {
|
|
7105
8266
|
var color = '#FFFFFF';
|
|
7106
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
8267
|
+
return /*#__PURE__*/React$1.createElement("svg", {
|
|
7107
8268
|
version: "1.1",
|
|
7108
8269
|
id: "Layer_1",
|
|
7109
8270
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -7114,35 +8275,35 @@ function GeoReDUSLogoText() {
|
|
|
7114
8275
|
x: "0px",
|
|
7115
8276
|
y: "0px",
|
|
7116
8277
|
viewBox: "0 0 215.51 129.33"
|
|
7117
|
-
}, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
8278
|
+
}, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("path", {
|
|
7118
8279
|
fill: color,
|
|
7119
8280
|
d: "M22.83,69.59c-7.32,0-12.95-1.95-16.91-5.86C1.98,59.82,0,53.76,0,45.54c0-5.47,0.95-9.97,2.85-13.52 c1.9-3.55,4.65-6.19,8.27-7.93c3.61-1.74,7.95-2.61,13.01-2.61c3.03,0,5.87,0.34,8.54,1.02c2.67,0.68,5.03,1.72,7.08,3.12 c2.06,1.4,3.66,3.15,4.81,5.25c1.15,2.1,1.73,4.6,1.73,7.49H36.05c0-1.4-0.3-2.64-0.91-3.73c-0.61-1.08-1.46-1.99-2.54-2.71 c-1.08-0.72-2.33-1.26-3.73-1.63c-1.4-0.36-2.87-0.54-4.4-0.54c-2.35,0-4.4,0.3-6.17,0.91c-1.76,0.61-3.22,1.54-4.37,2.78 c-1.15,1.24-2.02,2.79-2.61,4.64c-0.59,1.85-0.88,4-0.88,6.44v2.03c0,3.39,0.5,6.17,1.49,8.33c0.99,2.17,2.48,3.78,4.47,4.85 c1.99,1.06,4.45,1.59,7.39,1.59c2.44,0,4.6-0.37,6.47-1.12c1.87-0.75,3.34-1.82,4.4-3.22c1.06-1.4,1.59-3.12,1.59-5.15v-0.47 H22.36v-7.72h23.92v25.14h-6.64l-0.88-5.01c-1.36,1.31-2.81,2.39-4.37,3.25c-1.56,0.86-3.29,1.5-5.18,1.93 C27.31,69.38,25.18,69.59,22.83,69.59z"
|
|
7120
|
-
})), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
8281
|
+
})), /*#__PURE__*/React$1.createElement("g", null, /*#__PURE__*/React$1.createElement("path", {
|
|
7121
8282
|
fill: color,
|
|
7122
8283
|
d: "M109.03,69.5c-3.67,0-6.78-0.63-9.33-1.89c-2.56-1.26-4.5-3.2-5.82-5.82c-1.32-2.62-1.98-5.91-1.98-9.88 c0-4.05,0.66-7.36,1.98-9.94c1.32-2.58,3.26-4.5,5.82-5.75c2.56-1.26,5.67-1.89,9.33-1.89c3.75,0,6.89,0.63,9.43,1.89 c2.54,1.26,4.47,3.18,5.79,5.75c1.32,2.58,1.98,5.89,1.98,9.94c0,3.96-0.66,7.26-1.98,9.88c-1.32,2.62-3.25,4.56-5.79,5.82 C115.93,68.87,112.78,69.5,109.03,69.5z M109.03,62.6c1.96,0,3.53-0.36,4.7-1.09c1.17-0.72,2.04-1.83,2.59-3.33 c0.55-1.49,0.83-3.32,0.83-5.5v-1.53c0-2.17-0.28-4.01-0.83-5.5c-0.55-1.49-1.42-2.61-2.59-3.36c-1.17-0.75-2.74-1.12-4.7-1.12 c-1.92,0-3.46,0.37-4.64,1.12c-1.17,0.75-2.04,1.87-2.59,3.36c-0.55,1.49-0.83,3.32-0.83,5.5v1.53c0,2.17,0.28,4.01,0.83,5.5 c0.55,1.49,1.42,2.6,2.59,3.33C105.57,62.23,107.12,62.6,109.03,62.6z"
|
|
7123
|
-
})), /*#__PURE__*/React.createElement("path", {
|
|
8284
|
+
})), /*#__PURE__*/React$1.createElement("path", {
|
|
7124
8285
|
fill: color,
|
|
7125
8286
|
d: "M70.76,106.24c0-1.79-0.54-3.3-1.63-4.52c-1.09-1.22-2.78-1.83-5.09-1.83c-2.33,0-4.13,0.65-5.41,1.96 c-1.28,1.31-2.08,3.11-2.42,5.39l14.51-0.13C70.75,106.91,70.76,106.62,70.76,106.24L70.76,106.24z M72.76,94.74 c2.25,1.4,3.91,3.23,4.99,5.49c1.08,2.26,1.61,4.71,1.61,7.35c0,1.79-0.27,3.62-0.81,5.47l-22.06,0.17 c0.56,2.08,1.63,3.69,3.21,4.83c1.58,1.14,3.63,1.71,6.16,1.71c1.5,0,3.09-0.17,4.77-0.5c1.68-0.34,3.36-0.83,5.04-1.48l1.71,6.95 c-1.59,0.67-3.6,1.23-6.04,1.68c-2.44,0.45-4.66,0.67-6.65,0.67c-5.44,0-9.66-1.42-12.68-4.25c-3.01-2.83-4.52-7.19-4.52-13.08 c0-3.67,0.67-6.79,2-9.35c1.33-2.56,3.26-4.5,5.77-5.81c2.52-1.31,5.55-1.96,9.08-1.96C67.7,92.64,70.51,93.34,72.76,94.74 L72.76,94.74z"
|
|
7126
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8287
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7127
8288
|
fill: color,
|
|
7128
8289
|
d: "M77.81,47.77c0-1.86-0.56-3.42-1.69-4.69c-1.13-1.27-2.89-1.9-5.28-1.9c-2.42,0-4.29,0.68-5.61,2.04 c-1.32,1.36-2.16,3.22-2.51,5.59l15.05-0.14C77.8,48.47,77.81,48.16,77.81,47.77L77.81,47.77z M79.89,35.84 c2.33,1.45,4.06,3.35,5.17,5.7c1.12,2.35,1.67,4.89,1.67,7.63c0,1.86-0.28,3.75-0.84,5.68l-22.89,0.17 c0.58,2.16,1.69,3.83,3.33,5.02c1.64,1.18,3.77,1.78,6.39,1.78c1.56,0,3.21-0.17,4.95-0.52c1.74-0.35,3.48-0.86,5.23-1.53 l1.78,7.21c-1.65,0.7-3.74,1.28-6.27,1.74c-2.53,0.46-4.83,0.7-6.9,0.7c-5.64,0-10.03-1.47-13.15-4.41 c-3.12-2.94-4.69-7.46-4.69-13.57c0-3.81,0.69-7.04,2.07-9.7c1.38-2.66,3.38-4.67,5.99-6.03c2.61-1.36,5.75-2.04,9.42-2.04 C74.64,33.66,77.55,34.39,79.89,35.84L79.89,35.84z"
|
|
7129
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8290
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7130
8291
|
fill: color,
|
|
7131
8292
|
d: "M103.7,118.77c3.36,0,6.23-0.66,8.61-1.98c2.38-1.32,4.2-3.24,5.44-5.76c1.24-2.52,1.86-5.57,1.86-9.15 c0-5.44-1.32-9.5-3.95-12.17c-2.63-2.67-6.52-4-11.67-3.98l-7.72,0.07v32.97H103.7L103.7,118.77z M87.38,78.2h16.75 c8.13,0,14.26,1.93,18.4,5.78c4.14,3.85,6.21,9.75,6.21,17.69c0,5.01-1.04,9.37-3.12,13.08c-2.08,3.7-5.02,6.56-8.81,8.56 c-3.79,2-8.19,3-13.18,3l-16.25,0.07V78.2L87.38,78.2z"
|
|
7132
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8293
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7133
8294
|
fill: color,
|
|
7134
8295
|
d: "M141.29,122.12c-3.1-3.34-4.65-8.17-4.65-14.51V78.17h8.93v28.84c0,8.1,3.54,12.16,10.61,12.16 c6.72,0,10.07-3.88,10.07-11.65V78.17h8.9v28.68c0,13.52-6.51,20.28-19.54,20.28C149.16,127.13,144.39,125.46,141.29,122.12 L141.29,122.12z"
|
|
7135
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8296
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7136
8297
|
fill: color,
|
|
7137
8298
|
d: "M190.97,126.02c-2.31-0.6-4.95-1.6-7.92-2.99l3.09-7.92c2.62,1.32,4.82,2.23,6.61,2.72 c1.79,0.49,3.64,0.74,5.54,0.74c2.95,0,5.11-0.55,6.48-1.66c1.36-1.11,2.05-2.59,2.05-4.45c0-1.12-0.37-2.08-1.12-2.89 c-0.75-0.81-1.69-1.48-2.82-2.01c-1.13-0.54-2.73-1.2-4.79-1.98c-2.87-1.07-5.2-2.1-7.02-3.07c-1.81-0.97-3.36-2.34-4.65-4.11 c-1.29-1.77-1.93-4.02-1.93-6.75c0-3.18,0.78-5.83,2.35-7.96c1.57-2.13,3.64-3.69,6.21-4.68c2.57-1,5.42-1.49,8.53-1.49 c2.26,0,4.39,0.22,6.38,0.65c1.99,0.44,3.96,1.05,5.91,1.83l-2.85,7.72l-0.84-0.3c-1.39-0.54-2.69-0.95-3.89-1.24 c-1.21-0.29-2.66-0.44-4.37-0.44c-2.19,0-4.06,0.44-5.61,1.31c-1.55,0.87-2.32,2.24-2.32,4.1c0,0.96,0.33,1.8,0.99,2.52 c0.66,0.72,1.5,1.33,2.52,1.83s2.45,1.11,4.28,1.83c2.84,1.14,5.18,2.23,7.02,3.26c1.83,1.03,3.41,2.5,4.73,4.42 c1.32,1.91,1.98,4.34,1.98,7.27c0,3-0.68,5.6-2.03,7.81c-1.36,2.21-3.32,3.9-5.89,5.09c-2.57,1.19-5.67,1.78-9.3,1.78 C195.71,126.93,193.27,126.62,190.97,126.02L190.97,126.02z"
|
|
7138
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
8299
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
7139
8300
|
fill: color,
|
|
7140
8301
|
d: "M30.67,104.39c2.82-1.08,5.04-2.68,6.66-4.82c1.62-2.14,2.45-4.67,2.47-7.61c0-2.95-0.65-5.46-1.95-7.52 c-1.3-2.06-3.14-3.62-5.52-4.68c-2.38-1.06-5.18-1.6-8.38-1.6H6.96v48.15h8.93l-0.02-11.2l-0.01-30.03l5.51-0.03 c2.93-0.04,5.19,0.57,6.77,1.83c1.58,1.26,2.37,3.15,2.37,5.66c0,2.48-0.87,4.39-2.6,5.73c-1.63,1.25-3.88,1.91-6.73,1.98h-0.13 v5.32l13.36,20.75h10.64L30.67,104.39L30.67,104.39z"
|
|
7141
8302
|
}))));
|
|
7142
8303
|
}
|
|
7143
8304
|
|
|
7144
8305
|
var _excluded2 = ["text", "label", "children", "copiedMessage"];
|
|
7145
|
-
var DEFAULT_ICON = /*#__PURE__*/React.createElement(Icon, {
|
|
8306
|
+
var DEFAULT_ICON = /*#__PURE__*/React$1.createElement(Icon, {
|
|
7146
8307
|
path: mdiContentCopy,
|
|
7147
8308
|
size: "18px"
|
|
7148
8309
|
});
|
|
@@ -7159,14 +8320,14 @@ function CopyToClipboardIconButton(_ref2) {
|
|
|
7159
8320
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7160
8321
|
copied = _useState4[0],
|
|
7161
8322
|
setCopied = _useState4[1];
|
|
7162
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover.Root, {
|
|
8323
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Popover.Root, {
|
|
7163
8324
|
open: copied
|
|
7164
|
-
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
8325
|
+
}, /*#__PURE__*/React$1.createElement(CopyToClipboard, {
|
|
7165
8326
|
text: text
|
|
7166
|
-
}, /*#__PURE__*/React.createElement(Popover.Trigger, null, /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
8327
|
+
}, /*#__PURE__*/React$1.createElement(Popover.Trigger, null, /*#__PURE__*/React$1.createElement(IconButton, _extends({
|
|
7167
8328
|
asChild: true,
|
|
7168
8329
|
radius: "full"
|
|
7169
|
-
}, props), /*#__PURE__*/React.createElement("button", {
|
|
8330
|
+
}, props), /*#__PURE__*/React$1.createElement("button", {
|
|
7170
8331
|
onClick: function onClick() {
|
|
7171
8332
|
setCopied(true);
|
|
7172
8333
|
setTimeout(function () {
|
|
@@ -7175,10 +8336,10 @@ function CopyToClipboardIconButton(_ref2) {
|
|
|
7175
8336
|
});
|
|
7176
8337
|
}, 2500);
|
|
7177
8338
|
}
|
|
7178
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
8339
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
7179
8340
|
content: label,
|
|
7180
8341
|
sideOffset: 10
|
|
7181
|
-
}, children))))), /*#__PURE__*/React.createElement(Popover.Content, {
|
|
8342
|
+
}, children))))), /*#__PURE__*/React$1.createElement(Popover.Content, {
|
|
7182
8343
|
align: "center",
|
|
7183
8344
|
size: "1",
|
|
7184
8345
|
style: {
|
|
@@ -7198,39 +8359,39 @@ var ShareButtonBar = function ShareButtonBar(_ref) {
|
|
|
7198
8359
|
var _useLocation = useLocation(),
|
|
7199
8360
|
href = _useLocation.href;
|
|
7200
8361
|
var shareUrl = url ? url : href;
|
|
7201
|
-
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
8362
|
+
return /*#__PURE__*/React$1.createElement(Container, _extends({
|
|
7202
8363
|
direction: "row",
|
|
7203
8364
|
gap: "3"
|
|
7204
|
-
}, props), /*#__PURE__*/React.createElement(CopyToClipboardIconButton, {
|
|
8365
|
+
}, props), /*#__PURE__*/React$1.createElement(CopyToClipboardIconButton, {
|
|
7205
8366
|
label: "Copiar link de compartilhamento",
|
|
7206
8367
|
copiedMessage: "Link copiado para \xE1rea de transfer\xEAncia",
|
|
7207
8368
|
text: shareUrl
|
|
7208
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8369
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
7209
8370
|
path: mdiLinkVariant,
|
|
7210
8371
|
size: "18px"
|
|
7211
|
-
})), /*#__PURE__*/React.createElement(LinkedinShareButton, {
|
|
8372
|
+
})), /*#__PURE__*/React$1.createElement(LinkedinShareButton, {
|
|
7212
8373
|
url: shareUrl
|
|
7213
|
-
}, /*#__PURE__*/React.createElement(LinkedinIcon, {
|
|
8374
|
+
}, /*#__PURE__*/React$1.createElement(LinkedinIcon, {
|
|
7214
8375
|
size: 32,
|
|
7215
8376
|
round: true
|
|
7216
|
-
})), /*#__PURE__*/React.createElement(EmailShareButton, {
|
|
8377
|
+
})), /*#__PURE__*/React$1.createElement(EmailShareButton, {
|
|
7217
8378
|
url: shareUrl
|
|
7218
|
-
}, /*#__PURE__*/React.createElement(EmailIcon, {
|
|
8379
|
+
}, /*#__PURE__*/React$1.createElement(EmailIcon, {
|
|
7219
8380
|
size: 32,
|
|
7220
8381
|
round: true
|
|
7221
|
-
})), /*#__PURE__*/React.createElement(FacebookShareButton, {
|
|
8382
|
+
})), /*#__PURE__*/React$1.createElement(FacebookShareButton, {
|
|
7222
8383
|
url: shareUrl
|
|
7223
|
-
}, /*#__PURE__*/React.createElement(FacebookIcon, {
|
|
8384
|
+
}, /*#__PURE__*/React$1.createElement(FacebookIcon, {
|
|
7224
8385
|
size: 32,
|
|
7225
8386
|
round: true
|
|
7226
|
-
})), /*#__PURE__*/React.createElement(TwitterShareButton, {
|
|
8387
|
+
})), /*#__PURE__*/React$1.createElement(TwitterShareButton, {
|
|
7227
8388
|
url: shareUrl
|
|
7228
|
-
}, /*#__PURE__*/React.createElement(TwitterIcon, {
|
|
8389
|
+
}, /*#__PURE__*/React$1.createElement(TwitterIcon, {
|
|
7229
8390
|
size: 32,
|
|
7230
8391
|
round: true
|
|
7231
|
-
})), /*#__PURE__*/React.createElement(WhatsappShareButton, {
|
|
8392
|
+
})), /*#__PURE__*/React$1.createElement(WhatsappShareButton, {
|
|
7232
8393
|
url: shareUrl
|
|
7233
|
-
}, /*#__PURE__*/React.createElement(WhatsappIcon, {
|
|
8394
|
+
}, /*#__PURE__*/React$1.createElement(WhatsappIcon, {
|
|
7234
8395
|
size: 32,
|
|
7235
8396
|
round: true
|
|
7236
8397
|
})));
|
|
@@ -7272,10 +8433,10 @@ function SharePanel(_ref) {
|
|
|
7272
8433
|
// throwOnError: process.env.NODE_ENV !== 'production',
|
|
7273
8434
|
// })
|
|
7274
8435
|
|
|
7275
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dialog.Title, null, "Compartilhar"), /*#__PURE__*/React.createElement(Flex, {
|
|
8436
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Dialog.Title, null, "Compartilhar"), /*#__PURE__*/React$1.createElement(Flex, {
|
|
7276
8437
|
direction: "row",
|
|
7277
8438
|
gap: "4"
|
|
7278
|
-
}, /*#__PURE__*/React.createElement(ShareButtonBar, null)));
|
|
8439
|
+
}, /*#__PURE__*/React$1.createElement(ShareButtonBar, null)));
|
|
7279
8440
|
}
|
|
7280
8441
|
|
|
7281
8442
|
var _templateObject$1;
|
|
@@ -7296,7 +8457,7 @@ function LeftPanel(_ref) {
|
|
|
7296
8457
|
syncedMapsRef = _ref.syncedMapsRef,
|
|
7297
8458
|
mapContainerRef = _ref.mapContainerRef;
|
|
7298
8459
|
var dialogs = useDialogs();
|
|
7299
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8460
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
7300
8461
|
style: {
|
|
7301
8462
|
position: 'fixed',
|
|
7302
8463
|
zIndex: 2,
|
|
@@ -7306,7 +8467,7 @@ function LeftPanel(_ref) {
|
|
|
7306
8467
|
}
|
|
7307
8468
|
// onMouseEnter={() => setMouseIsOver(true)}
|
|
7308
8469
|
// onMouseLeave={() => setMouseIsOver(false)}
|
|
7309
|
-
}, /*#__PURE__*/React.createElement(Flex
|
|
8470
|
+
}, /*#__PURE__*/React$1.createElement(Flex
|
|
7310
8471
|
//
|
|
7311
8472
|
// Use flex for responsive positioning
|
|
7312
8473
|
//
|
|
@@ -7329,7 +8490,7 @@ function LeftPanel(_ref) {
|
|
|
7329
8490
|
md: '20px'
|
|
7330
8491
|
}
|
|
7331
8492
|
}
|
|
7332
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
8493
|
+
}, /*#__PURE__*/React$1.createElement(IconButton, {
|
|
7333
8494
|
size: {
|
|
7334
8495
|
xs: '3',
|
|
7335
8496
|
md: '1'
|
|
@@ -7345,16 +8506,16 @@ function LeftPanel(_ref) {
|
|
|
7345
8506
|
return onSetOpen(!open);
|
|
7346
8507
|
}
|
|
7347
8508
|
// variant="surface"
|
|
7348
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
8509
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
7349
8510
|
content: open ? 'Fechar painel' : 'Abrir painel'
|
|
7350
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8511
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
7351
8512
|
style: {
|
|
7352
8513
|
transition: 'transform .2s ease-out',
|
|
7353
8514
|
transform: "rotateZ(".concat(open ? '0' : '180', "deg)")
|
|
7354
8515
|
},
|
|
7355
8516
|
path: mdiChevronLeft,
|
|
7356
8517
|
size: "16px"
|
|
7357
|
-
})))), /*#__PURE__*/React.createElement(Flex, {
|
|
8518
|
+
})))), /*#__PURE__*/React$1.createElement(Flex, {
|
|
7358
8519
|
direction: "column",
|
|
7359
8520
|
gap: "0",
|
|
7360
8521
|
height: "100vh",
|
|
@@ -7367,7 +8528,7 @@ function LeftPanel(_ref) {
|
|
|
7367
8528
|
onClick: function onClick(e) {
|
|
7368
8529
|
return onSetOpen(true);
|
|
7369
8530
|
}
|
|
7370
|
-
}, /*#__PURE__*/React.createElement(Flex, {
|
|
8531
|
+
}, /*#__PURE__*/React$1.createElement(Flex, {
|
|
7371
8532
|
px: "12px",
|
|
7372
8533
|
py: "10px",
|
|
7373
8534
|
height: HEADER_HEIGHT,
|
|
@@ -7379,15 +8540,15 @@ function LeftPanel(_ref) {
|
|
|
7379
8540
|
flexShrink: 0,
|
|
7380
8541
|
flexGrow: 0
|
|
7381
8542
|
}
|
|
7382
|
-
}, /*#__PURE__*/React.createElement(LogoContainer, {
|
|
8543
|
+
}, /*#__PURE__*/React$1.createElement(LogoContainer, {
|
|
7383
8544
|
direction: "row",
|
|
7384
8545
|
gap: "8px"
|
|
7385
|
-
}, /*#__PURE__*/React.createElement(GeoReDUSLogoSymbol, null), /*#__PURE__*/React.createElement("div", {
|
|
8546
|
+
}, /*#__PURE__*/React$1.createElement(GeoReDUSLogoSymbol, null), /*#__PURE__*/React$1.createElement("div", {
|
|
7386
8547
|
style: {
|
|
7387
8548
|
transition: open ? 'opacity .7s ease-out' : 'opacity .1s ease-out',
|
|
7388
8549
|
opacity: open ? 1 : 0
|
|
7389
8550
|
}
|
|
7390
|
-
}, /*#__PURE__*/React.createElement(GeoReDUSLogoText, null)))), Array.isArray(viewSpecs) ? /*#__PURE__*/React.createElement(ViewMenu, {
|
|
8551
|
+
}, /*#__PURE__*/React$1.createElement(GeoReDUSLogoText, null)))), Array.isArray(viewSpecs) ? /*#__PURE__*/React$1.createElement(ViewMenu, {
|
|
7391
8552
|
style: {
|
|
7392
8553
|
flexGrow: 1,
|
|
7393
8554
|
height: '1px'
|
|
@@ -7418,7 +8579,7 @@ function LeftPanel(_ref) {
|
|
|
7418
8579
|
payload: viewId
|
|
7419
8580
|
});
|
|
7420
8581
|
},
|
|
7421
|
-
sideBarBottom: /*#__PURE__*/React.createElement(Flex, {
|
|
8582
|
+
sideBarBottom: /*#__PURE__*/React$1.createElement(Flex, {
|
|
7422
8583
|
style: {
|
|
7423
8584
|
flexGrow: 1
|
|
7424
8585
|
},
|
|
@@ -7427,7 +8588,7 @@ function LeftPanel(_ref) {
|
|
|
7427
8588
|
gap: "3",
|
|
7428
8589
|
justifyContent: "flex-end",
|
|
7429
8590
|
alignItems: "center"
|
|
7430
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
8591
|
+
}, /*#__PURE__*/React$1.createElement(IconButton, {
|
|
7431
8592
|
variant: "soft",
|
|
7432
8593
|
size: "3",
|
|
7433
8594
|
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -7435,7 +8596,7 @@ function LeftPanel(_ref) {
|
|
|
7435
8596
|
while (1) switch (_context.prev = _context.next) {
|
|
7436
8597
|
case 0:
|
|
7437
8598
|
_context.next = 2;
|
|
7438
|
-
return dialogs.view(/*#__PURE__*/React.createElement(SharePanel, {
|
|
8599
|
+
return dialogs.view(/*#__PURE__*/React$1.createElement(SharePanel, {
|
|
7439
8600
|
mapContainerRef: mapContainerRef,
|
|
7440
8601
|
syncedMapsRef: syncedMapsRef
|
|
7441
8602
|
}));
|
|
@@ -7445,40 +8606,40 @@ function LeftPanel(_ref) {
|
|
|
7445
8606
|
}
|
|
7446
8607
|
}, _callee);
|
|
7447
8608
|
}))
|
|
7448
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
8609
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
7449
8610
|
content: "Compartilhar"
|
|
7450
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8611
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
7451
8612
|
path: mdiShareVariantOutline,
|
|
7452
8613
|
size: "24px"
|
|
7453
|
-
}))), /*#__PURE__*/React.createElement(IconButton, {
|
|
8614
|
+
}))), /*#__PURE__*/React$1.createElement(IconButton, {
|
|
7454
8615
|
variant: "soft",
|
|
7455
8616
|
size: "3",
|
|
7456
8617
|
asChild: true
|
|
7457
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
8618
|
+
}, /*#__PURE__*/React$1.createElement("a", {
|
|
7458
8619
|
href: "https://www.redus.org.br/georedus-rede-de-dados-urbanos/formularios/cbf766bb-9a74-4bc5-897a-70b9151afbdb",
|
|
7459
8620
|
target: "_blank",
|
|
7460
8621
|
rel: "noreferrer nofollow"
|
|
7461
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
8622
|
+
}, /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
7462
8623
|
content: "D\xFAvidas e sugest\xF5es"
|
|
7463
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8624
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
7464
8625
|
path: mdiForumOutline,
|
|
7465
8626
|
size: "24px"
|
|
7466
8627
|
})))))
|
|
7467
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
8628
|
+
}) : /*#__PURE__*/React$1.createElement("div", {
|
|
7468
8629
|
style: {
|
|
7469
8630
|
flexGrow: 1,
|
|
7470
8631
|
position: 'relative'
|
|
7471
8632
|
}
|
|
7472
|
-
}, /*#__PURE__*/React.createElement(LoadingOverlay, {
|
|
8633
|
+
}, /*#__PURE__*/React$1.createElement(LoadingOverlay, {
|
|
7473
8634
|
message: null
|
|
7474
|
-
})), /*#__PURE__*/React.createElement(Flex, {
|
|
8635
|
+
})), /*#__PURE__*/React$1.createElement(Flex, {
|
|
7475
8636
|
p: "2",
|
|
7476
8637
|
style: {
|
|
7477
8638
|
backgroundColor: 'white'
|
|
7478
8639
|
},
|
|
7479
8640
|
direction: "row",
|
|
7480
8641
|
justifyContent: "center"
|
|
7481
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
8642
|
+
}, /*#__PURE__*/React$1.createElement("img", {
|
|
7482
8643
|
style: {
|
|
7483
8644
|
transition: 'opacity .1s ease-out',
|
|
7484
8645
|
opacity: open ? 1 : 0,
|
|
@@ -7502,7 +8663,7 @@ var ViewLayoutSortable = makeSortableMultiList({
|
|
|
7502
8663
|
//
|
|
7503
8664
|
Portal: function Portal$1(_ref) {
|
|
7504
8665
|
var children = _ref.children;
|
|
7505
|
-
return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Theme, null, children));
|
|
8666
|
+
return /*#__PURE__*/React$1.createElement(Portal, null, /*#__PURE__*/React$1.createElement(Theme, null, children));
|
|
7506
8667
|
},
|
|
7507
8668
|
Item: function Item(_ref2) {
|
|
7508
8669
|
var dragHandleProps = _ref2.dragHandleProps,
|
|
@@ -7518,7 +8679,7 @@ var ViewLayoutSortable = makeSortableMultiList({
|
|
|
7518
8679
|
// ? 'rgba(0, 0, 0, 0.35) 0px 5px 15px;'
|
|
7519
8680
|
// : 'none'
|
|
7520
8681
|
|
|
7521
|
-
return /*#__PURE__*/React.createElement(Flex, {
|
|
8682
|
+
return /*#__PURE__*/React$1.createElement(Flex, {
|
|
7522
8683
|
direction: "row",
|
|
7523
8684
|
alignItems: "center",
|
|
7524
8685
|
gap: "0",
|
|
@@ -7528,7 +8689,7 @@ var ViewLayoutSortable = makeSortableMultiList({
|
|
|
7528
8689
|
transform: isDragOverlay ? 'scale(1.05)' : '',
|
|
7529
8690
|
zIndex: isDragOverlay ? 999 : 0
|
|
7530
8691
|
}
|
|
7531
|
-
}, /*#__PURE__*/React.createElement("div", _extends({}, dragHandleProps, {
|
|
8692
|
+
}, /*#__PURE__*/React$1.createElement("div", _extends({}, dragHandleProps, {
|
|
7532
8693
|
style: {
|
|
7533
8694
|
cursor: isDragging ? 'grabbing' : 'grab',
|
|
7534
8695
|
background: 'white',
|
|
@@ -7539,15 +8700,15 @@ var ViewLayoutSortable = makeSortableMultiList({
|
|
|
7539
8700
|
borderBottomLeftRadius: DRAG_HANDLE_BORDER_RADIUS,
|
|
7540
8701
|
height: CONTROL_HEIGHT
|
|
7541
8702
|
}
|
|
7542
|
-
}), /*#__PURE__*/React.createElement(Icon, {
|
|
8703
|
+
}), /*#__PURE__*/React$1.createElement(Icon, {
|
|
7543
8704
|
path: mdiDragVertical,
|
|
7544
8705
|
size: "24px"
|
|
7545
|
-
})), /*#__PURE__*/React.createElement(Flex, {
|
|
8706
|
+
})), /*#__PURE__*/React$1.createElement(Flex, {
|
|
7546
8707
|
direction: "column",
|
|
7547
8708
|
style: {
|
|
7548
8709
|
flexGrow: 1
|
|
7549
8710
|
}
|
|
7550
|
-
}, /*#__PURE__*/React.createElement(ViewControl, {
|
|
8711
|
+
}, /*#__PURE__*/React$1.createElement(ViewControl, {
|
|
7551
8712
|
style: {
|
|
7552
8713
|
height: CONTROL_HEIGHT
|
|
7553
8714
|
},
|
|
@@ -7598,7 +8759,7 @@ var ViewLayoutSortable = makeSortableMultiList({
|
|
|
7598
8759
|
var children = _ref3.children;
|
|
7599
8760
|
_ref3.dragHandleProps;
|
|
7600
8761
|
var item = _ref3.item;
|
|
7601
|
-
return /*#__PURE__*/React.createElement(Flex, {
|
|
8762
|
+
return /*#__PURE__*/React$1.createElement(Flex, {
|
|
7602
8763
|
direction: "column",
|
|
7603
8764
|
width: "280px"
|
|
7604
8765
|
// pb="30px"
|
|
@@ -7607,11 +8768,11 @@ var ViewLayoutSortable = makeSortableMultiList({
|
|
|
7607
8768
|
border: 'dashed 1px var(--accent-6)',
|
|
7608
8769
|
borderRadius: "".concat(DRAG_HANDLE_BORDER_RADIUS, "px")
|
|
7609
8770
|
}
|
|
7610
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
8771
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
7611
8772
|
style: {
|
|
7612
8773
|
margin: '-1px -1px -1px -1px'
|
|
7613
8774
|
}
|
|
7614
|
-
}, children, item.items.length === 0 && /*#__PURE__*/React.createElement(Flex, {
|
|
8775
|
+
}, children, item.items.length === 0 && /*#__PURE__*/React$1.createElement(Flex, {
|
|
7615
8776
|
p: "4",
|
|
7616
8777
|
style: {
|
|
7617
8778
|
// border: 'dashed 1px var(--accent-6)',
|
|
@@ -7620,7 +8781,7 @@ var ViewLayoutSortable = makeSortableMultiList({
|
|
|
7620
8781
|
},
|
|
7621
8782
|
justifyContent: "center",
|
|
7622
8783
|
alignItems: "center"
|
|
7623
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
8784
|
+
}, /*#__PURE__*/React$1.createElement(Text, {
|
|
7624
8785
|
size: "2"
|
|
7625
8786
|
}, "Arraste uma camada para visualizar em mapa comparado"))));
|
|
7626
8787
|
}
|
|
@@ -7630,13 +8791,13 @@ function ViewLayoutControl(_ref4) {
|
|
|
7630
8791
|
var viewSpecs = _ref4.viewSpecs,
|
|
7631
8792
|
viewConfState = _ref4.viewConfState,
|
|
7632
8793
|
viewConfDispatch = _ref4.viewConfDispatch;
|
|
7633
|
-
return /*#__PURE__*/React.createElement(ViewLayoutControlContext.Provider, {
|
|
8794
|
+
return /*#__PURE__*/React$1.createElement(ViewLayoutControlContext.Provider, {
|
|
7634
8795
|
value: {
|
|
7635
8796
|
viewSpecs: viewSpecs,
|
|
7636
8797
|
viewConfState: viewConfState,
|
|
7637
8798
|
viewConfDispatch: viewConfDispatch
|
|
7638
8799
|
}
|
|
7639
|
-
}, /*#__PURE__*/React.createElement(ViewLayoutSortable, {
|
|
8800
|
+
}, /*#__PURE__*/React$1.createElement(ViewLayoutSortable, {
|
|
7640
8801
|
lists: viewConfState.layout,
|
|
7641
8802
|
onSetLists: function onSetLists(nextLayout) {
|
|
7642
8803
|
return viewConfDispatch({
|
|
@@ -7656,13 +8817,13 @@ function ViewLayoutPopover(_ref) {
|
|
|
7656
8817
|
var activeViewCount = useMemo(function () {
|
|
7657
8818
|
return Object.keys(viewConfState.byId).length;
|
|
7658
8819
|
}, [viewConfState.byId]);
|
|
7659
|
-
return /*#__PURE__*/React.createElement(Popover.Root, null, /*#__PURE__*/React.createElement(Popover.Trigger, null, /*#__PURE__*/React.createElement(Button, _extends({
|
|
8820
|
+
return /*#__PURE__*/React$1.createElement(Popover.Root, null, /*#__PURE__*/React$1.createElement(Popover.Trigger, null, /*#__PURE__*/React$1.createElement(Button, _extends({
|
|
7660
8821
|
variant: activeViewCount > 0 ? 'solid' : 'soft',
|
|
7661
8822
|
size: "1"
|
|
7662
|
-
}, props), /*#__PURE__*/React.createElement(Icon, {
|
|
8823
|
+
}, props), /*#__PURE__*/React$1.createElement(Icon, {
|
|
7663
8824
|
path: mdiLayers,
|
|
7664
8825
|
size: "16px"
|
|
7665
|
-
}), " Camadas ativas", ' ', activeViewCount ? "(".concat(activeViewCount, ")") : null)), /*#__PURE__*/React.createElement(Popover.Content, {
|
|
8826
|
+
}), " Camadas ativas", ' ', activeViewCount ? "(".concat(activeViewCount, ")") : null)), /*#__PURE__*/React$1.createElement(Popover.Content, {
|
|
7666
8827
|
size: "1",
|
|
7667
8828
|
align: "center",
|
|
7668
8829
|
style: {
|
|
@@ -7671,19 +8832,19 @@ function ViewLayoutPopover(_ref) {
|
|
|
7671
8832
|
position: 'relative'
|
|
7672
8833
|
},
|
|
7673
8834
|
maxWidth: "none"
|
|
7674
|
-
}, /*#__PURE__*/React.createElement(Flex, {
|
|
8835
|
+
}, /*#__PURE__*/React$1.createElement(Flex, {
|
|
7675
8836
|
direction: "row",
|
|
7676
8837
|
gap: "3"
|
|
7677
|
-
}, activeViewCount > 0 ? /*#__PURE__*/React.createElement(ViewLayoutControl, {
|
|
8838
|
+
}, activeViewCount > 0 ? /*#__PURE__*/React$1.createElement(ViewLayoutControl, {
|
|
7678
8839
|
viewSpecs: viewSpecs,
|
|
7679
8840
|
viewConfState: viewConfState,
|
|
7680
8841
|
viewConfDispatch: viewConfDispatch
|
|
7681
|
-
}) : /*#__PURE__*/React.createElement(Text, {
|
|
8842
|
+
}) : /*#__PURE__*/React$1.createElement(Text, {
|
|
7682
8843
|
size: "1"
|
|
7683
|
-
}, "Nenhuma camada ativa"), /*#__PURE__*/React.createElement(Popover.Close, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
8844
|
+
}, "Nenhuma camada ativa"), /*#__PURE__*/React$1.createElement(Popover.Close, null, /*#__PURE__*/React$1.createElement(IconButton, {
|
|
7684
8845
|
size: "1",
|
|
7685
8846
|
variant: "ghost"
|
|
7686
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8847
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
7687
8848
|
path: mdiClose,
|
|
7688
8849
|
size: "16px"
|
|
7689
8850
|
}))))));
|
|
@@ -7893,7 +9054,7 @@ function _parseGeoFileMetadata() {
|
|
|
7893
9054
|
}
|
|
7894
9055
|
function GeoFile(props) {
|
|
7895
9056
|
var dialogs = useDialogs();
|
|
7896
|
-
return /*#__PURE__*/React.createElement(SingleFileInput, _extends({}, props, {
|
|
9057
|
+
return /*#__PURE__*/React$1.createElement(SingleFileInput, _extends({}, props, {
|
|
7897
9058
|
middleware: [(/*#__PURE__*/function () {
|
|
7898
9059
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
7899
9060
|
var Gdal, _yield$Gdal$open, datasets, errors, result, fileBytes, blob, outFile;
|
|
@@ -7970,13 +9131,13 @@ function GeoFile(props) {
|
|
|
7970
9131
|
}
|
|
7971
9132
|
|
|
7972
9133
|
function NumberInput(props) {
|
|
7973
|
-
return /*#__PURE__*/React.createElement(TextInput, _extends({}, props, {
|
|
9134
|
+
return /*#__PURE__*/React$1.createElement(TextInput, _extends({}, props, {
|
|
7974
9135
|
type: "text",
|
|
7975
9136
|
mask: Number
|
|
7976
9137
|
}));
|
|
7977
9138
|
}
|
|
7978
9139
|
function InputProvider(props) {
|
|
7979
|
-
return /*#__PURE__*/React.createElement(InputProvider$1, _extends({
|
|
9140
|
+
return /*#__PURE__*/React$1.createElement(InputProvider$1, _extends({
|
|
7980
9141
|
renderers: _objectSpread2(_objectSpread2({}, INPUTS), rendererSpecList({
|
|
7981
9142
|
date: TextInput,
|
|
7982
9143
|
number: NumberInput,
|
|
@@ -8322,99 +9483,6 @@ function useViews(viewResolutionContextBase) {
|
|
|
8322
9483
|
};
|
|
8323
9484
|
}
|
|
8324
9485
|
|
|
8325
|
-
function overture_places_poc(_ref) {
|
|
8326
|
-
var VECTOR_TILE_SERVER_ENDPOINT = _ref.VECTOR_TILE_SERVER_ENDPOINT;
|
|
8327
|
-
return {
|
|
8328
|
-
collection_id: 'proof_of_concept',
|
|
8329
|
-
indicator_id: 'overture_places_poc',
|
|
8330
|
-
id: 'overture_places_poc',
|
|
8331
|
-
label: 'Pontos de atividade comercial',
|
|
8332
|
-
sourceLabel: 'Overture Maps',
|
|
8333
|
-
path: 'Infraestrutura e serviços urbanos / 2022 / Atividade comercial',
|
|
8334
|
-
metadata: {},
|
|
8335
|
-
sources: {
|
|
8336
|
-
atividade_comercial: tableVectorSource({
|
|
8337
|
-
VECTOR_TILE_SERVER_ENDPOINT: VECTOR_TILE_SERVER_ENDPOINT
|
|
8338
|
-
}, 'overture_br_places', {
|
|
8339
|
-
attribution: 'Overture Maps',
|
|
8340
|
-
minzoom: 10
|
|
8341
|
-
})
|
|
8342
|
-
},
|
|
8343
|
-
layers: {
|
|
8344
|
-
atividade_comercial: {
|
|
8345
|
-
source: 'atividade_comercial',
|
|
8346
|
-
'source-layer': 'overture_br_places.geom',
|
|
8347
|
-
filter: ['==', ['get', 'municipio_id'], ['$get', 'app.municipioId']],
|
|
8348
|
-
type: 'circle',
|
|
8349
|
-
paint: {
|
|
8350
|
-
'circle-radius': 2,
|
|
8351
|
-
// small circle size
|
|
8352
|
-
'circle-color': '#3E63DD',
|
|
8353
|
-
// red fill
|
|
8354
|
-
'circle-opacity': ['interpolate', ['linear'], ['zoom'], 10, 0.1, 16, 0.4]
|
|
8355
|
-
// 'circle-stroke-width': .5, // no outline
|
|
8356
|
-
// 'circle-stroke-color': '#ff0000', // no outline
|
|
8357
|
-
}
|
|
8358
|
-
|
|
8359
|
-
// type: 'heatmap',
|
|
8360
|
-
// paint: {
|
|
8361
|
-
// // Increase the heatmap weight based on frequency and property magnitude
|
|
8362
|
-
// 'heatmap-weight': [
|
|
8363
|
-
// 'interpolate',
|
|
8364
|
-
// ['linear'],
|
|
8365
|
-
// ['get', 'mag'],
|
|
8366
|
-
// 0,
|
|
8367
|
-
// 0,
|
|
8368
|
-
// 6,
|
|
8369
|
-
// 1,
|
|
8370
|
-
// ],
|
|
8371
|
-
// // Increase the heatmap color weight weight by zoom level
|
|
8372
|
-
// // heatmap-intensity is a multiplier on top of heatmap-weight
|
|
8373
|
-
// 'heatmap-intensity': [
|
|
8374
|
-
// 'interpolate',
|
|
8375
|
-
// ['linear'],
|
|
8376
|
-
// ['zoom'],
|
|
8377
|
-
// 0,
|
|
8378
|
-
// 1,
|
|
8379
|
-
// 9,
|
|
8380
|
-
// 3,
|
|
8381
|
-
// ],
|
|
8382
|
-
// // Color ramp for heatmap. Domain is 0 (low) to 1 (high).
|
|
8383
|
-
// // Begin color ramp at 0-stop with a 0-transparency color
|
|
8384
|
-
// // to create a blur-like effect.
|
|
8385
|
-
// 'heatmap-color': [
|
|
8386
|
-
// 'interpolate',
|
|
8387
|
-
// ['linear'],
|
|
8388
|
-
// ['heatmap-density'],
|
|
8389
|
-
// 0,
|
|
8390
|
-
// 'rgba(33,102,172,0)',
|
|
8391
|
-
// 0.2,
|
|
8392
|
-
// 'rgb(103,169,207)',
|
|
8393
|
-
// 0.4,
|
|
8394
|
-
// 'rgb(209,229,240)',
|
|
8395
|
-
// 0.6,
|
|
8396
|
-
// 'rgb(253,219,199)',
|
|
8397
|
-
// 0.8,
|
|
8398
|
-
// 'rgb(239,138,98)',
|
|
8399
|
-
// 1,
|
|
8400
|
-
// 'rgb(178,24,43)',
|
|
8401
|
-
// ],
|
|
8402
|
-
// // Adjust the heatmap radius by zoom level
|
|
8403
|
-
// 'heatmap-radius': [
|
|
8404
|
-
// 'interpolate',
|
|
8405
|
-
// ['linear'],
|
|
8406
|
-
// ['zoom'],
|
|
8407
|
-
// 0,
|
|
8408
|
-
// 2,
|
|
8409
|
-
// 9,
|
|
8410
|
-
// 20,
|
|
8411
|
-
// ],
|
|
8412
|
-
// },
|
|
8413
|
-
}
|
|
8414
|
-
}
|
|
8415
|
-
};
|
|
8416
|
-
}
|
|
8417
|
-
|
|
8418
9486
|
var BR_MUNICIPIOS_ID = 'ibge_malha_br_municipio_2024.geom';
|
|
8419
9487
|
function br_municipios(_ref) {
|
|
8420
9488
|
var api = _ref.api,
|
|
@@ -9959,7 +11027,7 @@ function HoverLegend(_ref) {
|
|
|
9959
11027
|
onMouseLeaveStep: onMouseLeaveStep
|
|
9960
11028
|
};
|
|
9961
11029
|
}, []);
|
|
9962
|
-
return /*#__PURE__*/React.createElement(Legend, _extends({}, legendProps, legendProps.type === 'SequentialColorLegend' ? SEQUENTIAL_COLOR_LEGEND_PROPS : {}));
|
|
11030
|
+
return /*#__PURE__*/React$1.createElement(Legend, _extends({}, legendProps, legendProps.type === 'SequentialColorLegend' ? SEQUENTIAL_COLOR_LEGEND_PROPS : {}));
|
|
9963
11031
|
}
|
|
9964
11032
|
function GeoReDUSInner(_ref2) {
|
|
9965
11033
|
var globalState = _ref2.state,
|
|
@@ -10284,7 +11352,7 @@ function GeoReDUSInner(_ref2) {
|
|
|
10284
11352
|
feature: feature
|
|
10285
11353
|
}) : null;
|
|
10286
11354
|
}).filter(Boolean);
|
|
10287
|
-
return tooltipDataSections.length > 0 && /*#__PURE__*/React.createElement(HoverTooltip, {
|
|
11355
|
+
return tooltipDataSections.length > 0 && /*#__PURE__*/React$1.createElement(HoverTooltip, {
|
|
10288
11356
|
position: hoverInfo.point,
|
|
10289
11357
|
dataSections: tooltipDataSections,
|
|
10290
11358
|
style: {
|
|
@@ -10309,7 +11377,7 @@ function GeoReDUSInner(_ref2) {
|
|
|
10309
11377
|
}
|
|
10310
11378
|
});
|
|
10311
11379
|
}, []);
|
|
10312
|
-
return /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(LeftPanel, {
|
|
11380
|
+
return /*#__PURE__*/React$1.createElement(Flex, null, /*#__PURE__*/React$1.createElement(LeftPanel, {
|
|
10313
11381
|
open: leftPanelOpen,
|
|
10314
11382
|
onSetOpen: setLeftPanelOpen,
|
|
10315
11383
|
viewSpecs: resolvedViewSpecs,
|
|
@@ -10317,7 +11385,7 @@ function GeoReDUSInner(_ref2) {
|
|
|
10317
11385
|
viewConfDispatch: viewConfDispatch,
|
|
10318
11386
|
resolvedViews: resolvedViews,
|
|
10319
11387
|
syncedMapsRef: syncedMapsRef
|
|
10320
|
-
}), /*#__PURE__*/React.createElement(Flex, {
|
|
11388
|
+
}), /*#__PURE__*/React$1.createElement(Flex, {
|
|
10321
11389
|
style: {
|
|
10322
11390
|
position: 'fixed',
|
|
10323
11391
|
zIndex: 2,
|
|
@@ -10327,27 +11395,27 @@ function GeoReDUSInner(_ref2) {
|
|
|
10327
11395
|
direction: "row",
|
|
10328
11396
|
gap: "4",
|
|
10329
11397
|
alignItems: "center"
|
|
10330
|
-
}, /*#__PURE__*/React.createElement(ViewLayoutPopover, {
|
|
11398
|
+
}, /*#__PURE__*/React$1.createElement(ViewLayoutPopover, {
|
|
10331
11399
|
viewSpecs: viewSpecsQuery.data,
|
|
10332
11400
|
viewConfState: viewConfState,
|
|
10333
11401
|
viewConfDispatch: viewConfDispatch
|
|
10334
|
-
}), /*#__PURE__*/React.createElement(Flex, {
|
|
11402
|
+
}), /*#__PURE__*/React$1.createElement(Flex, {
|
|
10335
11403
|
alignItems: "strecth",
|
|
10336
11404
|
width: "400px",
|
|
10337
11405
|
direction: "column",
|
|
10338
11406
|
maxWidth: "30vw",
|
|
10339
11407
|
gap: "3"
|
|
10340
|
-
}, /*#__PURE__*/React.createElement(HotfixSelectLargeFont, null, /*#__PURE__*/React.createElement(Input, {
|
|
11408
|
+
}, /*#__PURE__*/React$1.createElement(HotfixSelectLargeFont, null, /*#__PURE__*/React$1.createElement(Input, {
|
|
10341
11409
|
schema: MUNICIPIO_ID_SELECTOR_SCHEMA,
|
|
10342
11410
|
value: municipioId,
|
|
10343
11411
|
onSetValue: setMunicipioId
|
|
10344
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
11412
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
10345
11413
|
style: {
|
|
10346
11414
|
alignSelf: 'flex-end',
|
|
10347
11415
|
position: 'absolute',
|
|
10348
11416
|
top: '100%'
|
|
10349
11417
|
}
|
|
10350
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
11418
|
+
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
10351
11419
|
schema: {
|
|
10352
11420
|
type: 'booleanCheckbox',
|
|
10353
11421
|
description: 'Visualizar dados regionais'
|
|
@@ -10355,7 +11423,7 @@ function GeoReDUSInner(_ref2) {
|
|
|
10355
11423
|
size: "1",
|
|
10356
11424
|
value: regional,
|
|
10357
11425
|
onSetValue: setRegional
|
|
10358
|
-
})))), /*#__PURE__*/React.createElement(SyncedMaps, {
|
|
11426
|
+
})))), /*#__PURE__*/React$1.createElement(SyncedMaps, {
|
|
10359
11427
|
maxPitch: 80,
|
|
10360
11428
|
onZoomEnd: function onZoomEnd(e) {
|
|
10361
11429
|
var _e$viewState;
|
|
@@ -10407,12 +11475,12 @@ function GeoReDUSInner(_ref2) {
|
|
|
10407
11475
|
// canvasContextAttributes: {
|
|
10408
11476
|
// preserveDrawingBuffer: true,
|
|
10409
11477
|
// },
|
|
10410
|
-
children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DynamicImages, {
|
|
11478
|
+
children: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(DynamicImages, {
|
|
10411
11479
|
onGenerateImage: MAP_SVG_IMAGE_GENERATOR
|
|
10412
|
-
}), /*#__PURE__*/React.createElement(AttributionControl, {
|
|
11480
|
+
}), /*#__PURE__*/React$1.createElement(AttributionControl, {
|
|
10413
11481
|
position: "bottom-right",
|
|
10414
11482
|
compact: false
|
|
10415
|
-
}), /*#__PURE__*/React.createElement(ControlContainer, {
|
|
11483
|
+
}), /*#__PURE__*/React$1.createElement(ControlContainer, {
|
|
10416
11484
|
style: {
|
|
10417
11485
|
width: 'auto',
|
|
10418
11486
|
height: 'auto',
|
|
@@ -10420,13 +11488,13 @@ function GeoReDUSInner(_ref2) {
|
|
|
10420
11488
|
opacity: legends.length > 0 ? 1 : 0
|
|
10421
11489
|
},
|
|
10422
11490
|
position: "bottom-right"
|
|
10423
|
-
}, legends.length > 0 && /*#__PURE__*/React.createElement(LegendContainer, {
|
|
11491
|
+
}, legends.length > 0 && /*#__PURE__*/React$1.createElement(LegendContainer, {
|
|
10424
11492
|
direction: "row",
|
|
10425
11493
|
gap: "3",
|
|
10426
11494
|
p: resolvedLayout.length > 1 ? '3' : '4'
|
|
10427
|
-
}, resolvedLayout.length > 1 && /*#__PURE__*/React.createElement(Tooltip, {
|
|
11495
|
+
}, resolvedLayout.length > 1 && /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
10428
11496
|
content: "Fechar visualiza\xE7\xE3o"
|
|
10429
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
11497
|
+
}, /*#__PURE__*/React$1.createElement(IconButton, {
|
|
10430
11498
|
size: "1",
|
|
10431
11499
|
variant: "soft",
|
|
10432
11500
|
onClick: function onClick() {
|
|
@@ -10435,14 +11503,14 @@ function GeoReDUSInner(_ref2) {
|
|
|
10435
11503
|
payload: views[0].id
|
|
10436
11504
|
});
|
|
10437
11505
|
}
|
|
10438
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
11506
|
+
}, /*#__PURE__*/React$1.createElement(Icon, {
|
|
10439
11507
|
path: mdiClose,
|
|
10440
11508
|
size: "20px"
|
|
10441
|
-
}))), /*#__PURE__*/React.createElement(EvenSpacedList, {
|
|
11509
|
+
}))), /*#__PURE__*/React$1.createElement(EvenSpacedList, {
|
|
10442
11510
|
columns: legends.length > 1 ? 2 : 1,
|
|
10443
11511
|
gap: "10px"
|
|
10444
11512
|
}, legends.map(function (legend) {
|
|
10445
|
-
return /*#__PURE__*/React.createElement(HoverLegend, _extends({}, resolvedLayout.length > 1 ? {
|
|
11513
|
+
return /*#__PURE__*/React$1.createElement(HoverLegend, _extends({}, resolvedLayout.length > 1 ? {
|
|
10446
11514
|
direction: 'row',
|
|
10447
11515
|
maxWidth: '300px',
|
|
10448
11516
|
size: '1'
|
|
@@ -10453,21 +11521,21 @@ function GeoReDUSInner(_ref2) {
|
|
|
10453
11521
|
}, {
|
|
10454
11522
|
key: legend.id
|
|
10455
11523
|
}, legend));
|
|
10456
|
-
})))), index === resolvedLayout.length - 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, process.env.NODE_ENV !== 'production' && /*#__PURE__*/React.createElement(InspectControl, null), /*#__PURE__*/React.createElement(GeolocateControl, {
|
|
11524
|
+
})))), index === resolvedLayout.length - 1 ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, process.env.NODE_ENV !== 'production' && /*#__PURE__*/React$1.createElement(InspectControl, null), /*#__PURE__*/React$1.createElement(GeolocateControl, {
|
|
10457
11525
|
position: "top-right"
|
|
10458
|
-
}), /*#__PURE__*/React.createElement(FullscreenControl, {
|
|
11526
|
+
}), /*#__PURE__*/React$1.createElement(FullscreenControl, {
|
|
10459
11527
|
position: "top-right"
|
|
10460
|
-
}), /*#__PURE__*/React.createElement(NavigationControl, {
|
|
11528
|
+
}), /*#__PURE__*/React$1.createElement(NavigationControl, {
|
|
10461
11529
|
position: "top-right"
|
|
10462
|
-
}), /*#__PURE__*/React.createElement(ScaleControl, {
|
|
11530
|
+
}), /*#__PURE__*/React$1.createElement(ScaleControl, {
|
|
10463
11531
|
position: "bottom-right"
|
|
10464
|
-
}), /*#__PURE__*/React.createElement(ControlContainer, {
|
|
11532
|
+
}), /*#__PURE__*/React$1.createElement(ControlContainer, {
|
|
10465
11533
|
style: {
|
|
10466
11534
|
width: 100,
|
|
10467
11535
|
height: 100,
|
|
10468
11536
|
boxShadow: 'none'
|
|
10469
11537
|
}
|
|
10470
|
-
}, /*#__PURE__*/React.createElement(MapStyleToggleCtrl, {
|
|
11538
|
+
}, /*#__PURE__*/React$1.createElement(MapStyleToggleCtrl, {
|
|
10471
11539
|
style: {
|
|
10472
11540
|
position: 'relative',
|
|
10473
11541
|
width: 100,
|
|
@@ -10477,7 +11545,7 @@ function GeoReDUSInner(_ref2) {
|
|
|
10477
11545
|
onClick: function onClick() {
|
|
10478
11546
|
return setBaseMapStyle(baseMapStyle === 'dataviz' ? 'satellite' : 'dataviz');
|
|
10479
11547
|
}
|
|
10480
|
-
}, /*#__PURE__*/React.createElement(MapWindow, {
|
|
11548
|
+
}, /*#__PURE__*/React$1.createElement(MapWindow, {
|
|
10481
11549
|
style: {
|
|
10482
11550
|
pointerEvents: 'none',
|
|
10483
11551
|
position: 'absolute',
|
|
@@ -10488,13 +11556,13 @@ function GeoReDUSInner(_ref2) {
|
|
|
10488
11556
|
},
|
|
10489
11557
|
mapStyle: baseMapStyle === 'satellite' ? FULL_MAP_STYLE.dataviz : FULL_MAP_STYLE.satellite,
|
|
10490
11558
|
maxZoom: 13
|
|
10491
|
-
})))) : null, /*#__PURE__*/React.createElement(TerrainControl, {
|
|
11559
|
+
})))) : null, /*#__PURE__*/React$1.createElement(TerrainControl, {
|
|
10492
11560
|
demSourceUrl: DEM_SOURCE_URL,
|
|
10493
11561
|
demSourceEncoding: DEM_SOURCE_ENCODING
|
|
10494
11562
|
}))
|
|
10495
11563
|
};
|
|
10496
11564
|
})
|
|
10497
|
-
}, (viewsLoading || tilesLoading) && /*#__PURE__*/React.createElement(LoadingIndicator, {
|
|
11565
|
+
}, (viewsLoading || tilesLoading) && /*#__PURE__*/React$1.createElement(LoadingIndicator, {
|
|
10498
11566
|
style: {
|
|
10499
11567
|
position: 'fixed',
|
|
10500
11568
|
bottom: '40px',
|
|
@@ -10509,9 +11577,9 @@ function GeoReDUSInner(_ref2) {
|
|
|
10509
11577
|
}
|
|
10510
11578
|
var GeoReDUSRootContainer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n * {\n box-sizing: border-box;\n }\n"])));
|
|
10511
11579
|
function GeoReDUS(props) {
|
|
10512
|
-
return /*#__PURE__*/React.createElement(GeoReDUSRootContainer, null, /*#__PURE__*/React.createElement(InputProvider, {
|
|
11580
|
+
return /*#__PURE__*/React$1.createElement(GeoReDUSRootContainer, null, /*#__PURE__*/React$1.createElement(InputProvider, {
|
|
10513
11581
|
variant: "labeled"
|
|
10514
|
-
}, /*#__PURE__*/React.createElement(DialogsProvider, null, /*#__PURE__*/React.createElement(GeoReDUSInner, props))));
|
|
11582
|
+
}, /*#__PURE__*/React$1.createElement(DialogsProvider, null, /*#__PURE__*/React$1.createElement(GeoReDUSInner, props))));
|
|
10515
11583
|
}
|
|
10516
11584
|
|
|
10517
11585
|
export { GeoReDUS, index as UNSTABLE_VIEW_SPEC, VTX_PROTOCOL, memoFetchData, vtx, vtxSetup, vtxUrl };
|