• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Developing USGS Earthquake Map (2MB GIf warning) Topic 2

Scheduled Pinned Locked Moved Development
13 Posts 5 Posters 7.4k Views 5 Watching
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.
  • M Offline
    morozgrafix Moderator
    last edited by morozgrafix Jan 6, 2017, 1:09 AM Jan 6, 2017, 1:05 AM

    This may help you get going with hiding http://zeleniy.me/globe.html also this seems to do what you are trying to achieve http://bl.ocks.org/PatrickStotz/1f19b3e4cb848100ffd7

    1 Reply Last reply Reply Quote 0
    • C Offline
      croxis
      last edited by croxis Jan 10, 2017, 12:00 AM Jan 9, 2017, 11:56 PM

      Yes! Thank you. I think one of the problems I am running into is that I am currently rendering in a canvas, while many examples, including the ones you link, are svg based. I’ve started researching this a bit and it looks like svg is preferred except for games.

      I’ve also poked the firefox developer tools, I have a memory leak and it is with some arrays, but I can’t figure out any further details. Any suggestions?

      1 Reply Last reply Reply Quote 0
      • B Offline
        bhepler Module Developer
        last edited by bhepler Jan 16, 2017, 2:22 PM Jan 16, 2017, 2:17 PM

        Thank you for the inspiration. At the moment, this is a work in progress.
        Globe module - Work in progress

        It’s a very basic implementation of planetary.js. But it seems to be a mature framework.

        1 Reply Last reply Reply Quote 2
        • C Offline
          croxis
          last edited by Jan 16, 2017, 9:52 PM

          That looks real nice! That was one of the frameworks I was eyeing

          B 1 Reply Last reply Jan 16, 2017, 10:25 PM Reply Quote 0
          • P Offline
            paviro Admin
            last edited by Jan 16, 2017, 10:02 PM

            You can now also edit your posts, once you fixed your last bugs :) Just make sure the conversation stays understandable by not removing your original post but instead adding a second section:


            Version 2

            We're all stories in the end. Just make it a good one, eh?

            – The Doctor

            1 Reply Last reply Reply Quote 1
            • B Offline
              bhepler Module Developer @croxis
              last edited by Jan 16, 2017, 10:25 PM

              @croxis Thank you. The plan is to get it working and then release it as MMM-GlobeJS. Then try it using the WebGL rendering and release that one as MMM-GlobeGL. We’ll see if my ambitions get the better of me.

              It only took a few hours to get the globe up, but my Javascript skills are rudimentary. Also, I haven’t tested this on a Pi, as I’m building the next mirror for my office and they gave me a FitLet PC to use for the project.

              S 1 Reply Last reply Jan 16, 2017, 10:30 PM Reply Quote 0
              • S Offline
                strawberry 3.141 Project Sponsor Module Developer @bhepler
                last edited by Jan 16, 2017, 10:30 PM

                @bhepler would be nice to see it as one module with the ability to choose between canvas and webgl in config

                Please create a github issue if you need help, so I can keep track

                B 1 Reply Last reply Jan 16, 2017, 10:31 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @strawberry 3.141
                  last edited by Jan 16, 2017, 10:31 PM

                  @strawberry-3.141 Hah! Don’t ask for much, do you? Have you seen my Javascript skills?

                  That said… good idea!

                  S 1 Reply Last reply Jan 16, 2017, 10:37 PM Reply Quote 0
                  • C Offline
                    croxis
                    last edited by Jan 16, 2017, 10:37 PM

                    I feel you on the javascript skills. I switched from canvas to svg and now nothing is rendering sigh.

                    The reason why I went with d3 (which planetary.js is based on) is because d3 can also render flat maps. Rasp pis might not have enough oomph to run spinning globes so my hope was to have flat maps as an option

                    B 1 Reply Last reply Jan 16, 2017, 10:43 PM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @bhepler
                      last edited by Jan 16, 2017, 10:37 PM

                      @bhepler i guess if you can do it in two, you are also able to do it in one. if you can’t there are enough people to help

                      Please create a github issue if you need help, so I can keep track

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/13
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy