I assume you have a bounds object that you are checking against?
Maybe try adding the new point to it.
boundsObject.extend(newPoint) so this new point will be within the
bounds.  Hard to say with no code to look at.

On Nov 19, 5:03 am, Chris <[email protected]> wrote:
> I've got a map set up with a boundary around my current city. If the
> user tries to move outside the boundary the map won't let it. I have a
> bit of code that allows a user to add a point on the map by naming a
> store and dragging a marker to the real-world location of that store,
> however when the user drags the marker to the edge of the boundary the
> marker simply flies away. I've tried adding code to centre the marker
> if it's outside the bounds by drag and dragend, but it seems that the
> marker is deleted when it is removed from the screen. Is there some
> code that will stop this from happening and ideally just not allow the
> marker to go outside the map area?
>
> Thanks,
> Chris

-- 
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.

Reply via email to