NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


This is an OpenLayers question and not OpenStreetMap-related.

permanent link

answered 26 Mar '13, 10:16

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×13
×1

question asked: 26 Mar '13, 02:14

question was seen: 3,501 times

last updated: 26 Mar '13, 10:35

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum