[Users] Legend Panel Does Not Display Icons for Cached Layers
IT Intern
itintern12 at gmail.com
Fri Feb 4 15:56:53 CET 2011
Hi Tim,
That's my thread there and I'm sad to hear you haven't had success so far.
In my case I was using GeoServer + GeoWebCache + GeoExt/Ext JS
What I did was use the URL for the icons as if the layer had come directly
from the WMS and not the cache.
http://localhost:8080/geoserver/wms?TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fgif&LAYER="
<http://localhost:8080/geoserver/wms?TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fgif&LAYER=%22>
If you look at the part of the link I highlighted in red that's the link to
my WMS, not my cache.
The only other thing I can think of is proxy issues? I think I had to add
GWC to the proxy admin list of GeoServer so that requests could be allowed.
If GeoServer is what your using and do not have the proxy extension
installed, look here:
http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension
I really hope this helps you. It's a little hard for me to remember because
I ended up getting rid of the legend panel and changed my trees to have the
icons of my map layers, one could now say my tree is also a legend :D
Happy Mapping,
elshae
On Fri, Feb 4, 2011 at 1:28 AM, geographika <geographika at gmail.com> wrote:
> Hi Tim,
>
> I had the same issue. In the end I created a wrapper script that would
> generate tiles for any WMS formatted request, or return a legend file
> (currently not cached but I hope to add that).
> Python script athttps://bitbucket.org/geographika/mapserver-scripts/src/tip/tilecache/tilecache.pyand blog post at
> http://geographika.co.uk/using-tilecache-on-iis
>
> Regards,
>
> Seth
>
>
> On 04/02/2011 03:52, Tim Heuer wrote:
>
> Hi,
>
>
>
> http://www.geoext.org/pipermail/users/2010-November/001563.html
>
>
>
> Looking at the above did not solve the problem for us. Is there a way one
> can give a different GetLegendGraphic WMS request to GeoExt if for example
> one is using tilecache to cache the layers’ image outputs?
>
>
>
> Any help would be appreciated.
>
>
>
> Thanks,
>
> Tim
>
> ------------------------------
> Please consider the environment before printing this email
> Warning: This electronic message together with any attachments is
> confidential. If you receive it in error: (i) you must not read, use,
> disclose, copy or retain it; (ii) please contact the sender immediately by
> reply email and then delete the emails.
> The views expressed in this email may not be those of Landcare Research New
> Zealand Limited. http://www.landcareresearch.co.nz
>
>
> _______________________________________________
> Users mailing listUsers at geoext.orghttp://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110204/3d415d45/attachment.htm
More information about the Users
mailing list