AW: [OpenLayers-Users] Need help with Layer.TMS

Stephen Woodbridge woodbri at swoodbridge.com
Sat Mar 26 19:55:42 EDT 2011


Hi Arnd,

Sweet! that did the trick.

Many thanks,
   -Steve

On 3/26/2011 6:44 PM, Arnd Wippermann wrote:
> Hi,
>
> add
> tileOrigin : new OpenLayers.LonLat(-20037508.34,-20037508.34),
> to your layer options.
>
> It seems, that without setting it explicit, it lays at -180,-90.
>
> console.log(map.layers[0].tileOrigin)
>
> Arnd
>
> -----Ursprüngliche Nachricht-----
> Von: openlayers-users-bounces at lists.osgeo.org
> [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Stephen
> Woodbridge
> Gesendet: Samstag, 26. März 2011 17:52
> An: openlayers user list
> Betreff: [OpenLayers-Users] Need help with Layer.TMS
>
> Hi all,
>
> I'm trying to connect OpenLayer.Layer.TMS() to mod-geocache but OpenLayers
> is generating negative tile request. In fact it looks like all the x/y tile
> numbers have -1 what they should be.
>
> It appears to be working fine for EPSG:4326, but not for EPSG:900913 and
> sphericalMercator.
>
> I'm not sure what is happening here, probably I have not set up something
> correctly. Any thoughts on how to fix this?
>
> http://imaptools.com:8080/gc.html
>
> Open the layer switcher can select layer "leaddog-TMS-GMapsCompat"
>
> mod-geocache has a demo service that generates a simple OpenLayers page like
> the above static page. I am trying to enhance that page to demo all the
> various services the mod-geocache supports so people can see how to
> integrate OpenLayers with mod-geocache.
>
> Thanks,
>     -Steve
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



More information about the Users mailing list