I have got different markers . For some of them, either the longitude or latitude is same .
In case for any of the markers if it has got same longitude or latitude, compared to other markers, I want to increase its latitude size .
But at the end I was ending up changing the coordinates for all the markers
Could you please let me know how to fix this ??
This is my code
function checkifgotsameLatitude(response , lator,lotor)
{
var a = 0;
for(var i=0;i<response.length;i++)
{
var latitusevalue = response[i].latitude;
var longitude = response[i].longititude;
if(latitusevalue==lator || lotor==longitude)
{
a++;
}
}
return a ;
}