On Mar 23, 3:49 am, simonDev88 <[email protected]> wrote:
> Hi everyone,
>
> I'm afraid I cannot post an example of the map here as the site is
> currently in development and I am not allowed to disclose the address.

http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

>
> I hope you can help with this problem though,
>
> The map is as follows:
>
> map.setCenter(new GLatLng(-2, 25), 1, G_PHYSICAL_MAP);
>
> The map is at Zoom level 1, and of physical_map type.
> I am using the marker manager to plot a series of about 300 points
> across the map, and zoomed out at level1, you can see the entire
> world.
>
> Each marker has a customized tooltip on it, so when you hover, my own
> little html tip pops up next to the marker giving the name of the
> location.
>
> The issue is, this tooltip can only be positioned on the first
> iteration of the map, and as soon as I scroll off the map onto the
> second iteration (otherside of the world) the tips stay on the first
> one.
> I have realised that fixing this could prove very difficult, so to
> counter this issue, I would like to be able to prevent the user from
> scrolling any further than the outer bounds of zoom level 1.
>
> Mike has a post on econym that describes how to do this, and using
> map.setCenter() on the "move" event of the map, you can check to see
> if it is out side of the bounds.
>
> Is there an easier way to do this? I am struggling to get the bounds
> of my map when the page loads. I tried using
> map.getBounds().getNorthEast() + getSouthWest() and putting a marker
> on those points, but the point values I get are extremely close, and
> seem to only be in the top left corner of my map.

Sounds like a zero size div problem, but who knows...
Try searching for top left.

>
> Are there are other ways to check the bounds and stop the movement?
>
> I apologise if this is hard to see without a reference, but you'll
> just have to do your best!

We are volunteers.  Help us to help you if you want help.

  -- Larry

>
> Ta

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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