OK, i did try your example and the circles disappear, but never
update. Then, nothing. there are no errors in the inspect element of
chrome under the console, nothing updates, it just kinda freezes
there. I can see the queries being pulled in the webrick server logs.
a prettier image of the code is here http://pastie.org/3014696
(also more complete).
I know i am fumbling over something obvious here, but just cannot seem
to work it out.
when i use the request address update_mapv3_circles in a browser, this
is the response
[["35.931341","-102.32205",381.75,287.4,"AL","AL",
557,"#7F7F7F","#FF0000",287.8,287.6,"AL<br>0 psi",0],
["35.88125039","-102.3088989",525.0,83.4,"DC","DC",
34280,"#7F7F7F","#FF0000",83.6,83.1,"DC<br>0 psi",0],
["35.88125039","-102.3226989",525.0,81.7,"DC2","DC2",
37241,"#000000","#FF0000",81.7,81.7,"DC2<br>0 psi",0],
["35.92361","-102.308768",534.75,74.8,"J1","J1",
559,"#7F7F7F","#FF0000",74.6,74.5,"J1<br>0 psi",0],
["35.92332","-102.32096",493.5,261.0,"J2","J2",560,"#7F7F7F","#FF0000",
261.0,261.0,"J2<br>0 psi",0],["35.931354","-102.31308",
397.5,82.1,"SL1","SL1",561,"#7F7F7F","#FF0000",80.9,81.9,"SL1<br>0
psi",0],["35.931186","-102.304202",390.0,165.4,"SL2","SL2",
110823130,"#7F7F7F","#FF0000",165.5,165.6,"SL2<br>0 psi",0],
["35.938729","-102.29968",397.5,89.3,"SL4","SL4",
563,"#7F7F7F","#FF0000",89.3,89.3,"SL4<br>0 psi",0],
["35.931301","-102.29965",397.5,23.4,"SL5","SL5",
564,"#7F7F7F","#FF0000",23.0,23.4,"SL5<br>0 psi",0],
["35.924694","-102.299034",333.75,95.8,"SL6","SL6",
7882,"#7F7F7F","#FF0000",95.8,95.8,"SL6<br>0 psi",0]]
in the view source of the website where <%= @mapped_sites.to_json %>
is , i have this
var sites = [["35.931341","-102.32205",381.75,287.4,"AL","AL",
557,"#7F7F7F","#FF0000",287.8,287.6,"AL<br>0 psi",0],
["35.88125039","-102.3088989",525.0,83.4,"DC","DC",
34280,"#7F7F7F","#FF0000",83.6,83.1,"DC<br>0 psi",0],
["35.88125039","-102.3226989",525.0,81.7,"DC2","DC2",
37241,"#000000","#FF0000",81.7,81.7,"DC2<br>0 psi",0],
["35.92361","-102.308768",534.75,74.8,"J1","J1",
559,"#7F7F7F","#FF0000",74.6,74.5,"J1<br>0 psi",0],
["35.92332","-102.32096",493.5,261.0,"J2","J2",560,"#7F7F7F","#FF0000",
261.0,261.0,"J2<br>0 psi",0],["35.931354","-102.31308",
397.5,82.1,"SL1","SL1",561,"#7F7F7F","#FF0000",80.9,81.9,"SL1<br>0
psi",0],["35.931186","-102.304202",390.0,165.4,"SL2","SL2",
110823130,"#7F7F7F","#FF0000",165.5,165.6,"SL2<br>0 psi",0],
["35.938729","-102.29968",397.5,89.3,"SL4","SL4",
563,"#7F7F7F","#FF0000",89.3,89.3,"SL4<br>0 psi",0],
["35.931301","-102.29965",397.5,23.4,"SL5","SL5",
564,"#7F7F7F","#FF0000",23.0,23.4,"SL5<br>0 psi",0],
["35.924694","-102.299034",333.75,95.8,"SL6","SL6",
7882,"#7F7F7F","#FF0000",95.8,95.8,"SL6<br>0 psi",0]];
Anyway, thanks for all of your help so far, this is at least less
baffling to me than it was a couple of days ago.
sk