[Cartoweb-users] missing legend icon
Oliver Christen
oliver.christen at camptocamp.com
Tue Dec 11 08:41:51 EST 2007
3DSitewindows seems to screw the icon path generation.
you could touch up the layers.tpl and test if you are out of range (meaning the nap and nam icon would be displayed) by checking the values of the $element.nextscale or $element.layerOutRange parameter (in the template) and set the path directly.
something like:
<img src="{if $element.layerOutRange > 0}/some/path/to/nap.png{else if $element.layerOutRange < 0}/some/path/to/nam.png{else}$element.layerIcon}{/if}" alt="" class="pic" ...
regards
Oliver
----- Original Message -----
From: Milo van der Linden
To: Carolin Latze
Cc: cartoweb-users at lists.maptools.org
Sent: Tuesday, December 11, 2007 2:22 PM
Subject: Re: [Cartoweb-users] missing legend icon
Carolin,
thank you for the response. You set me on the right track!
I discovered that the URL that is created pointing to the nap.png is relative to the website root. Since my cartoweb3/htdocs is not at the root of the website, it fails to find the nap.png
I solved this by creating a virtual directory in IIS (my webserver of choice) that points to the gfx directory for the virtual name http://myserver/gfx/
I do however think that this will be a hassle when copying projects (what I do a lot) so it would be better if this is recognized as an issue and fixed.
Carolin Latze schreef:
Hi Milo,
we had the same problem... there should be an icon called nap.png
instead of your layer icon, when it is invisible. I'm not sure how we
solved it... I think, we created a new folder called icons in
<project>/server_conf/<project> and created this png here... Maybe,
you'll find nap.png somewhere else in the cartoweb folder, then you have
to copy it in this newly created icons folder.
As I said, I'm not 100% sure (somebody else fixed this in our project),
but it should be something like this
Bye
Carolin
Milo van der Linden wrote:
Hello list,
Somehow, no matter what I do to the particular layer "Buurtgrenzen" I
get no legend icon.
Please find my test environment at:
http://cartoweb.bosqom.nl/cartoweb3/htdocs/webGIS.php
Can anyone tell me why there is a redcross in the legend?
--
Milo van der Linden
skype: milovanderlinden <skype:milovanderlinden?add>
mlinden at zeelandnet.nl <mailto:mlinden at zeelandnet.nl>
milovanderlinden at gmail.com <mailto:milovanderlinden at gmail.com>
milo at 3dsite.nl <mailto:milo at 3dsite.nl>
http://www.3dsite.nl
De informatie in dit bericht reflecteert mijn persoonlijke mening en
niet die van een bedrijf of instantie. Aan de informatie kunnen geen
rechten worden ontleend. Indien dit bericht onderdeel is van een
forum, mailing-list of community dan gelden automatisch de bij het
betreffende medium behorende voorwaarden. The information in this
message reflects my personal opinion and not that of a company or
public body. All rights reserved.If this message is contained in a
mailing-list or community, the rights on the medium are automatically
adapted.
------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
--
Milo van der Linden
skype: milovanderlinden
mlinden at zeelandnet.nl
milovanderlinden at gmail.com
milo at 3dsite.nl
http://www.3dsite.nl
De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted.
------------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071211/051efb27/attachment.html
More information about the Cartoweb-users
mailing list