Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compatible with crs:L.CRS.Simple #3

Closed
collinotis opened this issue Jan 8, 2014 · 2 comments
Closed

Make compatible with crs:L.CRS.Simple #3

collinotis opened this issue Jan 8, 2014 · 2 comments

Comments

@collinotis
Copy link

@ursudio @bozdoz

It would be nice if this library was compatible with L.CRS.Simple coordinates. It looks like the heatmap scales with lat/long somehow so it doesnt really work too well. See image below. (I am using for indoor mapping) The code for the three points is below as well.

image

heatmap = new L.TileLayer.WebGLHeatMap(
{
size:1000000
opacity:0.7
alphaRange:0.001
gradientTexture:false
}
)

  heatmap.addDataPoint(50,0,100)
  heatmap.addDataPoint(0,0,100)
  heatmap.addDataPoint(70,0,100)
@collinotis
Copy link
Author

if anyone has a quick fix for this, it would be a big help

@collinotis
Copy link
Author

ah, i see it now, its in the _scale function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant