Thank for the reply.  That's what I did (well, I used toFixed but it's
the same thing).  At one point it worked fine, but then they did a
minor rev and must have changed some underpinnings.  Now it changes
but then almost faster than the eye can track it changes back to the
unrounded number.

I think I'm just going to give up on it and revisit it whenever I can
get the app changed to v3.

On Feb 16, 11:01 am, Andrew Leach <[email protected]> wrote:
> On Feb 16, 4:19 pm, j <*[email protected]> wrote:
>
> > Is there a way to change the lat/lon of a marker while you're dragging
> > it?  I ask because I want to round all lat/lons to four decimal places
> > (the amount of precision used for the field in a database).  So I'd
> > like it to be accurately showing them where the marker is located.
>
> > I tried just setting the marker's lat/lon in the drag event handler
> > but that didn't do it.  Is this something anyone out there has tackled
> > before?
>
> You'll need to be more specific about what you really want. For
> example, while you're dragging a marker, its lat/lon is constantly
> changing because you're moving it.
>
> You may wish to investigate the Math.round() method:
> Math.round(lat*10000)/10000 should provide 4dp.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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-api?hl=en.

Reply via email to