MapTools.org

[ms4w-users] Re: [Chameleon] need help on cwc2 sample on ms4w (for windows)

Paul Spencer spencer@dmsolutions.ca
Tue, 11 Nov 2003 17:18:54 -0500
Hoang, there appears to be a problem with this version of the installer, 
I think that something got missed.

You should be able to enter the following URL to see a CWC2 application:

http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/demo.html

The CWC2 Service Instance link is not meant to be clickable - it just 
shows you the base URL at which CWC2 is installed.

Demo.html is just a sample template.  CWC2 uses templates to render the 
application interface.  The complete URL for a CWC2 application points 
at the service instance (http://localhost/cwc2/cwc2.php) and optionally 
provides a template and a context.  This is done by passing two 
parameters, template and context, on the URL to cwc2.php.  I say 
optionally because the administrator can set default template and 
context values that will be used if cwc2.php is called with no extra 
parameters.

HTH

Paul

Hoang Duong wrote:

> Hi,
> 
> Can someone provide baby steps to run cwc2 samples on windows platform.  I don't have enough knowledge for now to figure out what I am missing.  This is the steps that I have done:
> 
> 1.  Install ms4w on drive C (e.g. c:\ms4w)
> 2.  Unzip chameleon_ms4w-1.0.3.zip to create c:\ms4w\apps\cwc2 and its contents.
> 3.  Start Apache
> 4.  Type http://localhost on browser.  In the Applications section of the website, I see:
> 
> Applications
> CWC2 1.0 (Chameleon 1.0)
> CWC2 Service Instance url.
> CWC2 Administration.
> CWC2 Documentation.
> 
> 5.  I click on the "CWC2 Service Instance url" link to get to the follow page with these contents:
> 
> Index of /cwc2
>  Name                    Last modified      Size  Description-------------------------------------------------------------------------------- Parent Directory                             -   
>  CWC2_INSTALLATION.txt   22-Sep-2003 14:22  5.9K  
>  HttpFormVars.php        22-Sep-2003 14:22  6.4K  
>  TemplateParser.php      22-Sep-2003 14:22  6.5K  
>  TemplateProcessor.php   22-Sep-2003 14:22  8.9K  
>  UIManager.php           22-Sep-2003 14:22   13K  
>  UpdateMap.php           22-Sep-2003 14:22   28K  
>  WidgetManager.php       22-Sep-2003 14:22  5.2K  
>  common/                 11-Nov-2003 16:40    -   
>  cwc.css                 22-Sep-2003 14:22  514   
>  cwc2.css                22-Sep-2003 14:22  1.8K  
>  cwc2.php                22-Sep-2003 14:22   32K  
>  demo.html               22-Sep-2003 14:22   14K  
>  demo.php                22-Sep-2003 14:22   86   
>  generic_renderer.html   22-Sep-2003 14:22  1.0K  
>  gmap_context.xml        22-Sep-2003 14:22  7.3K  
>  help.html               22-Sep-2003 14:22  482   
>  help_en.html            22-Sep-2003 14:22  4.2K  
>  help_fr.html            22-Sep-2003 14:22  343   
>  images/                 11-Nov-2003 16:40    -   
>  issues.txt              22-Sep-2003 14:22  1.5K  
>  legend_template.html    22-Sep-2003 14:22  401   
>  legend_template_widg..> 22-Sep-2003 14:22  798   
>  simplest.html           22-Sep-2003 14:22  825   
>  template.map            22-Sep-2003 14:22  1.5K  
>  test.html               22-Sep-2003 14:22   19K  
>  test.php                22-Sep-2003 14:22   86   
>  test_cs.html            22-Sep-2003 14:22  1.4K  
>  test_theme.xml          22-Sep-2003 14:22  1.4K  
>  widgets/                11-Nov-2003 16:40    -   
> 
> 6.  I click on demo.html.  And this is what I got:
> 
> CWC2 Demo Template 
> This template contains a sampling of widgets that are available for CWC2. 
> Note that the KeyMap image used in this template is specific to Canada in LCC projection and may not be appropriate for an arbitrary context. 
>  
>  
> Layers: 
>  
>  
>         
>  
>  Map Size:  
>  
>                
>  
>  x:     
> y:     
>  
>  
>    x:  
>    y:  
>  
>  
> There seems to be no buttons, icons, or maps.
> 
> 7.  Or if I click on test.html.  Also, icons, maps, or buttons.
> 
> Thank you.
> Hoang
>  
> 
> 
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------




This archive was generated by Pipermail.