@redus/georedus-ui 0.1.7 → 0.2.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 +11 -0
- package/dist/main.js +174 -54
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -17,7 +17,7 @@ import { createDialogSystem, DIALOGS } from '@orioro/react-dialogs';
|
|
|
17
17
|
import { CsvImportDialog } from '@orioro/react-csv';
|
|
18
18
|
import Highlighter from 'react-highlight-words';
|
|
19
19
|
import { makeSortableMultiList } from '@orioro/react-sortable';
|
|
20
|
-
import { makeSyncedMaps, LayeredMap, HoverTooltip, MapWindow, fitGeometry } from '@orioro/react-maplibre-util';
|
|
20
|
+
import { makeSyncedMaps, LayeredMap, HoverTooltip, ControlContainer, MapWindow, TerrainControl, fitGeometry } from '@orioro/react-maplibre-util';
|
|
21
21
|
import { Legend } from '@orioro/react-chart-util';
|
|
22
22
|
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
23
23
|
import { useQuery, useQueries } from '@tanstack/react-query';
|
|
@@ -25,7 +25,7 @@ import { makeResolve, $$literal, withExpressionResolvers, expressions, ALL_EXPR,
|
|
|
25
25
|
import queryString from 'query-string';
|
|
26
26
|
import { wrap } from 'comlink';
|
|
27
27
|
import { get } from '@orioro/get';
|
|
28
|
-
import { GeolocateControl, NavigationControl, ScaleControl
|
|
28
|
+
import { AttributionControl, GeolocateControl, FullscreenControl, NavigationControl, ScaleControl } from 'react-map-gl/maplibre';
|
|
29
29
|
import { slugify, dataJoin } from '@orioro/util';
|
|
30
30
|
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';
|
|
31
31
|
import { saveAs } from 'file-saver';
|
|
@@ -1628,10 +1628,9 @@ var GeoReDUSWorker = worker ? wrap(worker) : null;
|
|
|
1628
1628
|
var $naturalBreaks = function $naturalBreaks(_a) {
|
|
1629
1629
|
var values = _a[0],
|
|
1630
1630
|
opt = _a[1];
|
|
1631
|
-
console.log('will run $naturalBreaks in worker');
|
|
1632
1631
|
var breaks = GeoReDUSWorker.scaleNaturalBreaks(__assign({
|
|
1633
1632
|
values: values
|
|
1634
|
-
}, isPlainObject(opt) ? pick(opt, ['scalesByK', 'k', 'minK', 'maxK']) : {}));
|
|
1633
|
+
}, isPlainObject(opt) ? pick(opt, ['scalesByK', 'k', 'minK', 'maxK', 'defaultColor']) : {}));
|
|
1635
1634
|
return breaks;
|
|
1636
1635
|
};
|
|
1637
1636
|
// export const $test = ()
|
|
@@ -1849,7 +1848,7 @@ var BASE_MAP_LAYERS = [
|
|
|
1849
1848
|
"fill-antialias": false,
|
|
1850
1849
|
"fill-color": "hsl(96, 44%, 79%)",
|
|
1851
1850
|
// "fill-color": "red",
|
|
1852
|
-
"fill-opacity":
|
|
1851
|
+
"fill-opacity": 0.6
|
|
1853
1852
|
// "fill-opacity": {
|
|
1854
1853
|
// "stops": [
|
|
1855
1854
|
// [8, 0.2],
|
|
@@ -5048,6 +5047,8 @@ function variableIdValidator(schema) {
|
|
|
5048
5047
|
|
|
5049
5048
|
var DEFAULT_BUFFER_SIZE = 200;
|
|
5050
5049
|
var INSUFFICIENT_DATA_COLOR = 'red';
|
|
5050
|
+
var BUILDINGS_MIN_ZOOM = 14;
|
|
5051
|
+
var BUILDINGS_3D_MIN_ZOOM = 16;
|
|
5051
5052
|
|
|
5052
5053
|
//
|
|
5053
5054
|
//
|
|
@@ -5165,6 +5166,12 @@ function cem_censo_2010_2022(viewSpec, allViewSpecs, context) {
|
|
|
5165
5166
|
title: ['$literal', ['$coalesce', ['$get', 'feature.properties.name'], ['$get', 'feature.properties.nome'], ['$get', 'feature.properties.label'], ['$get', 'feature.properties.title'], ['$get', 'feature.properties.id'], ['$get', ['$get', '0', ['$keys', ['$get', 'feature.properties']]], ['$get', 'feature.properties']]]],
|
|
5166
5167
|
entries: ['$literal', ['$entries', ['$get', 'feature.properties']]]
|
|
5167
5168
|
};
|
|
5169
|
+
|
|
5170
|
+
//
|
|
5171
|
+
// Fill color expression for data loaded from
|
|
5172
|
+
// vector source
|
|
5173
|
+
//
|
|
5174
|
+
var _vectorSourceFillColor = ['$flat', [['step', ['coalesce', ['get', ['$get', 'view.conf.data.variableId']], -1]], ['$get', 'view.metadata.colorScaleStops']]];
|
|
5168
5175
|
var sourceLabel = "CENSO ".concat(year);
|
|
5169
5176
|
return {
|
|
5170
5177
|
// debug: true,
|
|
@@ -5371,7 +5378,7 @@ function cem_censo_2010_2022(viewSpec, allViewSpecs, context) {
|
|
|
5371
5378
|
minK: 5
|
|
5372
5379
|
})]
|
|
5373
5380
|
}]],
|
|
5374
|
-
sources: _objectSpread2(_objectSpread2({}, globalRes.sources), {}, _defineProperty({
|
|
5381
|
+
sources: _objectSpread2(_objectSpread2({}, globalRes.sources), {}, _defineProperty(_defineProperty({
|
|
5375
5382
|
//
|
|
5376
5383
|
// Points in custom GeoJson
|
|
5377
5384
|
//
|
|
@@ -5430,6 +5437,7 @@ function cem_censo_2010_2022(viewSpec, allViewSpecs, context) {
|
|
|
5430
5437
|
attribution: sourceLabel,
|
|
5431
5438
|
minzoom: 6,
|
|
5432
5439
|
maxzoom: 20,
|
|
5440
|
+
promoteId: 'cd_setor',
|
|
5433
5441
|
tiles: [['$join', ["".concat(VECTOR_TILE_SERVER_ENDPOINT, "/dynamic_vector_tiles/{z}/{x}/{y}?"), ['$urlSearch', {
|
|
5434
5442
|
view: ['$get', ['$template', '${0}.collection_id', ['$get', 'view.conf.data.variableId']], variantsByVariableId],
|
|
5435
5443
|
select: ['cd_setor'],
|
|
@@ -5441,8 +5449,33 @@ function cem_censo_2010_2022(viewSpec, allViewSpecs, context) {
|
|
|
5441
5449
|
cd_mun: [['$get', 'municipioId']]
|
|
5442
5450
|
}
|
|
5443
5451
|
}]]]]
|
|
5452
|
+
}), "".concat(VECTOR_SOURCE_ID, "_buildings"), {
|
|
5453
|
+
type: 'vector',
|
|
5454
|
+
attribution: sourceLabel,
|
|
5455
|
+
minzoom: 6,
|
|
5456
|
+
maxzoom: 20,
|
|
5457
|
+
tiles: [['$join', ["".concat(VECTOR_TILE_SERVER_ENDPOINT, "/dynamic_vector_tiles/{z}/{x}/{y}?"), ['$urlSearch', {
|
|
5458
|
+
view: 'overture_br_buildings',
|
|
5459
|
+
// view: [
|
|
5460
|
+
// '$get',
|
|
5461
|
+
// [
|
|
5462
|
+
// '$template',
|
|
5463
|
+
// '${0}.collection_id',
|
|
5464
|
+
// ['$get', 'view.conf.data.variableId'],
|
|
5465
|
+
// ],
|
|
5466
|
+
// variantsByVariableId,
|
|
5467
|
+
// ],
|
|
5468
|
+
select: ['height', 'subtype'],
|
|
5469
|
+
join_view: ['$get', ['$template', '${0}.source_table_id', ['$get', 'view.conf.data.variableId']], variantsByVariableId],
|
|
5470
|
+
join_source_column: "setor_".concat(year, "_id"),
|
|
5471
|
+
join_target_column: 'cd_setor',
|
|
5472
|
+
join_select: [['$get', 'view.conf.data.variableId']],
|
|
5473
|
+
where: {
|
|
5474
|
+
municipio_id: [['$get', 'municipioId']]
|
|
5475
|
+
}
|
|
5476
|
+
}]]]]
|
|
5444
5477
|
})),
|
|
5445
|
-
layers: _objectSpread2(_objectSpread2({}, globalRes.layers), {}, _defineProperty(_defineProperty({
|
|
5478
|
+
layers: _objectSpread2(_objectSpread2({}, globalRes.layers), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
5446
5479
|
customGeoJSON_Areas_fill: {
|
|
5447
5480
|
hidden: ['$empty', ['$get', 'view.conf.data.customSpatialAggregationUnit']],
|
|
5448
5481
|
source: 'customGeoJSON_Areas',
|
|
@@ -5506,31 +5539,88 @@ function cem_censo_2010_2022(viewSpec, allViewSpecs, context) {
|
|
|
5506
5539
|
}
|
|
5507
5540
|
}, "".concat(VECTOR_SOURCE_ID, "_fill"), {
|
|
5508
5541
|
hidden: ['$not', ['$empty', ['$get', 'view.metadata.customGeoJSON.AREAS']]],
|
|
5509
|
-
|
|
5510
|
-
// '$empty',
|
|
5511
|
-
// ['$get', 'view.conf.data.customSpatialAggregationUnit'],
|
|
5512
|
-
// ],
|
|
5542
|
+
interactive: true,
|
|
5513
5543
|
legends: _legends,
|
|
5514
5544
|
tooltip: {
|
|
5515
|
-
|
|
5516
|
-
// '$literal',
|
|
5517
|
-
// [
|
|
5518
|
-
// '$template',
|
|
5519
|
-
// 'Setor ${0}',
|
|
5520
|
-
// ['$get', 'feature.properties.cd_setor'],
|
|
5521
|
-
// ],
|
|
5522
|
-
// ],
|
|
5545
|
+
title: null,
|
|
5523
5546
|
entries: [_variableValueTooltipEntry]
|
|
5524
5547
|
},
|
|
5525
5548
|
source: VECTOR_SOURCE_ID,
|
|
5526
5549
|
'source-layer': 'dynamic_vector_tile',
|
|
5527
5550
|
type: 'fill',
|
|
5528
|
-
//
|
|
5551
|
+
// maxzoom: 14,
|
|
5529
5552
|
paint: {
|
|
5530
|
-
'fill-color': [
|
|
5531
|
-
'
|
|
5553
|
+
// 'fill-color': [
|
|
5554
|
+
// '$flat',
|
|
5555
|
+
// [
|
|
5556
|
+
// [
|
|
5557
|
+
// 'step',
|
|
5558
|
+
// [
|
|
5559
|
+
// 'coalesce',
|
|
5560
|
+
// ['get', ['$get', 'view.conf.data.variableId']],
|
|
5561
|
+
// -1,
|
|
5562
|
+
// ],
|
|
5563
|
+
// ],
|
|
5564
|
+
// ['$get', 'view.metadata.colorScaleStops'],
|
|
5565
|
+
// ],
|
|
5566
|
+
// ],
|
|
5567
|
+
'fill-color': _vectorSourceFillColor,
|
|
5568
|
+
// 'fill-opacity': ['$get', 'view.conf.style.layerOpacity'],
|
|
5569
|
+
'fill-opacity': ['step', ['zoom'], ['$get', 'view.conf.style.layerOpacity'],
|
|
5570
|
+
// default: zoom < 14 → opacity = 1
|
|
5571
|
+
BUILDINGS_MIN_ZOOM, 0.1 // zoom ≥ 14 → opacity = 0
|
|
5572
|
+
],
|
|
5532
5573
|
'fill-outline-color': 'transparent'
|
|
5533
5574
|
}
|
|
5575
|
+
}), "".concat(VECTOR_SOURCE_ID, "_boundary_lines"), {
|
|
5576
|
+
hidden: ['$not', ['$empty', ['$get', 'view.metadata.customGeoJSON.AREAS']]],
|
|
5577
|
+
source: VECTOR_SOURCE_ID,
|
|
5578
|
+
'source-layer': 'dynamic_vector_tile',
|
|
5579
|
+
type: 'line',
|
|
5580
|
+
interactive: true,
|
|
5581
|
+
// minzoom: BUILDINGS_MIN_ZOOM,
|
|
5582
|
+
paint: {
|
|
5583
|
+
'line-color': _vectorSourceFillColor,
|
|
5584
|
+
'line-width': ['step', ['zoom'],
|
|
5585
|
+
// default: zoom < 14 → thin lines
|
|
5586
|
+
['case', ['boolean', ['feature-state', 'hover'], false], 4, 0], BUILDINGS_MIN_ZOOM,
|
|
5587
|
+
// zoom ≥ 14 → larger lines
|
|
5588
|
+
['case', ['boolean', ['feature-state', 'hover'], false], 5, 1]],
|
|
5589
|
+
'line-opacity': ['case', ['boolean', ['feature-state', 'hover'], false], 1, ['$get', 'view.conf.style.layerOpacity']],
|
|
5590
|
+
'line-dasharray': [2, 2]
|
|
5591
|
+
}
|
|
5592
|
+
}), "".concat(VECTOR_SOURCE_ID, "_buildings"), {
|
|
5593
|
+
hidden: ['$not', ['$empty', ['$get', 'view.metadata.customGeoJSON.AREAS']]],
|
|
5594
|
+
interactive: false,
|
|
5595
|
+
// tooltip: {
|
|
5596
|
+
// title: ['$literal', ['$get', 'feature.properties.primary_name']],
|
|
5597
|
+
// entries: [],
|
|
5598
|
+
// // entries: [
|
|
5599
|
+
// // _variableValueTooltipEntry,
|
|
5600
|
+
// // // ['subtype', ['$literal', ['$get', 'feature.properties.subtype']]],
|
|
5601
|
+
// // ],
|
|
5602
|
+
// },
|
|
5603
|
+
source: "".concat(VECTOR_SOURCE_ID, "_buildings"),
|
|
5604
|
+
'source-layer': 'dynamic_vector_tile',
|
|
5605
|
+
type: 'fill-extrusion',
|
|
5606
|
+
minzoom: BUILDINGS_MIN_ZOOM,
|
|
5607
|
+
paint: {
|
|
5608
|
+
//
|
|
5609
|
+
// If indicator is about populacao-e-domicilios,
|
|
5610
|
+
// do not color paint buildings whose subtype
|
|
5611
|
+
// is known and is not residential.
|
|
5612
|
+
//
|
|
5613
|
+
// Otherwise, apply color to all buildings
|
|
5614
|
+
//
|
|
5615
|
+
'fill-extrusion-color': indicator_path !== null && indicator_path !== void 0 && indicator_path.startsWith('População e domicílios') ? ['case', ['in', ['get', 'subtype'], ['literal', ['agricultural', 'civic', 'commercial', 'education', 'entertainment', 'industrial', 'medical', 'military', 'outbuilding', 'religious',
|
|
5616
|
+
// 'residential',
|
|
5617
|
+
'service', 'transportation']]], '#EFEFEF', _vectorSourceFillColor] : _vectorSourceFillColor,
|
|
5618
|
+
'fill-extrusion-opacity': 0.8,
|
|
5619
|
+
// 'fill-extrusion-opacity': ['$get', 'view.conf.style.layerOpacity'],
|
|
5620
|
+
// 'fill-extrusion-outline-color': 'transparent',
|
|
5621
|
+
'fill-extrusion-height': ['step', ['zoom'], 0, BUILDINGS_3D_MIN_ZOOM, ['coalesce', ['get', 'height'], 0]]
|
|
5622
|
+
// ['get', 'height'], // Adjust as needed
|
|
5623
|
+
}
|
|
5534
5624
|
}), "customGeoJSON_Points_heatmap", {
|
|
5535
5625
|
hidden: ['$or', ['$empty', ['$get', 'view.conf.data.customSpatialAggregationUnit']], ['$not', ['$eq', ['$get', 'view.conf.data.pointsDisplayMode'], 'heatmap']]],
|
|
5536
5626
|
source: 'customGeoJSON_Points',
|
|
@@ -6492,9 +6582,16 @@ function _flyToMunicipio2() {
|
|
|
6492
6582
|
return _flyToMunicipio2.apply(this, arguments);
|
|
6493
6583
|
}
|
|
6494
6584
|
var REDUS_DATAVIZ_STYLE = 'https://api.maptiler.com/maps/0195f947-fb77-7256-83d6-47a54db345a3/style.json';
|
|
6585
|
+
// const REDUS_DATAVIZ_STYLE =
|
|
6586
|
+
// 'https://api.maptiler.com/maps/streets-v2/style.json'
|
|
6495
6587
|
// const MAP_STYLE_URL = `https://api.maptiler.com/maps/dataviz/style.json?key=${process.env.NEXT_PUBLIC_MAP_TILER_API_KEY}`
|
|
6496
6588
|
var DATAVIZ_MAP_STYLE_URL = "".concat(REDUS_DATAVIZ_STYLE, "?key=").concat(process.env.NEXT_PUBLIC_MAP_TILER_API_KEY);
|
|
6497
6589
|
var SATELLITE_MAP_STYLE_URL = "https://api.maptiler.com/maps/satellite/style.json?key=".concat(process.env.NEXT_PUBLIC_MAP_TILER_API_KEY);
|
|
6590
|
+
//
|
|
6591
|
+
// For elevation rendering
|
|
6592
|
+
//
|
|
6593
|
+
var DEM_SOURCE_URL = "https://api.maptiler.com/tiles/terrain-rgb-v2/{z}/{x}/{y}.webp?key=".concat(process.env.NEXT_PUBLIC_MAP_TILER_API_KEY);
|
|
6594
|
+
var DEM_SOURCE_ENCODING = 'mapbox';
|
|
6498
6595
|
var MapStyleToggleCtrl = styled.button(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 100px;\n width: 100px;\n\n padding: 0;\n border: none;\n background-color: #efefef;\n border-radius: 0;\n box-shadow:\n rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,\n rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;\n\n cursor: pointer;\n\n &::after {\n z-index: 2;\n content: 'Trocar camada base';\n color: transparent;\n font-weight: bold;\n display: flex;\n padding: 8px;\n justify-content: center;\n align-items: center;\n text-align: center;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0);\n transition: background 0.1s ease-in-out;\n }\n\n &:hover {\n &::after {\n background: rgba(0, 0, 0, 0.5);\n color: white;\n }\n }\n\n @media (max-width: 500px) {\n height: 50px;\n width: 50px;\n &::after {\n font-size: 0.6rem;\n }\n }\n"])));
|
|
6499
6596
|
|
|
6500
6597
|
//
|
|
@@ -6544,6 +6641,15 @@ var BR_BBOX = {
|
|
|
6544
6641
|
},
|
|
6545
6642
|
properties: {}
|
|
6546
6643
|
};
|
|
6644
|
+
var SKY_STYLE = {
|
|
6645
|
+
'sky-color': '#199EF3',
|
|
6646
|
+
'sky-horizon-blend': 0.5,
|
|
6647
|
+
'horizon-color': '#d3edfd',
|
|
6648
|
+
'horizon-fog-blend': 0.5,
|
|
6649
|
+
'fog-color': '#0000ff',
|
|
6650
|
+
'fog-ground-blend': 0.5,
|
|
6651
|
+
'atmosphere-blend': ['interpolate', ['linear'], ['zoom'], 0, 1, 10, 1, 12, 0]
|
|
6652
|
+
};
|
|
6547
6653
|
function GeoReDUSInner(_ref) {
|
|
6548
6654
|
var globalState = _ref.state,
|
|
6549
6655
|
onSetGlobalState = _ref.onSetState,
|
|
@@ -6925,6 +7031,7 @@ function GeoReDUSInner(_ref) {
|
|
|
6925
7031
|
value: municipioId,
|
|
6926
7032
|
onSetValue: setMunicipioId
|
|
6927
7033
|
}))), /*#__PURE__*/React.createElement(SyncedMaps, {
|
|
7034
|
+
maxPitch: 80,
|
|
6928
7035
|
onDrag: function onDrag() {
|
|
6929
7036
|
if (resolvedLayout.length > 1 && leftPanelOpen) {
|
|
6930
7037
|
//
|
|
@@ -6962,6 +7069,7 @@ function GeoReDUSInner(_ref) {
|
|
|
6962
7069
|
},
|
|
6963
7070
|
setPrefetchZoomDelta: 0,
|
|
6964
7071
|
mapStyle: baseMapStyle === 'satellite' ? SATELLITE_MAP_STYLE_URL : DATAVIZ_MAP_STYLE_URL,
|
|
7072
|
+
sky: SKY_STYLE,
|
|
6965
7073
|
tooltip: getTooltip,
|
|
6966
7074
|
maps: resolvedLayout.map(function (_ref6, index) {
|
|
6967
7075
|
var id = _ref6.id,
|
|
@@ -6976,36 +7084,20 @@ function GeoReDUSInner(_ref) {
|
|
|
6976
7084
|
// canvasContextAttributes: {
|
|
6977
7085
|
// preserveDrawingBuffer: true,
|
|
6978
7086
|
// },
|
|
6979
|
-
children: /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
top: 176,
|
|
6984
|
-
right: 12
|
|
6985
|
-
},
|
|
6986
|
-
type: "button",
|
|
6987
|
-
onClick: function onClick() {
|
|
6988
|
-
return setBaseMapStyle(baseMapStyle === 'dataviz' ? 'satellite' : 'dataviz');
|
|
6989
|
-
}
|
|
6990
|
-
}, /*#__PURE__*/React.createElement(MapWindow, {
|
|
7087
|
+
children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AttributionControl, {
|
|
7088
|
+
position: "bottom-right",
|
|
7089
|
+
compact: false
|
|
7090
|
+
}), /*#__PURE__*/React.createElement(ControlContainer, {
|
|
6991
7091
|
style: {
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
height: '100%',
|
|
6997
|
-
width: '100%'
|
|
7092
|
+
width: 'auto',
|
|
7093
|
+
height: 'auto',
|
|
7094
|
+
boxShadow: 'none',
|
|
7095
|
+
opacity: legends.length > 0 ? 1 : 0
|
|
6998
7096
|
},
|
|
6999
|
-
|
|
7000
|
-
}
|
|
7097
|
+
position: "bottom-right"
|
|
7098
|
+
}, legends.length > 0 && /*#__PURE__*/React.createElement(LegendContainer, {
|
|
7001
7099
|
direction: "row",
|
|
7002
7100
|
gap: "3",
|
|
7003
|
-
style: {
|
|
7004
|
-
position: 'absolute',
|
|
7005
|
-
bottom: '20px',
|
|
7006
|
-
right: '10px',
|
|
7007
|
-
zIndex: 20
|
|
7008
|
-
},
|
|
7009
7101
|
p: resolvedLayout.length > 1 ? '3' : '4'
|
|
7010
7102
|
}, resolvedLayout.length > 1 && /*#__PURE__*/React.createElement(Tooltip, {
|
|
7011
7103
|
content: "Fechar visualiza\xE7\xE3o"
|
|
@@ -7036,16 +7128,44 @@ function GeoReDUSInner(_ref) {
|
|
|
7036
7128
|
}, {
|
|
7037
7129
|
key: legend.id
|
|
7038
7130
|
}, legend));
|
|
7039
|
-
}))), index === resolvedLayout.length - 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GeolocateControl, {
|
|
7131
|
+
})))), index === resolvedLayout.length - 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GeolocateControl, {
|
|
7132
|
+
position: "top-right"
|
|
7133
|
+
}), /*#__PURE__*/React.createElement(FullscreenControl, {
|
|
7040
7134
|
position: "top-right"
|
|
7041
7135
|
}), /*#__PURE__*/React.createElement(NavigationControl, {
|
|
7042
7136
|
position: "top-right"
|
|
7043
7137
|
}), /*#__PURE__*/React.createElement(ScaleControl, {
|
|
7044
|
-
position: "
|
|
7045
|
-
}), /*#__PURE__*/React.createElement(
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7138
|
+
position: "bottom-right"
|
|
7139
|
+
}), /*#__PURE__*/React.createElement(ControlContainer, {
|
|
7140
|
+
style: {
|
|
7141
|
+
width: 100,
|
|
7142
|
+
height: 100,
|
|
7143
|
+
boxShadow: 'none'
|
|
7144
|
+
}
|
|
7145
|
+
}, /*#__PURE__*/React.createElement(MapStyleToggleCtrl, {
|
|
7146
|
+
style: {
|
|
7147
|
+
position: 'relative',
|
|
7148
|
+
width: 100,
|
|
7149
|
+
height: 100
|
|
7150
|
+
},
|
|
7151
|
+
type: "button",
|
|
7152
|
+
onClick: function onClick() {
|
|
7153
|
+
return setBaseMapStyle(baseMapStyle === 'dataviz' ? 'satellite' : 'dataviz');
|
|
7154
|
+
}
|
|
7155
|
+
}, /*#__PURE__*/React.createElement(MapWindow, {
|
|
7156
|
+
style: {
|
|
7157
|
+
pointerEvents: 'none',
|
|
7158
|
+
position: 'absolute',
|
|
7159
|
+
top: 0,
|
|
7160
|
+
left: 0,
|
|
7161
|
+
height: '100%',
|
|
7162
|
+
width: '100%'
|
|
7163
|
+
},
|
|
7164
|
+
mapStyle: baseMapStyle === 'satellite' ? DATAVIZ_MAP_STYLE_URL : SATELLITE_MAP_STYLE_URL
|
|
7165
|
+
})))) : null, /*#__PURE__*/React.createElement(TerrainControl, {
|
|
7166
|
+
demSourceUrl: DEM_SOURCE_URL,
|
|
7167
|
+
demSourceEncoding: DEM_SOURCE_ENCODING
|
|
7168
|
+
}))
|
|
7049
7169
|
};
|
|
7050
7170
|
})
|
|
7051
7171
|
}, isLoading && /*#__PURE__*/React.createElement(LoadingIndicator, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redus/georedus-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@orioro/react-csv": "^0.0.2",
|
|
44
44
|
"@orioro/react-dialogs": "^0.0.2",
|
|
45
45
|
"@orioro/react-dir-nav": "^0.1.0",
|
|
46
|
-
"@orioro/react-maplibre-util": "^0.
|
|
46
|
+
"@orioro/react-maplibre-util": "^0.2.0",
|
|
47
47
|
"@orioro/react-sortable": "^0.0.2",
|
|
48
48
|
"@orioro/react-ui-core": "^0.0.6",
|
|
49
49
|
"@orioro/resolve": "^0.1.2",
|