|
||||
[maplab-users] Peculiar MapLab BehaviourJean-Francois.Doyon@CCRS.NRCan.gc.ca Jean-Francois.Doyon@CCRS.NRCan.gc.caWed, 6 Nov 2002 16:33:13 -0500
|
Scott, This is because your MapLab hasn't been configured to support the TRANSPARENCY keyword yet. You can easily define what keywords MapLab understands by editing the appropriate XML file. In your case this is most likely mapserv_36.xml in the "config" directory ... The file you use is specified in mapedit.xml, the configuration_file parameter. Add this: <TRANSPARENCY NAME="Transparency" TYPE="INTEGER" DEFAULT=""></TRANSPARENCY> In the <LAYER> section of your mapserv_36.xml file ... This is what the last few lines of mine looks like: <HEADER NAME="Header file" TYPE="FILENAME" DEFAULT=""></HEADER> <FOOTER NAME="Footer file" TYPE="FILENAME" DEFAULT=""></FOOTER> <SEP10 NAME="" TYPE="SEPARATOR" DEFAULT="OFF"></SEP10> <TEMPLATE NAME="Template" TYPE="FILENAME" DEFAULT=""></TEMPLATE> <TRANSPARENCY NAME="Transparency" TYPE="INTEGER" DEFAULT=""></TRANSPARENCY> </LAYER> Once this is done, restart a new MapLab session, and your problem will go away, you will now be able to use the TRANSPARENCY keyword in MapLab, and if you add it manually, it won't delete it. Hope this helps, J.F. -----Original Message----- From: Tweedy, Scott [mailto:sctweedy@nrcan.gc.ca] Sent: Wednesday, November 06, 2002 4:18 PM To: MapLab Users (E-mail) Subject: [maplab-users] Peculiar MapLab Behaviour I'm using MapLab version 2.0rc2 Windows NT PHP version 4.2.2 MapScript 3.6 Recently I was informed that I could add a variable of TRANSPARENCY into some of my LAYER definitions of my map file so that the resulting polygon was translucent. Very cool effect and exactly what we needed. I added the TRANSPARENCY definitions in an external text editor and saved the map file and everything worked great. A couple of days ago I opened the same map file in MapLab and made totally unrelated changes to the map file. When I saved the map file the translucency of the polygons no longer appeared. After testing it seems that MapLab automatically removes the TRANSPARENCY definition in any map file once it's opened in MapLab. If I add the defintion in an external text editor it appears and works fine. I can't seem to be able to add it in MapLab at all even when I open the Edit Source window and type it in. When I save the map file the TRANSPARENCY definition no longer appears in the source code. Is this only a problem in the version of MapLab I'm using or is it a behaviour that exists in all versions? Are there other variables that MapLab automatically deletes? Thanks in advance, st _______________________________________________ Maplab-users mailing list Maplab-users@dmsolutions.ca http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |