Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting marker opacity and colour #92

Open
navaneethans1 opened this issue Feb 23, 2015 · 1 comment
Open

Setting marker opacity and colour #92

navaneethans1 opened this issue Feb 23, 2015 · 1 comment

Comments

@navaneethans1
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants