Kelbec commited on
Commit
36ceb34
1 Parent(s): 71f23e9
Files changed (2) hide show
  1. .gitignore +2 -1
  2. pages/visualization.py +7 -7
.gitignore CHANGED
@@ -1 +1,2 @@
1
- venv
 
 
1
+ venv
2
+ .token
pages/visualization.py CHANGED
@@ -26,9 +26,9 @@ config = {'version': 'v1',
26
  'highlightColor': [252, 242, 26, 255],
27
  'columns': {'geojson': '_geojson'},
28
  'isVisible': True,
29
- 'visConfig': {'opacity': 0.8,
30
- 'strokeOpacity': 0.3,
31
- 'thickness': 1,
32
  'strokeColor': [210, 0, 0],
33
  'colorRange': {'name': 'Global Warming',
34
  'type': 'sequential',
@@ -136,10 +136,10 @@ class Map(leafmap.Map):
136
  },
137
  'mapState': {'bearing': 0,
138
  'dragRotate': False,
139
- 'latitude': 44.43329,
140
- 'longitude': 10.653654,
141
  'pitch': 0,
142
- 'zoom': 12.776177236597563,
143
  'isSplit': False},
144
  'visState': {
145
  'layers': [
@@ -172,7 +172,7 @@ def MapComponent(lat,lon):
172
  zoom=zoom.value,
173
  on_zoom=zoom.set,
174
  center=(lat,lon),
175
- on_center=center.set,
176
  scroll_wheel_zoom=True,
177
  toolbar_ctrl=False,
178
  data_ctrl=False,
 
26
  'highlightColor': [252, 242, 26, 255],
27
  'columns': {'geojson': '_geojson'},
28
  'isVisible': True,
29
+ 'visConfig': {'opacity': 10.8,
30
+ 'strokeOpacity': 10.3,
31
+ 'thickness': 11,
32
  'strokeColor': [210, 0, 0],
33
  'colorRange': {'name': 'Global Warming',
34
  'type': 'sequential',
 
136
  },
137
  'mapState': {'bearing': 0,
138
  'dragRotate': False,
139
+ 'latitude': self.center[0],
140
+ 'longitude': self.center[1],
141
  'pitch': 0,
142
+ 'zoom': 14.5,
143
  'isSplit': False},
144
  'visState': {
145
  'layers': [
 
172
  zoom=zoom.value,
173
  on_zoom=zoom.set,
174
  center=(lat,lon),
175
+ on_center=center.set((lat,lon)),
176
  scroll_wheel_zoom=True,
177
  toolbar_ctrl=False,
178
  data_ctrl=False,