[OpenLayers-Users] maxresolution and minresolution does not work as expected

Phil Scadden p.scadden at gns.cri.nz
Mon Jun 17 14:18:04 PDT 2013


My first thought here is that you seem to be making things overly 
complicated. My code for OSM is simply

     var layer = new OpenLayers.Layer.OSM("Open Street Map",[
         "Content/outputs/OSM/tiles/${z}/${x}/${y}.png", // I have them 
built locally
         "Content/outputs/OSM/tiles/${z}/${x}/${y}.png",
         "Content/outputs/OSM/tiles/${z}/${x}/${y}.png"
         ], {
             'isBaseLayer': true
         });

Let OL do the work. I think you are getting in the way.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.



More information about the Users mailing list