From 26c0c59dade08c65e8227c7da89f292f6f006af9 Mon Sep 17 00:00:00 2001 From: amercader Date: Thu, 9 Jan 2014 17:49:37 +0000 Subject: [PATCH] [#52] Add note about WMS urls for preview --- doc/previews.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/previews.rst b/doc/previews.rst index 58dad92..cf1b562 100644 --- a/doc/previews.rst +++ b/doc/previews.rst @@ -30,10 +30,14 @@ WMS Preview .. image:: _static/preview-wms.png -The WMS previewer is based o OpenLayers_. When the plugin is enabled, if +The WMS previewer is based on OpenLayers_. When the plugin is enabled, if datasets contain a resource that has ``wms`` format, the resource page will load a simple map viewer that will attempt to load the remote service layers, -based on the GetCapabilities response. +based on the GetCapabilities response. In order for the proxy to get correct +response, the URL of the resource must be a full GetCapabilities request, not +just the main WMS service endpoint, for example: + +http://vmap0.tiles.osgeo.org/wms/vmap0?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1 To enable the WMS previewer you need to add the ``wms_preview`` plugin to your ini file. This plugin also requires the `resource_proxy`_