Hi all,
getting my feet wet in the javascript API after doing my best to avoid web mapping for years.
Ive been deconstructing the class breaks visualisation sample, to try get the sizeRendererCreator running using a HTML field selection as the variable.
i.e.
<div id="infoDiv" class="esri-widget">
Select Isotope:
<select id="field-select" class="esri-widget">
<option value="S_34">Sulfur</option>
<option value="B_10">Boron</option>
<option value="P_31">Phosphorus</option></select>
Unfortunately, while it works fine on the first selection (sulfur), it fails on the 2nd and 3rd. if I juggle the fields so they are at the top of the list, the sizes work fine. Given that, it seem that a) the selected variable isnt being handed off to the jscript correctly, or b) the renderer is being created.
Ive compared the code (https://codepen.io/kurtj/pen/oqmdrZ?editors=1000 ) to the original and for the life of me I cant see what i have done wrong.
Its likely something simple. Any suggestions would be great.
Cheers
Kurt
Kurt,
You just need to refresh the layer (line 15).