Vizzuality/cartodb-gmapsv3 — pull request #5 by eightysteele (2012-01-28 04:59:36+00:00)
Title: Add CartoDBLayer support for layer names.

This pull request modifies `CartoDBLayer` so that it allows the client to pass in a `tile_name` parameter:

```javascript

new google.maps.CartoDBLayer({
tile_name: 'my_layer_name',
// Other parameters...
});
```

This allows clients to later identify their layers when pulling them from `map.overlayMapTypes()`:

```javascript
map.overlayMapTypes().forEach(
function(overlay) {
if (overlay.name === 'my_layer_name') {
console.log("BOOM!");
}
}
);
```