<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>3DSite</TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>windows seems to screw the icon path
generation.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT color=#000000 size=2>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.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT color=#000000 size=2>something like:</FONT></DIV>
<DIV><FONT color=#000000 size=2><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"
...</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT color=#000000 size=2>regards</FONT></DIV>
<DIV><FONT color=#000000 size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mlinden@zeelandnet.nl href="mailto:mlinden@zeelandnet.nl">Milo van
der Linden</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=carolin.latze@unifr.ch
href="mailto:carolin.latze@unifr.ch">Carolin Latze</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 11, 2007 2:22
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] missing
legend icon</DIV>
<DIV><BR></DIV>Carolin,<BR><BR>thank you for the response. You set me on the
right track!<BR><BR>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<BR><BR>I solved this by
creating a virtual directory in IIS (my webserver of choice) that points to
the gfx directory for the virtual name <A class=moz-txt-link-freetext
href="http://myserver/gfx/">http://myserver/gfx/</A><BR><BR>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.<BR><BR>Carolin Latze
schreef:
<BLOCKQUOTE cite=mid:475E88A0.7060607@unifr.ch type="cite"><PRE wrap="">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:
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">Hello list,
Somehow, no matter what I do to the particular layer "Buurtgrenzen" I
get no legend icon.
Please find my test environment at:
<A class=moz-txt-link-freetext href="http://cartoweb.bosqom.nl/cartoweb3/htdocs/webGIS.php">http://cartoweb.bosqom.nl/cartoweb3/htdocs/webGIS.php</A>
Can anyone tell me why there is a redcross in the legend?
--
        
Milo van der Linden
skype: milovanderlinden <A class=moz-txt-link-rfc2396E href="skype:milovanderlinden?add"><skype:milovanderlinden?add></A>
<A class=moz-txt-link-abbreviated href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</A> <A class=moz-txt-link-rfc2396E href="mailto:mlinden@zeelandnet.nl"><mailto:mlinden@zeelandnet.nl></A>
<A class=moz-txt-link-abbreviated href="mailto:milovanderlinden@gmail.com">milovanderlinden@gmail.com</A> <A class=moz-txt-link-rfc2396E href="mailto:milovanderlinden@gmail.com"><mailto:milovanderlinden@gmail.com></A>
<A class=moz-txt-link-abbreviated href="mailto:milo@3dsite.nl">milo@3dsite.nl</A> <A class=moz-txt-link-rfc2396E href="mailto:milo@3dsite.nl"><mailto:milo@3dsite.nl></A>
<A class=moz-txt-link-freetext href="http://www.3dsite.nl">http://www.3dsite.nl</A>
                 
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
<A class=moz-txt-link-abbreviated href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A>
<A class=moz-txt-link-freetext href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</A>
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
</PRE></BLOCKQUOTE><BR><BR>
<DIV class=moz-signature>-- <BR>
<STYLE type=text/css>BODY {
        MARGIN: 5px; BACKGROUND-COLOR: #ffffff
}
BODY {
        FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif
}
TD {
        FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif
}
TH {
        FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.style4 {
        FONT-SIZE: 9px
}
.style5 {
        FONT-SIZE: 9px; COLOR: #cccccc
}
</STYLE>
<META content="MSHTML 6.00.2900.2912" name=GENERATOR><BR>
<TABLE cellSpacing=0 cellPadding=0 width=400 border=0>
<TBODY>
<TR>
<TD vAlign=bottom align=left width=15 height=0 rowSpan=3><BR></TD>
<TD vAlign=top align=left width=0 colSpan=2 height=78>
<P class=style4>Milo van der Linden <BR><A
href="skype:milovanderlinden?add">skype: milovanderlinden</A><BR><A
href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</A><BR><A
href="mailto:milovanderlinden@gmail.com">milovanderlinden@gmail.com</A><BR><A
href="mailto:milo@3dsite.nl">milo@3dsite.nl</A><BR><A
href="http://www.3dsite.nl">http://www.3dsite.nl</A><BR></P></TD>
<TD vAlign=top align=left width=15 height=0 rowSpan=3> </TD>
<TD vAlign=top width=300>
<P class=style5><SPAN lang=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.</SPAN>
<SPAN lang=EN>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.</SPAN></P></TD></TR></TBODY></TABLE></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>