Skip to content

get the current index of the array using the event method? #23

Description

@Stan92

Hi,
Thanks for sharing this plugin.
Using your example for binding the polyline

     for (var i = 0, latlngs = [], len = data.model.length; i < len; i++) {
              latlngs.push(new L.LatLng(data.model[i].latitude, data.model[i].longitude));
      }

Is there a way to get the index from the

.on('snakestart snake snakeend', function (ev) {
                            console.log(ev);
});

I have extra data in my model and would like to use them from the event method.

Thanks for your support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions