On Feb 1, 9:16 am, Carlo <[email protected]> wrote:
> Is there a way to avoid the canvas repeat horizontally?
Try adding this before creating the GMap2 object:
(Mind the word wrap)
GMercatorProjection.prototype.tileCheckRange = function
(tile,zoom,tilesize) {
var maxTile = Math.floor(this.getWrapWidth(zoom) / tilesize);
if (tile.x < 0 || tile.x >= maxTile || tile.y < 0 || tile.y
>=maxTile) {
return false;
}
return true
}
--
Marcelo - http://maps.forum.nu
--
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---