Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    how to disable webcams ??

    Windy API v4
    3
    24
    9.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 어
      어바웃피싱 @Suty
      last edited by

      @Ondřej-Šutera
      next.js code is

      const Weather: WeatherFC = (props) => {
        const query = useMemo(() => {
          const query = qs.stringify(props.windyQueryOption)
          return query
        }, [props.windyQueryOption])
      
        return (
          <iframe>
        )
      }
      
      export const getServerSideProps: GetServerSideProps = async (
        ctx: GetServerSidePropsContext
      ) => {
        const DEFAULT_LATITUDE = 35.77086685957337
        const DEFAULT_LONGITUDE = 127.718805751910595
        const DEFAULT_ZOOM = 7
      
        const { detail, detailLat, detailLon, zoom } = ctx.query
      
        let windyQueryOption: WindyQueryOption = {
          lat: DEFAULT_LATITUDE,
          lon: DEFAULT_LONGITUDE,
          detailLat: detailLat ? parseFloat(detailLat as string) : DEFAULT_LATITUDE,
          detailLon: detailLon ? parseFloat(detailLon as string) : DEFAULT_LONGITUDE,
          zoom: zoom ? parseInt(zoom as string) : DEFAULT_ZOOM,
          level: 'surface',
          overlay: 'wind',
          product: 'ecmwf',
          calendar: 'now',
          type: 'map',
          location: 'coordinates',
          metricWind: 'default',
          metricTemp: 'default',
          radarRange: -1,
        }
      
        if (detail === 'true') {
          windyQueryOption = {
            ...windyQueryOption,
            detail: true,
          }
        }
      
        return {
          props: {
            windyQueryOption,
            ...(await serverSideTranslations(ctx.locale as string, ['common'])),
          },
        }
      }
      
      

      and react-native use webView that webview url is next.js url

      1 Reply Last reply Reply Quote 0
      • 어
        어바웃피싱 @Suty
        last edited by

        @Ondřej-Šutera

        next.js iframe option code is

        
              id={'windyMap'}
              style={{ width: '100%', height: '100vh' }}
              src={`https://embed.windy.com/embed2.html?${query}`}
          
        
        
        1 Reply Last reply Reply Quote 0
        • 어
          어바웃피싱 @Suty
          last edited by

          @Ondřej-Šutera show webcams when bottom detail sheet touch up

          IMG_0AF92149CF42-1.jpeg

          1 Reply Last reply Reply Quote 0
          • 어
            어바웃피싱
            last edited by

            @Suara-Bahana issue not solve

            SutyS 1 Reply Last reply Reply Quote 0
            • SutyS
              Suty Administrator @어바웃피싱
              last edited by

              @어바웃피싱 And do you want to use only Map API or the webcam API?

              어 1 Reply Last reply Reply Quote 0
              • 어
                어바웃피싱 @Suty
                last edited by

                @Ondřej-Šutera just map api

                SutyS 1 Reply Last reply Reply Quote 0
                • SutyS
                  Suty Administrator @어바웃피싱
                  last edited by

                  @어바웃피싱 Can we get any access to the app, so our colleagues from the dev team can take a look at that?

                  어 2 Replies Last reply Reply Quote 0
                  • 어
                    어바웃피싱 @Suty
                    last edited by

                    @Ondřej-Šutera what is OS Platform?

                    SutyS 1 Reply Last reply Reply Quote 0
                    • 어
                      어바웃피싱 @Suty
                      last edited by

                      @Ondřej-Šutera no need for os,url is https://dev-app-bridge.aboutfishing.kr/weather/map?detail=true

                      1 Reply Last reply Reply Quote 0
                      • SutyS
                        Suty Administrator @어바웃피싱
                        last edited by

                        @어바웃피싱 What do you mean exactly?

                        어 1 Reply Last reply Reply Quote 0
                        • 어
                          어바웃피싱 @Suty
                          last edited by

                          @Ondřej-Šutera issue is that show webcams when bottom detail sheet touch(click) up.
                          i need to option disable bottom detail sheet touch up.

                          example shcreen shot
                          스크린샷 2023-08-25 오후 2.35.15.png

                          SutyS 1 Reply Last reply Reply Quote 0
                          • SutyS
                            Suty Administrator @어바웃피싱
                            last edited by

                            @어바웃피싱 Can you try to delete the cache and local storage? Also do you have this issue in all browsers, or which ones did you test?

                            어 1 Reply Last reply Reply Quote 0
                            • 어
                              어바웃피싱 @Suty
                              last edited by

                              @Ondřej-Šutera i test chrome and safari
                              same issue after delete the cache and local storage.
                              Can't prevent touch ups?

                              SutyS 1 Reply Last reply Reply Quote 0
                              • SutyS
                                Suty Administrator @어바웃피싱
                                last edited by

                                @어바웃피싱 So you want to prevent displaying the forecast details after tapping into the map, am I right?

                                어 2 Replies Last reply Reply Quote 0
                                • 어
                                  어바웃피싱 @Suty
                                  last edited by

                                  @Ondřej-Šutera i want to prevent webcams when touch ups the the forecast details

                                  1 Reply Last reply Reply Quote 0
                                  • 어
                                    어바웃피싱 @Suty
                                    last edited by

                                    @Ondřej-Šutera using embedded-page-on-widget as an iframe. webcam overlay is inconvenience. Is there a way to turn off the webcam overlay?

                                    SutyS 1 Reply Last reply Reply Quote 0
                                    • SutyS
                                      Suty Administrator @어바웃피싱
                                      last edited by Suty

                                      @어바웃피싱 How can we replicate the issue with webcams? I checked your app and I am not able to display anything related to webcams.

                                      어 2 Replies Last reply Reply Quote 0
                                      • 어
                                        어바웃피싱 @Suty
                                        last edited by

                                        @Ondřej-Šutera It appears when you touch up the detail part of the map on mobile. Not on pc.스크린샷 2023-08-30 오전 8.37.28.png

                                        1 Reply Last reply Reply Quote 0
                                        • 어
                                          어바웃피싱 @Suty
                                          last edited by

                                          @Ondřej-Šutera Can't reproduce it?

                                          SutyS 1 Reply Last reply Reply Quote 0
                                          • SutyS
                                            Suty Administrator @어바웃피싱
                                            last edited by

                                            @어바웃피싱 Yes, we can handle that. But I see that you used our embed for your app, am I right?

                                            어 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                                            NodeBB & contributors, OSM & contributors, HERE maps
                                            Terms of Use     Privacy Policy