Code Monkey home page Code Monkey logo

Comments (6)

corrigancd avatar corrigancd commented on August 19, 2024 1

Have replicated this (top image). When I zoom out, it's fine. The parameters required to make each map are also specified:
image

from leaflet.heat.

jxn-30 avatar jxn-30 commented on August 19, 2024 1

As a workaround: Import simpleheat 0.3.0 or later after importing Leaflet.heat.

Leaflet.heat includes a simpleheat version from 2014:

/*
(c) 2014, Vladimir Agafonkin
simpleheat, a tiny JavaScript library for drawing heatmaps with Canvas
https://github.com/mourner/simpleheat
*/

The issue has been resolved in simpleheat in 2015: mourner/simpleheat#14, Version 0.3.0 has been released afterwards.

Using TypeScript and Webpack, we achieved this workaround: LSS-Manager/LSSM-V.4@7d07baa importing Leaflet.heat first, then simpleheat and afterwards we've assigned the imported simpleheat to the global scope.

from leaflet.heat.

mpraus avatar mpraus commented on August 19, 2024

This doesn't only happen when the radius is over 80. I have the same issue with a higher blur value. As far as I can tell it only happens when the blur value is greater than or equal to the radius with the size of the object increases with the blur value.

Code to reproduce issue:

 heatLayer = L.heatLayer(heatdata, {radius: 75,  gradient: gradient, blur: 80, maxZoom:18});
 heatLayer.addTo(map);

image

As far as I can tell your issue isn't really a radius of 80 but rather that the blur level is too high. It does appear to become problematic with a radius over about 100, regardless of the blur value. I believe it has something to do with the fact that a large number of points end up overlapping.

from leaflet.heat.

Sergiobop avatar Sergiobop commented on August 19, 2024

Hi @jxn-30 is a release possible with this fix included? Thanks

from leaflet.heat.

jxn-30 avatar jxn-30 commented on August 19, 2024

Hi @jxn-30 is a release possible with this fix included? Thanks

I am not a maintainer of this project, so I am not in the power to do so. However, there already exists an Issue that also requests a new release: #132

from leaflet.heat.

Sergiobop avatar Sergiobop commented on August 19, 2024

Oh, ok, thank you anyway. I guess @IvanSanchez can do the new release?

Hi @jxn-30 is a release possible with this fix included? Thanks

I am not a maintainer of this project, so I am not in the power to do so. However, there already exists an Issue that also requests a new release: #132

from leaflet.heat.

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.