[OpenLayers-Users] RC 2.5 may be problem with untiled vs singletile
Linda Rawson
linda.rawson at gmail.com
Tue Sep 18 13:04:13 EDT 2007
Okay. I ran the example http://www.openlayers.org/dev/examples/notile.html
When I look at the rendered source I see for "WMS.Untiled" layer only one
div with a request for the service:
<DIV style="LEFT: -99px; OVERFLOW: hidden; WIDTH: 597px; POSITION: absolute;
TOP: -99px; HEIGHT: 597px"><IMG class=olTileImage id=OpenLayersDiv59
style="WIDTH: 597px; POSITION: relative; HEIGHT: 597px; alt:
OpenLayersDiv59" src="
http://labs.metacarta.com/wms/vmap0?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-10.375,23.625,23.375,57.375&WIDTH=597&HEIGHT=597"
_eventCacheID="OpenLayersDiv59_eventCacheID_60" galleryImg="no"
viewRequestID="2"></DIV>
But when I access the other example:
<DIV style="LEFT: -99px; OVERFLOW: hidden; WIDTH: 597px; POSITION: absolute;
TOP: -99px; HEIGHT: 597px"><IMG class=olTileImage id=OpenLayersDiv59
style="WIDTH: 597px; POSITION: relative; HEIGHT: 597px; alt:
OpenLayersDiv59" src="
http://labs.metacarta.com/wms/vmap0?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-10.375,23.625,23.375,57.375&WIDTH=597&HEIGHT=597"
_eventCacheID="OpenLayersDiv59_eventCacheID_60" galleryImg="no"
viewRequestID="2"></DIV></DIV>
<DIV id=OpenLayers.Layer.WMS_42 style="DISPLAY: block; Z-INDEX: 105; WIDTH:
100%; POSITION: absolute; HEIGHT: 100%" _eventCacheID="
OpenLayers.Layer.WMS_42_eventCacheID_44">
<DIV style="LEFT: 0px; OVERFLOW: hidden; WIDTH: 398px; POSITION: absolute;
TOP: 0px; HEIGHT: 398px"><IMG class=olTileImage id=OpenLayersDiv66
style="WIDTH: 398px; POSITION: relative; HEIGHT: 398px; alt:
OpenLayersDiv66" src="
http://labs.metacarta.com/wms/vmap0?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-4.75,29.25,17.75,51.75&WIDTH=398&HEIGHT=398"
_eventCacheID="OpenLayersDiv66_eventCacheID_67" galleryImg="no"
viewRequestID="4"></DIV></DIV></DIV>
I see TWO divs with the service request in them. In my case this would slow
it down because I only want one image on the page for the request. Now it
is making TWO calls to the service. Does this have something to do with the
ratio?
Thanks,
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070918/66091d8d/attachment.html
More information about the Users
mailing list