apneadiving/Google-Maps-for-Rails — pull request #174 by raymccoy (2012-04-03 01:57:26+00:00)
Title: Added support for z-index in markers

Allows to z-index of markers so they would overlap with a custom priority.

Can be set like this

```
counter = 0
@json = User.all.to_gmaps4rails do |user, marker|
marker.picture({
:picture => "http://www.blankdots.com/img/github-32x32.png",
:width => "32",
:height => "32",
:zindex => User.all.size - counter # can be set here
})
marker.title "i'm the title"
marker.sidebar "i'm the sidebar"
marker.json({ :id => user.id, :zindex => User.all.size - counter}) # ...or here as well
counter += 1
end
```

This would overlap the markers in order of insertion (first marker at top, last marker at bottom)