[OpenLayers-Users] What is the easiest way to grab the URL string being sent to a WMS server?

Christopher Schmidt crschmidt at metacarta.com
Tue Feb 6 13:11:49 EST 2007


On Tue, Feb 06, 2007 at 05:16:22PM +0000, Mike Quentel wrote:
> For debug purposes, I would like to be able to examine
> the URL string that OpenLayers is sending to a WMS
> server.  What is the easiest way to examine this?  Not
> sure what method of what class in the API would return
> this string.  Thank you.

This depends what you want to do with it.

Grid layers have a grid property, which contains an array of an array of
tiles. These tiles each have a 'url' object, which is the URL of the
requested tile.

If you just want to determine a single URL, you can right click on an
image in the interface, and 'copy image URL' or similar in whatever
other browser you care about. Firebug or other debugging tools may make
this process easier for many-layer situations.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list