File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,24 @@ const MapSite: NextPage = (energyData: any) => {
168
168
// isFixed: true
169
169
disableBeacon : true ,
170
170
} ,
171
+ {
172
+ target : '.introbtn' ,
173
+ content : '???' ,
174
+ title : 'Wärem' ,
175
+ // isFixed: true
176
+ disableBeacon : true ,
177
+ } ,
171
178
{
172
179
target : '.introbtn' ,
173
180
content : 'END' ,
174
- title : 'This is my awesome feature!' ,
181
+ title : 'Strom' ,
182
+ // isFixed: true
183
+ disableBeacon : true ,
184
+ } ,
185
+ {
186
+ target : '.introbtn' ,
187
+ content : 'END' ,
188
+ title : 'END' ,
175
189
// isFixed: true
176
190
disableBeacon : true ,
177
191
} ,
@@ -202,8 +216,26 @@ const MapSite: NextPage = (energyData: any) => {
202
216
setJoyrideIndex ( 0 )
203
217
}
204
218
219
+ console . log ( type )
220
+
221
+ if ( type === 'tour:end' ) {
222
+ console . log ( 'HUHUHUHU' )
223
+
224
+ // setRunJoyride(false)
225
+ // setJoyrideIndex(0)
226
+ }
227
+
205
228
if ( tempIndex === 1 ) {
206
- setMapZoom ( 12 )
229
+ setZoomToCenter ( [ 13.30429217 , 52.49626599 ] )
230
+ }
231
+ if ( tempIndex === 2 ) {
232
+ setMapZoom ( 10 )
233
+ }
234
+ if ( tempIndex === 3 ) {
235
+ setConsumptionType ( 'electricity' )
236
+ }
237
+ if ( tempIndex === 4 ) {
238
+ setConsumptionType ( 'heat' )
207
239
}
208
240
}
209
241
}
@@ -215,7 +247,6 @@ const MapSite: NextPage = (energyData: any) => {
215
247
callback = { handleJoyrideCallback }
216
248
run = { runJoyride }
217
249
steps = { steps }
218
- debug
219
250
showProgress
220
251
disableScrolling = { false }
221
252
disableScrollParentFix
You can’t perform that action at this time.
0 commit comments