is there a ClearPolygons Widget?
- From: "Delfos, Jacob" <jacob.delfos (at) maunsell.com>
- Date: Tue, 14 Feb 2006 14:01:07 +0800
Jojin,
The highlight is simply a polygon layer that is added to the map. When
the map is updated (submit), it appears in the legend as an entry
("Queryresult"). If you have a legend with tickboxes, it can simply be
turned off. You would have to modify line 525 in searchresults.phtml,
though. I may have accidentally put layer status to MS_DEFAULT. I think
I should have made it "MS_ON". Not sure why I did that...
I have not yet built functionality to remove the layer permanently. It
wouldn't be hard, though. Just build a widget that changes the status to
MS_DELETE:
$queryResultlayer->set( "status", MS_DELETE );
regards,
Jacob
________________________________
From: chameleon-bounces (at) lists.maptools.org
[mailto:chameleon-bounces (at) lists.maptools.org] On Behalf Of JR Santillan
Sent: 14 February 2006 13:44
To: chameleon (at) lists.maptools.org
Subject: [Chameleon] is there a ClearPolygons Widget?
Hello there.
There is a functionality in my mapserver application that uses
the LocateByAttribute widget to search a polygon layer. After the search
succeeded and a polygon is highlighted in the map and I am satisfied
with the result, I wanted to clear the polygon/s.
Is there a widget to clear all the selected polygons in a map?
Thanks and regards.
Jojin
________________________________
Yahoo! Autos <http://us.rd.yahoo.com/evt=38381/
ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*ht
tp://autos.yahoo.com/index.html> . Looking for a sweet ride? Get
pricing, reviews, & more on new and used cars.
_______________________________________________
Chameleon mailing list
Chameleon (at) lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon