Announcement

Collapse
No announcement yet.

Stopping the mouse drag event from moving the globe

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stopping the mouse drag event from moving the globe

    Hi,

    I have a web application that is running Worldwind Web and I want to sometimes prevent the user from rotating the globe using mouse drag. I am essentially trying to find a way to turn that function "off" temporarily.

    Does anyone know a way to alter or prevent what happens during a WorldWindow event?

    Thanks in advance,
    Michael

  • #3
    One option is to kill all mouse interaction till you change it. wwd.canvas.style.pointerEvents = 'none';

    Or with an event listener...

    Code:
      wwd.addEventListener('pointermove', (e) => {
        e.preventDefault();
      });

    Comment


    • #4
      Hi Fred,
      Thanks for the updates I am watching with interest. I have been working a while with the Android and performance is my focus. I recently did what you are doing for air station monitoring and other areas. I got up to 50k placemarks before I had to focus on other areas. I never used the web version of WW since it was just starting out and had a ways to go before I would consider it. It also uses Java Script which I felt would never scale to what I needed. Someone else here asked for advice and the best I could give to him was use a profiler and treat every line of code as your enemy. The design was so different he was working with and I knew none of it I could not help. But knowing your requirements is critical. Remember it is not performance you are fighting but maybe also memory usage. Depends upon your hardware and OS constraints of which mine are severe. I would look at Vulkan with WebGL if I were you. I hope to have it on the Android in the next couple of months which will help me hopefully perform better than OpenGL ES. I am happy with 50k placemarks and some lagging but want 400k if memory permits. I plan to do a demo video of my project in the next couple of weeks before I release it to the public. I am focused on public safety.
      Good Luck,
      Tony Anecito
      Founder/President
      MyUniPortal LLC
      http://www/myuniportal.com

      Comment


      • #5
        It is really an informative post and it gives me more information about the mouse drag event. at&t signal booster The link you have shared also good and it gave a detailed description too. These links make this post more understandable and it is a very useful post too.
        One of the biggest problems faced by mobile phone users now a days are dropped calls coupled with bad signal strengths and there are few reasons that
        Last edited by ivaanadam; 06-04-2020, 04:54 AM.

        Comment


        • #6
          thank you it gives me more information about the mouse drag event.
          Sarkari Result - Find Latest September Jobs, Exams Notification 2020 at SrakariResult. this is the most populer website in india.

          Comment


          • #7
            Thankyou its a great post, reading related articles to add more info to my knowledge.
            The planet today - tech bits today

            Comment

            Working...
            X