This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] Multiple Heatmap Layers (Heatmap.js)

0

Hello -- I apologize in advance for the rookie question, but I'm trying to create a page with toggle buttons for multiple heatmap layers. I'd like to be able to turn off/on different heatmap layers. I've included my code below, I'm getting the first heatmap layer to render, but I can't seem to get the second layer to render via the toggle button.

I think the problem might be the way I'm defining var's TestData and TestData2. I'm not sure if there is a better way to define multiple "data" variables"

[Listing removed for readability]

asked 26 Mar '13, 02:14

davidson12's gravatar image

davidson12
11112
accept rate: 0%

edited 26 Mar '13, 10:35

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108

The question has been closed for the following reason “Question is off-topic or not relevant” by Richard 26 Mar ‘13, 10:16


One Answer:

0

This is an OpenLayers question and not OpenStreetMap-related.

answered 26 Mar '13, 10:16

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

Source code available on GitHub .