get positions of single device and marker.onclick event

Vasilev5 years ago

Hello,
i am using this simple app for getting positions of the devices.
can you tell how i can use onclick event here that will zoom and show the clicked marker.
also how to get positions of a single device - if i use:

ajax('GET', url + '/api/devices?id='+deviceid, function(devin) {

it is not giving the positions of this device.

thank you