ramnathv / rMaps

Interactive Maps from R
http://rmaps.github.io
389 stars 194 forks source link

Setting marker opacity and colour #92

Open navaneethans1 opened 9 years ago

navaneethans1 commented 9 years ago

Hi Ramnath,

This is a fantastic package, thanks for making it.

I'm trying to change the opacity of markers in my map and I'm not able to. I thought the following would work:

for(i in 1:dim(data)[1]) {
  map2$marker(
    c(data$latitude[i], data$longitude[i]),
    setOpacity = data$opacity[i],
    bindPopup = paste(data$AREA[i], '|', 'Score =', data$score[i])
    )
  }

Any idea what I'm doing wrong? Separately, is there a way to programmatically change the colour of the marker based on the data?

Thanks!

imlearningr commented 8 years ago

I am so in need to change the opacity or color of the markers. Have you figured it out Nsanthanam? I would really appreciate if you could share with me.