Bug 694 - production_draw_legend with fix 'internet' URL
: production_draw_legend with fix 'internet' URL
Status: RESOLVED FIXED
: Chameleon
Widget
: 1.99
: All All
: P3 blocker
: 1.99 beta 4
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-10-12 09:16 by
Modified: 2004-12-02 21:31 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-12 09:16:44
I have found a URL instead of a local path. 
The problem is in an application without access to the internet. 
--------------------- 
define( "GIF_SAMPLE", "http://www2.dmsolutions.ca/cgi-bin/gifsample/" ); 
 
// define the default gif draw icon 
define( "DEFAULT_ICON",  
GIF_SAMPLE."20/15?color=CCCCCC&outline=000000&corner=1" ); 
// instead of 
//define( "DEFAULT_ICON", "/usr/local/cwc2/htdocs/images/15-default.gif" ); 
 
// define the blank gif draw icon to use for the layer icon 
define( "BLANK_ICON",  
GIF_SAMPLE."20/15?color=000000&symbolid=6&symbolsize=4"); 
// instead of  
//define( "BLANK_ICON", "/usr/local/cwc2/htdocs/images/15-blank.gif" );
------- Comment #1 From 2004-10-12 09:55:28 -------
um.  this was a temporary measure that never got looked at.  For now you can
modify the comments to look like:

//define( "GIF_SAMPLE", "http://www2.dmsolutions.ca/cgi-bin/gifsample/" ); 
 
// define the default gif draw icon 
//define( "DEFAULT_ICON",  
GIF_SAMPLE."20/15?color=CCCCCC&outline=000000&corner=1" ); 
// instead of 
define( "DEFAULT_ICON", "/usr/local/cwc2/htdocs/images/15-default.gif" ); 
 
// define the blank gif draw icon to use for the layer icon 
//define( "BLANK_ICON",  
GIF_SAMPLE."20/15?color=000000&symbolid=6&symbolsize=4"); 
// instead of  
define( "BLANK_ICON", "/usr/local/cwc2/htdocs/images/15-blank.gif" );

and modify the paths to suit your chameleon installation.

I will look at a more permanent solution for the next version (not beta3 though)
------- Comment #2 From 2004-12-02 20:37:47 -------
GIF_SAMPLE is only referenced in the defines for DEFAULT_ICON and BLANK_ICON. 
DEFAULT_ICON is unused.  BLANK_ICON is used only in one spot.  I've replaced it
with some gd magic to create an appropriately sized transparent image on the fly.