Got my answer. In order to "auto-refresh" a single image, OpenLayers.Layer.WMS must be used with the singleTile option set to true.
Thanks to Kenneth Skovhede (k...@geograf.dk) ABB wrote: > > Hello, > > I have a web service that returns a single PNG image from a given > size/position. > > I'm trying to show a map with some zoom/move controls. I tried to use the > OpenLayers.Layer.WMS layer type but my PDF image was automatically > multiplied/resized and the layout was not acceptable. My guess is that the > WMS layer builds the map from small images into a big image (like google > maps). > > After failing with WMS, i tried with OpenLayers.Layer.Image but my image > is not automatically regenerated when i move or zoom. > > What is the best solution for me? Should i continue with Layer.Image and > implement javascript events in order to automatically call my web service > in order to regenerate the map or i should stick with Layer.WMS? > > Any other solutions i should look? > > Thank you > > -- View this message in context: http://n2.nabble.com/Dynamically-refreshing-a-map-built-from-a-single-image-tp3626798p3642691.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users