Question: I am using codeigniter, I have listed records from a table. I want to download all the records to excel. I have used PHPExcel library but it was not supporting. Could you please help to how to achieve it?

Answer: 
Simply assign your `circleClick` function as listener on each of your circles:

```js
L.circle(
  [46.765735535841024, 23.58344078063965], 5, {
    color: "blue"
  }
).addTo(map).on("click", circleClick);
// more L.circle's...

function circleClick(e) {
    var clickedCircle = e.target;

  // do something, like:
  clickedCircle.bindPopup("some content").openPopup();
}

```

Alternatively, you can gather all your circles within a [Feature Group](http://leafletjs.com/reference.html#featuregroup), and attach the event listener to that group only:

```js
var group = L.featureGroup().addTo(map);

L.circle(
  [46.765735535841024, 23.58344078063965], 5, {
    color: "blue"
  }
).addTo(group);
// more L.circle's...

group.on("click", function (e) {
    var clickedCircle = e.layer; // e.target is the group itself.

  // do something, like:
  clickedCircle.bindPopup("some content").openPopup();
});

```
You just need to assign the circle to a variable and then listen to click event.

```
var circle = L.circle(...).addTo(map);

circle.on('click', function (e) {
    alert("Hello, circle!");
});

```