I'm using OpenLayers and GeoServer when I pan or zoom the map - OpenLayers kicks of a series of WMS requests. Does 1 WMS request = 1 tile in response?

I'd have thought if you sent a WMS request with the map extents then we'd get multiple responses back to reduce the number of requests - is this possible?


Yes, 1 request is 1 tile. Getting several tiles in a single response is not possible, but if your GeoServer is serving "raw" wms'es (i.e. not cached tiles), you can tell OpenLayers not to request tiles, see the singleTile option.

  • Thanks.The single tile is not an option as this is an Ortho layer and the single tile size would be masssive and unusable.
    – gisWeeper
    May 30 '13 at 8:44
  • well, re-consider that: it's not the whole layer as a tile returned once, but instead of requesting several 256x256 px tiles it's one "tile" that fits the map viewport. But again: i do not think there is a real problem in requesting a bunch of tiles
    – atlefren
    May 30 '13 at 8:46
  • Alright I didnt realize that. So basically if my OpenLayers map is in a container that is 600x400 GeoServer will serve up a single tile of that size - i'm guessing this requires GeoServer to work to create an image of that size and that caching wont be possible.
    – gisWeeper
    May 30 '13 at 9:28
  • 1
    Correct, and this is why tiles with a given size is used
    – atlefren
    May 30 '13 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.