[OpenLayers-Users] icreasing time loading images

Stephen Woodbridge woodbri at swoodbridge.com
Sat Mar 3 17:05:18 EST 2007


aniss,

Please make sure you reply to the list so everyone benefits from the 
questions and answers.

If your layers are loading into openlayers, then I think you probably 
need to ask the mapserver list how to speed up rendering your mapfile. 
You should post your mapfile to the mapserver list when you ask. Many of 
us are also on that list and we can help you over there.

So it sounds like openlayers is working just fine if you are getting images.

-Steve

aniss kabbaj wrote:
> i'm working with mapserver(ms4w) in localhost
> i created a wms server (mapfile pointing to my images)
> here is the javascript code
> 
> <script>
>   var map = new OpenLayers.Map(document.getElementById("map"));
>   var url =  
> "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apache/htdocs/openlay/mywms.map&"; 
> 
>   var rabat1 = new OpenLayers.Layer.WMS("WMS_RABAT",url,            
> {layers: 
> "rabat1,rabat2,rabat3,rabat4,rabat5,rabat6,rabat7,rabat8,rabat9,rabat10,rabat11,rabat12", 
> format: "image/png" },{projection: 'EPSG:26191','units':'m', 
> 'maxExtent': new OpenLayers.Bounds(359000, 369745, 371000, 385000) , 
> 'maxResolution':'auto'});
>     map.addLayer(rabat1);
>     var PointZoom = new OpenLayers.LonLat(pointX,pointY);
>    map.setCenter(PointZoom, 5);
> </script>
> 
> i'm just a biginner in programmation :(
> thanx
> 
>> From: Stephen Woodbridge <woodbri at swoodbridge.com>
>> To: aniss kabbaj <anispirine at hotmail.com>
>> CC: users at openlayers.org
>> Subject: Re: [OpenLayers-Users] icreasing time loading images
>> Date: Sat, 03 Mar 2007 14:57:44 -0500
>>
>> aniss,
>>
>> I think we need more information about where the images are coming 
>> from?  For example how are the images being generated? Are you using 
>> Mapserver or something else to generate the images or are you calling 
>> a remote WMS, or google like service?
>>
>> Performance issues might occur on the server/service generating the 
>> images, or your ethernet bandwidth, etc, OpenLayers is a javascript 
>> client and as such only requests images for other sources.
>>
>> Once the images load does the browser perform acceptable until it 
>> needs to request more images?
>>
>> If the server/service can support making requests to multiple urls, 
>> you can init your layer with multiple host urls which will allow 
>> multiple requests for images to be sent out in parallel which can 
>> speed things up.
>>
>> -Steve
>>
>> aniss kabbaj wrote:
>>> I'm using openlayers
>>> i try to display 12 images (png), it works but takes too much time to 
>>> load (12 images = 1go)
>>> is there any solution to decrease time loading my images.
>>> i load only a small part of the 12 images wich interest me  : with
>>>
>>> var PointZoom = new OpenLayers.LonLat(pointX,pointY);
>>>     map.setCenter(PointZoom, 5);
>>>
>>> thanx for helping me
>>>
>>> _________________________________________________________________
>>> Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>
> 
> _________________________________________________________________
> Windows Live Messenger sur i-mode™ : dialoguez avec vos amis depuis 
> votre mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/
> 




More information about the Users mailing list