So why not truncate the lat/long to, say, 6 digits, and then do your comparison to see if the markers are in the same spot?
-G On Apr 12, 2011, at 3:21 AM, Amit Kumar wrote: > The issue is not about nanometers... I am using that to identify if there is > a marker already in the mentioned spot, but since the values are not same, I > see more markers, which is unacceptable. > On 12-Apr-2011, at 1:17 PM, Rossko wrote: > >>> I am using gmaps v3.4, and when i am adding a new marker at say location >>> 57.08851533/25.53222656, it is getting added at 57.08851533/25.5322265600002 >> >> You do realise that is just a few nanometres away? The background >> maps are not that accurate. >> >>> how do i avoid that??? >> >> You can ignore it altogether, if you want to trim the number of >> decimal places for display use ordinary javascript e.g. >> http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/98fa38b216888995/444e8bc133f7b8c4 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Maps JavaScript API v3" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-maps-js-api-v3?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
