On Nov 15, 8:08 pm, ebakunin <[email protected]> wrote:
> That worked great! Is it also possible to restrict icons and polylines
> to the same area as well?
Didn't I mention that everything is possible? :-)
Quick and dirty version:
Look at the difference between GProjection.getWrapWidth() and
GMercatorProjection.getWrapWidth();
It doesn't work with infinity, but if you return a sufficiently large
number then the placement of overlays is done on one Earth only.
There is however a strange unwanted effect on the first loading of the
map, which is that it displays the "no tiles at this level" message to
the right and below the map, but it disappears after you zoom in and
out.
Try something like this:
GMercatorProjection.prototype.getWrapWidth = function(zoom) {
return 999999999999999999999999;
}
--
Marcelo - http://maps.forum.nu
--
>
> And while I'm asking for everything, is it possible to change the
> background color of the canvas itself?
>
> Thanks a lot for the help.
>
> On Nov 15, 2:59 am, Marcelo <[email protected]> wrote:
>
> > Everything is possible!http://maps.forum.nu/gm_no_wrap.html
>
> > --
> > Marcelo -http://maps.forum.nu
> > --
>
> > On Nov 15, 4:50 am, ebakunin <[email protected]> wrote:
>
> > > I would like to prevent a map from screen wrapping. In other words,
> > > tiles will not repeat and moving far west or east will display the
> > > background gray canvas instead of a tile. Is this possible? Thanks.
--
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=.