ramnathv / rMaps

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

marker size and color #67

Open alphankirayoglu opened 10 years ago

alphankirayoglu commented 10 years ago

How can I control the color and size of markers after following the example code? Or in general customize the icons by passing an L.icon object when creating markers?

Thanks!

L2 <- Leaflet$new() L2$setView(c(40.7569,-73.9544), 13) L2$tileLayer(provider = "MapQuestOpen.OSM") L2$marker(c(40.7569,-73.9544)) L2$marker(c(40.7669,-73.9544))

ramnathv commented 10 years ago

Did you solve this issue?

alphankirayoglu commented 10 years ago

I just reopened it. I thought I could follow one of the examples using the circle rather than marker, but it was not successful.

ghost commented 8 years ago

Is there a way to do this? In Leaflet, you can make an icon with L.icon() which has attributes like size and color, but how do you do that with rMaps?

something like

map$marker( c(35.4, -80), color = 'orange', bindPopup = 'this is an orange marker' )

?