RuijieRa / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

EXHIBIT: Error messages with colorCoder #368

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to create a Map View in Exhibit with markers shown in a color
gradient. The code works fine with a sizeCoder:
http://users.drew.edu/criihimaki/clinker.html

However, error windows appear when I try to modify the code for a colorCoder:
http://users.drew.edu/criihimaki/clinker2.html

I get the error "Failed to create view MAP LOCATIONS" and two errors
stating "Caught exception: undefined
Details: TypeError: this._dom.legendWidget is undefined"

From one code to the other, I changed: 
coderClass from SizeGradient to ColorGradient
gradientPoints from "0, 10; 1500, 30" to "0, #ffffff; 1500, #000000"
sizeKey to colorKey
sizeCoder to colorCoder
sizeLegendLabel to colorLegendLabel

I am using Firefox 3.6.3 on MacOS 10.5.8.

Thanks for any help!

Original issue reported on code.google.com by catherin...@gmail.com on 13 May 2010 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:28