[Chameleon] Update Widget
Ilham Adi Afdillah
ilham.adi at gmail.com
Thu May 3 00:06:08 EDT 2007
Hi,
Sorry I have mistake when edit your searchresults.phtml,
I comments out the layer control array <sorry I didn't remember the line
number>,
that's why the result's always shown the same attribute even in searchlist
has report "8 Matches Returned".
It impact to the hilite too <I don't know why>. But Now it's working..
Thanks for the advice...
Regards,
Ilham Adi A.
On 30/04/07, Delfos, Jacob <Jacob.Delfos at maunsell.com> wrote:
>
> Hi Ilham,
>
> Sorry for my late reply. I was on leave.
> There are a few possible reasons why the highlight would not appear. It is
> possible you did not specify "HIGHLIGHT='TRUE'" in the definition, but the
> most likely cause is that it does not have writing permission or "folder
> creation permission" in your temporary directory. I have set it up to dump
> the temporary shapefile in a dedicated folder. It didn't occur to me that
> some people may have permission problems inside the temp folder.
>
> If this is the case, you'd have to edit two files:
> in searchresults.phtml, line 401, get rid of:
> ."/queryresultdir"
>
> and in download.php, line 13, also get rid of:
> ."/queryresultdir";
>
> Hopefully that will fix it. If not, please let me know which PHP errors
> show up in your log.
>
> You say you don't want "queryresult" in the legend. Do you mean "do not
> show an icon"?
>
> To hide the icon, comments out line 574 in searchresults.phtml, which
> says:
> $queryclass->set("name", "Query result");
>
> regards,
>
> Jacob
>
>
>
>
> ------------------------------
> *From:* Ilham Adi Afdillah [mailto:ilham.adi at gmail.com]
> *Sent:* 24 April 2007 18:03
> *To:* chameleon at lists.maptools.org
> *Cc:* Julien-Samuel Lacroix
> *Subject:* Re: [Chameleon] Update Widget
>
> Hi Jacob, Julien,
>
> I use MS4W 2.1 Package and Chameleon 2.4, and my few problem was solve.
> For problem:
> 1. LocateByAttribute when using Postgis Data,
> Thanks to Jacob for the update widget, it work except the hilite
> didn't appears in my map (just in my legend). Could you tell me how to
>
> hilite my map without appearing the layer 'Queryresult' in legend?,
> because it can be done
> using my earlier widget with shapefile data.
> 2. Rectangular Queries, I used the widget zip file that exist in this
> milist. It's work!
> 3. The QuickZoom still doesn't work..???
> 4. Ruler widget didn't show the line again after >350 km when measure
> distance.
> It was solved by change the value of var $mnNumberOfPoints = 200
> default is 100.
> More value I give, the process take more time, It isn't right? or there
> is another solution.
>
> Here is my map file looks like:
> MAP
>
> NAME "BALI"
> STATUS ON
> SIZE 600 500 #520 420
> EXTENT 114.431625 -8.849258 115.711227 -8.061678
> SYMBOLSET "../etc/symbol.sym"
> FONTSET "../etc/fonts.txt"
> UNITS DD
> IMAGETYPE PNG
> IMAGECOLOR 255 255 255
> TRANSPARENT FALSE
>
> WEB
> IMAGEPATH "c:/ms4w/tmp/ms_tmp/"
> IMAGEURL "/ms_tmp/"
> METADATA
> "show_in_legend" "1"
> END
> END
>
> REFERENCE
> STATUS ON
> IMAGE "images/keymap.gif"
> SIZE 120 74
> EXTENT 114.431625 -8.849258 115.711227 -8.061678
> COLOR -1 -1 -1
> OUTLINECOLOR 255 0 0
> END
>
> QUERYMAP
> STATUS ON
> COLOR 255 0 0
> STYLE HILITE
> END
>
> PROJECTION
> "init=epsg:32750"
> END
>
> LEGEND
> KEYSIZE 18 12
> STATUS ON
> LABEL
> FONT "Verdana"
> TYPE TRUETYPE
> COLOR 0 0 0
> SIZE 8
> END
> END
>
> SCALEBAR
> IMAGECOLOR 255 255 255
> LABEL
> COLOR 0 0 0
> SIZE SMALL
> END
> SIZE 150 5
> COLOR 255 255 255
> BACKGROUNDCOLOR 0 0 0
> OUTLINECOLOR 0 0 0
> UNITS KILOMETERS
> INTERVALS 5
> STATUS ON
> END
>
> LAYER
> NAME "Bali"
> METADATA
> "DESCRIPTION" "Admin"
> "GROUP" "Polygon"
> "LAYER" "bali"
> "SPATIALSEARCH" "kabupaten, propinsi"
> "SPATIALSEARCHLIST" "kabupaten"
> "RESULT_FIELDS" "kabupaten"
> "show_in_legend" "1"
> END
> TYPE POLYGON
> CONNECTIONTYPE postgis
> CONNECTION "host=localhost port=5432 dbname=*** user=*** password=***"
> STATUS DEFAULT
> DATA "geom from bali"
> TEMPLATE "ttt"
> LABELITEM "kabupaten"
> CLASS
> OUTLINECOLOR 0 0 0
> #OUTLINECOLOR 28 93 139
> COLOR 0 120 220
> #SYMBOL "dashed_long"
> #SIZE 1
> LABEL
> FONT "sans" #"fritqat"
> TYPE TRUETYPE
> ANTIALIAS TRUE
> COLOR 0 0 0
> OUTLINECOLOR 255 255 255
> SIZE 6
> POSITION CC
> END
> END
> END
>
>
> And this is my QuickZoom statement:
>
> <!-- QUICK ZOOM -->
> <td align="center">
> <cwc2 type="QuickZoom" Label="" LabelPosition="0" widgetclass="label"
> labelclass="label">
> <view name="Pilih Lokasi ..."/>
> <view name="Kab. Badung" minx="115.083840" miny="-8.849258" maxx="
> 115.252533" maxy="-8.234078" SRS="epsg:32750"/>
> <view name="Kab. Tabanan" minx="114.909699" miny="-8.6359743" maxx="
> 115.216179" maxy="-8.237040" SRS="epsg:32750"/>
> <view name="Kab. Jembrana" minx=" 114.431625" miny="-8.463202" maxx="
> 114.933952" maxy="-8.160602" SRS="epsg:32750"/>
> <view name="Kab. Karang asem" minx="115.389915" miny="- 8.550742"
> maxx="115.711227" maxy="-8.170411" SRS="epsg:32750"/>
> <view name="Kab. Bangli" minx="115.235002" miny="-8.524396" maxx="
> 115.458557 " maxy="-8.143510" SRS="epsg:32750"/>
> <view name="Kab. Klungkung" minx="115.351547" miny="-8.819542" maxx="
> 115.628586" maxy="-8.462596" SRS="epsg:32750"/>
> <view name="Kab. Buleleng" minx="114.432274" miny="-8.379020" maxx="
> 115.459536" maxy="-8.061678" SRS="epsg:32750"/>
> <view name="Kab. Gianyar" minx=" 115.222916" miny="-8.645082" maxx="
> 115.369863" maxy="-8.313276" SRS="epsg:32750"/>
> <view name="Kota Denpasar" minx="115.173248" miny="-8.746707 " maxx="
> 115.281966" maxy="-8.588169" SRS="epsg:32750"/>
> </cwc2>
> </td>
>
> Thanks for your help.
>
> Regards,
>
> Ilham Adi A.
>
>
> On 24/04/07, Julien-Samuel Lacroix <jlacroix at mapgears.com> wrote:
> >
> > Hi,
> > Where did you take the package? Is a MS4W, tarball or FGS package?
> >
> > Julien
> >
> > Ilham Adi Afdillah wrote:
> > > Hi,
> > >
> > > I have update my Chameleon using the latest release <Chameleon 2.4.1>,
> >
> > > but I still got problem,
> > > it's look like I need to update my widget due to the issue :
> > > 1. LocateByAttribute when using Postgis Data
> > > 2. Rectangular Queries.
> > > 3. When using postgis data QuickZoom widget doesn't work too.
> > > 4. Ruler widget didn't show the line again after >350 km when measure
> > > distance.
> > > Can someone give me the file?.
> > >
> > > Regards,
> > >
> > > Ilham Adi A.
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Chameleon mailing list
> > > Chameleon at lists.maptools.org
> > > http://lists.maptools.org/mailman/listinfo/chameleon
> >
> > --
> > Julien-Samuel Lacroix
> > Mapgears
> > http://www.mapgears.com/
> >
>
> This email and any attachments are intended solely for the named recipient
> and are confidential. The copying or distribution of them or any information
> they contain by anyone other than the named recipient is prohibited. If you
> have received this document in error, please notify the sender and delete
> all copies from your computer system and destroy all hard copies. It is the
> recipient's responsibility to check this email and any attachments to this
> email for viruses before use.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20070503/5fb24aa9/attachment.html
More information about the Chameleon
mailing list