MapTools.org

[Chameleon] Chameleon 1.1 Installation

Bart van den Eijnden bartvde@xs4all.nl
Tue, 02 Mar 2004 22:31:56 +0100
Hi,

legend functionality is not that straightforward. You can use the 
LegendTemplate widget which uses the logic from Mapserver HTML Legend. For 
more info on Mapserver HTML Legend see:

http://mapserver.gis.umn.edu/doc40/html-legend-howto.html

You can try installing the following Chameleon application on your system 
to see it work in its basic form:

http://www.vz.geodan.nl/users/bart/geodan_ms4w-2003-10-31.zip

Also you could use the XMLThemeLegend but this a bit more complex than the 
LegendTemplate, for an online example see (left part of the application):

http://mapsherpa.dmsolutions.ca/hawaii2/

As you can see most of the times these widgets are used both as "legend" 
and layermanager.

If all your layers are served by WMS you could try using the Legend widget 
which I believe is behind the Legend button in the Hawaii demo.

Hope this gets you started.

Best regards,
Bart

On Tue, 2 Mar 2004 18:34:58 +0100, Gianluigi Nozza 
<gianluigi.nozza@tiscali.it> wrote:

> IT WORKS !!!!!  Still I don't understand why, but it works...
>
> Thank you Jason, and also Bart, and Paul, and Dave and the list, and 
> Heaven
>
> The solution was provided at the same time by two listers ....
> Here is the trick...
>
> Last question of the day : The sample application has to display the 
> legend
> ?, or I have to work another bit over ?
>
>
> ----- Original Message -----
> From: "Jason Fournier" <jfournier@dmsolutions.ca>
> To: "Gianluigi Nozza" <gianluigi.nozza@tiscali.it>
> Cc: "Paul Dymecki" <pdymecki@sympatico.ca>; 
> <chameleon@lists.maptools.org>
> Sent: Tuesday, March 02, 2004 5:55 PM
> Subject: Re: [Chameleon] Chameleon 1.1 Installation
>
>
>> Sure,
>>
>> In your Chameleon template there is a tag:
>>
>> <form>
>>
>> just add
>>
>> <form action="index.phtml">
>>
>> that should do the trick.
>>
>> Cheers,
>> Jason
>>
>>
>>
>> Gianluigi Nozza wrote:
>>
>> >Heaven answered !!!
>> >But it was too technical for me...
>> >
>> >Thank you Jason but I don't know what are "set the action" and
> "redirection"
>> >
>> >Can you explain me step by step if is not too much complicated ?
>> >It seems to me I'am so close.....
>> >
>> >----- Original Message -----
>> >From: "Jason Fournier" <jfournier@dmsolutions.ca>
>> >To: "Gianluigi Nozza" <gianluigi.nozza@tiscali.it>
>> >Cc: "Paul Dymecki" <pdymecki@sympatico.ca>;
> <chameleon@lists.maptools.org>
>> >Sent: Tuesday, March 02, 2004 5:30 PM
>> >Subject: Re: [Chameleon] Chameleon 1.1 Installation
>> >
>> >
>> >
>> >
>> >>Regarding the Zoom In issue ...
>> >>
>> >>If you are using IIS you *may* have to set the action in the body to
>> >>index.phtml (ie, action="index.phtml").  If this does not work then a
>> >>redirect to http://path/to/chameleon/index.phtml prior to entering the
>> >>application may work.  This will set the URL to include index.phtml
>> >>(whereas default document hides it).
>> >>
>> >>Hope this helps,
>> >>Jason
>> >>
>> >>
>> >>
>> >>Gianluigi Nozza wrote:
>> >>
>> >>
>> >>
>> >>>Thank you Paul
>> >>>
>> >>>I have just take a look to your configuration files, and I have found
>> >>>they looks very close to mine, apart Apache while I have IIS
>> >>>Meanwhile I was able to get the keymap and the widget to appear. I
>> >>>have found that keymap seems to pretend an absolute path while the
>> >>>rest wants a relative path, but not sure even of that.
>> >>>Besides I can't see any legend (I don't think this is how the sample
>> >>>has to look like) Isn't it ?
>> >>>And the only widget that work is the ruler.
>> >>>I can see the north america map, but when I try to zoom I get a 405
>> >>>error "page not found"
>> >>>I have checked if image files are written on the image temporary
>> >>>directory but I can't find nothing else than the scalebar image.
>> >>>In other words it seems that chameleon does not write image file on
>> >>>disk....
>> >>>So I'm figure out there is something worst than a simple wrong path
>> >>>reference.....
>> >>>
>> >>>Hope some help from Heaven users....
>> >>>
>> >>>----- Original Message -----
>> >>>
>> >>>    From: Paul Dymecki <mailto:pdymecki@sympatico.ca>
>> >>>    To: Gianluigi Nozza <mailto:gianluigi.nozza@tiscali.it>
>> >>>    Sent: Tuesday, March 02, 2004 3:53 PM
>> >>>    Subject: RE: [Chameleon] Chameleon 1.1 Installation
>> >>>
>> >>>
>> >>>    Here you go,
>> >>>
>> >>>    -----Original Message-----
>> >>>    From: chameleon-admin@lists.maptools.org
>> >>>    <mailto:chameleon-admin@lists.maptools.org>
>> >>>    [mailto:chameleon-admin@lists.maptools.org]On Behalf Of Gianluigi
>> >>>    Nozza
>> >>>    Sent: Tuesday, March 02, 2004 8:27 AM
>> >>>    To: chameleon@lists.maptools.org
>> >>>
>> >>>
>> ><mailto:chameleon@lists.maptools.org>
>> >
>> >
>> >>>    Subject: [Chameleon] Chameleon 1.1 Installation
>> >>>
>> >>>
>> >>>    Dear lister
>> >>>    With the help of the list, I made a little step toward the main
>> >>>    goal of the
>> >>>    "Chameleon 1.1 installation" with IIS and Windows 2000
>> >>>
>> >>>    I found very usefull the suggestion to include in the epsg proj
>> >>>
>> >>>
>> >file,
>> >
>> >
>> >>>    references for the two non standard projection of the sample
>> >>>    application.
>> >>>    # WGS84 Canada LCC (WARNING: FAKE EPSG CODE, NON STANDARD)
>> >>>    <42101> +proj=lcc +ellps=WGS84 +lat_0=0 +lon_0=-95 +lat_1=49
>> >>>
>> >>>
>> >+lat_2=77
>> >
>> >
>> >>>    +x_0=0 +y_0=-8000000 +datum=WGS84 +units=m no_defs <>
>> >>>    # NAD83 Canada LCC (WARNING: FAKE EPSG CODE, NON STANDARD) (This
>> >>>    is the
>> >>>    standard Atlas of Canada data's projection)
>> >>>    <42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49
>> >>>    +lat_2=77
>> >>>    +datum=NAD83 +units=m no_defs <>
>> >>>
>> >>>    At that point I was able to start the sample application, but 
>> with
>> >>>
>> >>>
>> >the
>> >
>> >
>> >>>    following limits:
>> >>>    I can't see any widget,
>> >>>    No widget seems to work, apart for the distances ruler that works
>> >>>    fine.
>> >>>    I can'see the keymap
>> >>>    When I try to zoom in, I can see the red rubberband but the I 
>> come
>> >>>    up with a
>> >>>    "missing page error"
>> >>>
>> >>>    At this point I believe that I have some failure in some path/url
>> >>>    specification
>> >>>
>> >>>    There will be someone in the universe using Chameleon 1.1 with 
>> IIS
>> >>>
>> >>>
>> >and
>> >
>> >
>> >>>    windows 2000 ?
>> >>>    I hope so. Will be that man/woman so kind to send me their 
>> working,
>> >>>
>> >>>    cwc2.xlm  configuration file
>> >>>    the sample map file properly configured (chameleon.map)
>> >>>    the sample template file properly configured (sample.html)
>> >>>
>> >>>    Thanks to everybody
>> >>>
>> >>>
>> >>>
>> >>>    _______________________________________________
>> >>>    Chameleon mailing list
>> >>>    Chameleon@lists.maptools.org
>> >>>    http://lists.maptools.org/mailman/listinfo/chameleon
>> >>>
>> >>>
>> >>>
>> >>--
>> >>___________________________
>> >>Jason Fournier
>> >>DM Solutions Group
>> >>Application Developer
>> >>Ottawa, ON
>> >>613.565.5056 x 18
>> >>jfournier@dmsolutions.ca
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> ___________________________
>> Jason Fournier
>> DM Solutions Group
>> Application Developer
>> Ottawa, ON
>> 613.565.5056 x 18
>> jfournier@dmsolutions.ca
>>
>>
>>
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>



-- 
  


This archive was generated by Pipermail.