CloudMade/Leaflet — pull request #1010 by mattions (2012-09-22 16:21:32+00:00)
Title: Adding id element as an option to the Marker.

This patch gives the ability to specify a user id as Marker option, which is then added to the img tag, so the img is retrievable programatically.

So from the classic

`marker = L.marker([50.5, 30.5], options={"title" : 123}).addTo(map);`
which result to

```

```

now it is possible to pass also an `id`
`marker = L.marker([50.5, 30.5], options={"title" : 123, "id"=123}).addTo(map);`
which render to

```

```

I was thinking to update the docs as well, however I was unsure if I had to do the push request in gh-pages.

this is the snippet:

```

id
String
''
Id added to the img tag associated with the marker.

```
which should be added to the Marker options.