Giter VIP home page Giter VIP logo

Comments (9)

theopolisme avatar theopolisme commented on July 20, 2024

Hey, thanks for message! Sorry you're encountering that error. It sounds like some sort of memory limitation in JavaScript -- I've processed a file ~300mb with no problems, though, so maybe it's on an individual basis? I'd need to do some more experimentation.

Although it's not really a solution, in ba28320 I did add an alternate upload method that uses Google's internal KML endpoint as opposed to Google Takeout – the KML file is much smaller than the JSON from Takeout, so maybe it's worth giving that a shot... (just use the link on the homepage of the visualizer).

Hope this helps! Please let me know what you discover.

from location-history-visualizer.

individual8 avatar individual8 commented on July 20, 2024

Hmm, that doesn't work either it seems. Ending up with (error: Unexpected token <)

from location-history-visualizer.

theopolisme avatar theopolisme commented on July 20, 2024

Your browser may be using a cached version of the JavaScript... Try shift-reloading, perhaps? (The file index.js should match that in the master branch.)

from location-history-visualizer.

individual8 avatar individual8 commented on July 20, 2024

I get that last error when dragging the downloaded KML onto the site. Even after I tried to shift-reload the tool.

from location-history-visualizer.

theopolisme avatar theopolisme commented on July 20, 2024

Sounds like maybe GitHub Pages is doing some caching on its own... I just tried to initiate a cache purge. Maybe that will help.

Sorry for the difficulty getting this working! Can you verify that the index.js file you're being served contains the string "kml"?

from location-history-visualizer.

theopolisme avatar theopolisme commented on July 20, 2024

The reason I feel like you're getting a cached file is because the Unexpected token error is a JSON.parse error, not from the KML parser... Which means either you're getting an old version of the js or there's something wrong in the KML detection.

from location-history-visualizer.

individual8 avatar individual8 commented on July 20, 2024

Yep, index.js contains a method called getLocationDataFromKml().

from location-history-visualizer.

theopolisme avatar theopolisme commented on July 20, 2024

Really strange. You tried uploading again after you verified that the getLocationDataFromKml method was present, and you still saw that error? Hmm...

from location-history-visualizer.

individual8 avatar individual8 commented on July 20, 2024

I did.

from location-history-visualizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.