[OpenLayers-Users] overviewmap and wmts servers only loading a single tile

Dave Potts dave.potts at pinan.co.uk
Thu Oct 31 06:34:00 PDT 2013


I am trying to use a overViewMap control on a map base map thats 
supplied from a wmts source

My source code is

    var options = {
                     controls: [],
                     eventListeners:{
                         "zoomend":mapEvent
                         },

                     maxExtent: bounds,
                     resolutions: [3440.64, 1720.32, 860.16, 430.08, 
215.04, 107.52, 53.76,
                                               26.88, 13.44, 6.72, 3.36, 
1.68, 0.84, 0.42, 0.21],

                     projection: PinkRConstants.SRS,
                     numZoomLevels: 15,
                     units: 'm'
                 };
                    map = new OpenLayers.Map('map', options);


                         var overOptions = {
                         maximizeTitle: 'Show the overview map',
                         minimizeTitle: 'Hide the overview map',
                         maximized:true,
                         size:new OpenLayers.Size(100,100),
                         maxRatio:300,

                 };
                  map.addControl(overview);

I only seem to get a fragment of the basemap in the overview  map, by 
setting the size options on the overviewmap to something hugh, it seems 
that the overview map only ever loads a single tile.  I have disabling 
all the layers on the overmap, just in case one of the layers was 
causing an issue, that did'nt fix anything.

So does anybody know if the overview map works with a wmts base map?

Dave.




More information about the Users mailing list