allow to define groups of markers.#2
Conversation
|
@Lumannnn, thanks for starting the conversation! This functionality was definitely on my radar, and definitely useful. I'll have a look soon as what you wrote, and might refactor your patch if I decide to pull it in. |
|
@mikefowler thanks for the fast response. Refactor as you want :) |
|
Hey @Lumannnn, what if you could pass additional options with each marker. Not groups, per se, but with this method there might be less setup. Does this achieve the same result, in your opinion? $('.map').smallworld({
center: [45, -50],
markers: [
{
at: [37, -122],
markerColor: 'red'
},
{
at: [42, -100],
markerColor: '#b4da44',
markerSize: 4
}
]
}); |
|
Hey @mikefowler :) Thanks for the follow up. How would I specify that with your solution? |
|
Ah, OK. I see your point, @Lumannnn. I like that strategy. |
Hey there!
I've worked a little with your project. Works great and I like it :D
Though, I was missing to from groups of markers, allowing different colouring for each group.
Here is my proposed solution:
The other methods to add markers still seem to work as before (as one can see when opening the 'index.html').
I've also tried to update the docs as good as possible, but you might want to double check on that :)

(Bear in mind: I'm not a JavaScript developer, so I'm not entirely sure if I've used some nasty hacks.)