I am trying to display pre-generated map images using an image layer; these maps are to be used from the local machine.
The first set of images was created for a fairly small area at 5000 x 2500, with the images under 100kb each. I have had no problems displaying these images. Then I had a set (representing a different, much larger, area) that I made at 10000 x 12725 (~850kb). I could not get it to display. I thought for a while that maybe it had something to do with the height being greater than the width, but then I tried creating that set at half the size 5000x6326 (~270kb), and things worked. I then thought that perhaps a dimension over 10,000 was some sort of maximum, so tried making them at 7800x9925 (~545kb). Didn't work. There are no apparent errors, the image simply doesn't display. When I right click in the map area and pick properties, it would seem like the browser (IE - this must work with IE) thinks the image is there and I get information about it (e.g. the correct address, size: 558646 bytes, Dimensions: 780x992 pixels). For a simple code example, this is my modified version of the init() function from the image-layer.html example: var map; function init(){ map = new OpenLayers.Map('map'); var options = {numZoomLevels: 6, maxResolution: 10}; var imgWidth = 7800; var imgHeight = 9925; var graphic = new OpenLayers.Layer.Image( 'Test', '/Maps/SK2/S/2/1588.png', // File size is 545kb new OpenLayers.Bounds(0, 0, imgWidth, imgHeight), new OpenLayers.Size(imgWidth, imgHeight), options ); map.addLayers([graphic]); map.zoomToMaxExtent(); } Is this some maximum file size that it can load? Or perhaps some other issue?
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users