[OpenLayers-Users] TMS Tileorigin property bug?

Christopher Schmidt crschmidt at metacarta.com
Tue Jun 2 07:36:16 EDT 2009


On Tue, Jun 02, 2009 at 11:10:33AM +0200, Frank Broniewski wrote:
> Hello list,
> 
> I am trying to align a tiled map I got to a national reference system. Things 
> are partially working, but I have some alignment problems. Browsing through 
> the docs, I found the tileOrigin property of the TMS Layer. But there seems to 
> be no effect when setting this.
> 
> Looking through the TMS.js code, I found that the getURL function uses 
> tileOrigin.lon and tileOrigin.lat as property accessors. But when I set the 
> tileOrigin with OpenLayers.Pixel(), there is only a x and y property accessor. 
> This seems to be a bug. It should probably be an OpenLayers.LonLat object ...

Yes, this is a bug in the docs. I'll note that I'm not sure that the
tileOrigin property is testd/supported, so even if you set it as a
lonlat, it may not work. Fixing this is one of the things i'm interested
in doing for post-2.8.

> Just wanted to mention that ... :-)
> 
> Frank
> -- 
> Frank Broniewski
> 
> Metrico s.àr.l. ( http://www.metrico.lu )
> 36, rue des Romains 
> L-5433 Niederdonven 
> Luxembourg
> 
> Fon: +352 26 74 94 28 
> Fax: +352 26 74 94 99
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list