[Chameleon] MapTips Widget
Dave Astolfo
dastolfo1 at cogeco.ca
Sun Jun 6 12:55:58 EDT 2004
Thanks Jason that did the trick...
Dave
-----Original Message-----
From: Jason Fournier [mon, ailto:jfournier at dmsolutions.ca]
Sent: Saturday, June 05, 2004 10:48 AM
To: Dave AstolfoJas
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] MapTips Widget
Dave,
Under your Chameleon install there is a samples directory. In that
directory are several example templates which showcase various widget
packs. Assuming you are using Apache you can create an alias to
conveniently view the sample index in your browser. Here is my conf
file for Chameleon (note that I am using ms4w):
Alias /chameleon/samples "/ms4w/apps/chameleon/samples/htdocs"
<Directory "/ms4w/apps/chameleon/samples/htdocs">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
Alias /chameleon/ "/ms4w/apps/chameleon/htdocs/"
<Directory "/ms4w/apps/chameleon/htdocs/">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
For IIS you would create a Virtual Directory pointing to
/path/to/chameleon/samples.
The indexes for each sample application are preconfigured to use the
directory structure of Chameleon! Hitting
http://localhost/chameleon/samples in your browser should take you to
the samples index page. From there you can view and experiment with a
number of Chameleon template configurations - both basic and advanced.
Thanks,
Jay
Dave Astolfo wrote:
>Hi Jason,
>
>Sorry, forgot to mention that - I have the latest - V 1.99. Where is
>this enhanced sample version?
>
>Thx,
>
>
>Dave
>
>-----Original Message-----
>From: chameleon-bounces at lists.maptools.org
>[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Jason
>Fournier
>Sent: Saturday, June 05, 2004 10:28 AM
>To: Dave Astolfo
>Cc: chameleon at lists.maptools.org
>Subject: Re: [Chameleon] MapTips Widget
>
>
>Hi Dave,
>
>Which version of Chameleon are you using?
>
>I suggest downloading Chameleon 1.99 Beta (May 31, 2004) from MapTools
>(http://www.maptools.org/chameleon/index.phtml?page=downloads.html).
>The 'Enhanced' sample application gives a nice example of how MapTips
>works.
>
>Thanks,
>Jay
>
>
>
>Dave Astolfo wrote:
>
>
>
>>Hi All,
>>
>>Does anyone have sample code on how to get the MapTips Widget working?
>>I tried it, but am not sure what the requirements are. I understand
>>that a shared resource is needed? Are there changes required to the MAP
>>
>>
>
>
>
>>file? If anyone has sample code, it would be appreciated.
>>
>>BTW - I tried adding the widget call and got the following error:
>>
>>Notice: Undefined index: height in
>>c:\mapservertools\chameleon\htdocs\widgets\Button.php on line 570
>>
>>The sample I used is here:
>>
>><cwc2 type="MapTips" defaulttext=" " tolerance="2"
>>maptipsdiv="maptips_container" label="Map Tips"
>>styleresource="TextButton" popupstyleresource="TextButton"
>>popupwidth="500" popupheight="450" image="images/icon_maptips.png"
>>imagewidth="75">
>> <image state="normal"/>
>> <image state="selected"/>
>> <image state="hover"/>
>> </cwc2></td>
>> <td><div id="maptips_container" name="maptips_container"
>>style="position:relative;width:100%;height:75;background-color:#CCCCCC"
>>
>>
>></div></td>
>> <td> </td>
>>
>>
>>
>>Thanks,
>>
>>Dave
>>
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
>>
>>
>>
>>
>
>
>
--
________________________
Jason Fournier
Application Developer
DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18
More information about the Chameleon
mailing list