Giter VIP home page Giter VIP logo

Comments (6)

rbrumley-tescometering avatar rbrumley-tescometering commented on August 24, 2024 1

It might be a long shot, but do you have some markers with the 0, 0 values as the position ? I've got the same issue and made a PR for it #892.

0_0

I filtered out all markers with lat=0 and long=0 and it worked.

from js-markerclusterer.

bdcoder2 avatar bdcoder2 commented on August 24, 2024

Just curious - are there any "irregularities" (size or bounds) with the dataset for the specific client?

from js-markerclusterer.

rbrumley-tescometering avatar rbrumley-tescometering commented on August 24, 2024

Just curious - are there any "irregularities" (size or bounds) with the data for the customer that the clusterer does not function?

Bounds? No. The number of markers being manipulated is less than other clients. Overall memory size? Unknown. One thing that I do notice is that the map for the problem client loads a lot more slowly than the map for other clients. I will check.

from js-markerclusterer.

rbrumley-tescometering avatar rbrumley-tescometering commented on August 24, 2024

I don't know if I am doing it correctly, but the memory allocation for the markers array in the Chrome "Memory" tab Allocation Timeline measurement looks to be about 2.5 times what it is for a client of similar number of markers (app. 60 MB versus app. 26MB)

To confirm I have the right number, how would you suggest I grab the memory size of the markers algorithm?

from js-markerclusterer.

bdcoder2 avatar bdcoder2 commented on August 24, 2024

You would need a memory profiler to verify. Sounds like there may be a lot more data associated with the markers for the specific client (just guessing -- would need a deeper dive into the data set).

From what I have noticed since Google maps "upgrade" to AdvancedMarker elements is that the number of markers that can be created (compared with "classic" markers) has gone down dramatically. For example, using "classic" markers, I was able to create 6 million markers on an older Windows 10 machine running an Intel i7 processor with 32GB of RAM. Using the same machine and test with advanced markers, Chrome becomes unresponsive at around the 260,000 markers, which leads me to think that the advanced markers are much more "memory heavy" than the classic markers (but Google would have to confirm this).

Also, there is an inherent flaw in the design of the clusterer because it uses map markers as input - which is a colossal waste of memory - as relatively few "map markers" are displayed in the map viewport relative to the overall (large) dataset. This is illustrated in a test I created regarding Creating data points vs creating Google map markers.

from js-markerclusterer.

s-montigny-desautels avatar s-montigny-desautels commented on August 24, 2024

It might be a long shot, but do you have some markers with the 0, 0 values as the position ? I've got the same issue and made a PR for it #892.

from js-markerclusterer.

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.