[OpenLayers-Users] help with baselayer

Jim White jbw2003 at earthlink.net
Fri Mar 7 12:42:53 PST 2014


Hi,

I am having a hard time getting my base layer to align with tiles I use 
for google and OSM.

     //////Base Layers
     var gphy = new OpenLayers.Layer.Google("Google Physical", {
         type: google.maps.MapTypeId.TERRAIN,
         MAX_ZOOM_LEVEL: 12,
         MIN_ZOOM_LEVEL: 6,
         displayInLayerSwitcher: false,
         visibility: false,
         buffer: 0
     });

     var osm = new OpenLayers.Layer.OSM("Open Street Map");

      var counties_base = new OpenLayers.Layer.WMS("None",
         SERVER_URI + "tilecache", {
             layers: "counties",
             format: 'image/png',
             transparent: true
         }, {
             isBaseLayer: true,
             visibility: false,
             displayInLayerSwitcher: false,
             resolutions: 
[2445.984,1222.99,611.496,305.748,152.874,76.437,38.218],
             tileorigin: [map.maxExtent.left, map.maxExtent.bottom],
             projection: new OpenLayers.Projection("EPSG:900913"),
             maxExtent: map_extent
         });

What do I need to add to counties_base to make it get the same tiles as 
the first 2?

Thanks,
Jim


-- 
James B. White
Cary, NC
H: 919-380-9615
M: 919-698-1765
White Coding and Maps <http://whitecodingandmaps.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140307/62b5bc35/attachment.html>


More information about the Users mailing list