W3C home > Mailing lists > Public > www-svg@w3.org > July 2012

Pan Wrap

From: Doug Schepers <schepers@w3.org>
Date: Mon, 16 Jul 2012 10:56:29 -0400
Message-ID: <50042B9D.5040901@w3.org>
To: www-svg@w3.org
Hi, folks-

I was just reminded of a use case I thought of long ago, but never 
articulated: the ability to wrap an SVG image on either (or both) the x 
or y axis.

This would be most useful for maps, though there would be other uses. 
For example, when panning east to west on a map, currently, you just 
"run out" of map... you bump into the western border; if we allowed pan 
wrapping, the western (leftmost) border would attach seamlessly to the 
eastern (rightmost) border, making a continuous pan. See this submarine 
cable map for a practical example [1].

This might complicate the viewBox (depending on how that interaction is 
defined), but I still think we should discuss it.

I imagine this working much like CSS background tiling; it could be as 
simple as having a 'pan-wrap' property, with values 'repeat-x | repeat-x 
| repeat | none'.

This is one of those things that would be relatively simple to do in a 
UA, and hard to do in script or markup (I think).

[1] http://submarine-cable-map-2012.telegeography.com/

Received on Monday, 16 July 2012 14:56:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:36 UTC