I know of two ways to suppress wrapping.
One way is to map your image to a small part of the lat/lng range. E.g.
make the top left corner be at GLatLng(1,-1) and the bottom right corner
at GLatLng(-1,1). The tiles and markers will still wrap, but only for
obsessive users who pan the map by 90 screen widths.
Another way is to overwrite projection.tileCheckRange() with a version
that doesn't wrap point.x, and to overwrite projection.getWrapWidth()
with one that returns a very large number.
projection.getWrapWidth(zoom) {
return 1e20;
}
Don't be tempted to use the magic Javascript number "Infinity", because
the API takes the remainder of marker position when divided by the wrap
width, and JS doesn't handle division by Infinity sensibly.
--
Mike Williams
http://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---