MapTools.org

[maplab-users] Querying different layers/adding classes

Mike Leahy mgleahy@fes.uwaterloo.ca
Wed, 11 Jun 2003 12:28:42 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C33015.099593F0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hello all again,

=20

I have two questions.  Regarding my previous post, I found in the =
MapScript
class guide that queries are performed on all layers with a value =
specified
for the template in the layer object.  So if I remove the TEMPLATE =
property
in the mapfile, objects in that layer won't be highlighted in the query. =
 So
now my question is, can I actually *remove* a property from a layer =
object?
There is the $oLayer->set( property_name, property_value ); function - =
if I
supply a null value, does that remove the whole property, or just give =
it an
empty string (which would still cause the objects to be highlighted in =
the
image).

=20

My next question is related to adding/removing classes to a layer -
essentially, how do I do it?  The class reference discusses how to =
create a
new class, but not how to add or remove them from a layer.  Are there =
any
reference that discuss this at all?

=20

BTW: My colleague and I are volunteering for an NGO in Peru, and have =
little
access to technical resources.  I hope the members of this list can =
forgive
the numerous posts I have been making, as I climb up a fairly seep =
learning
curve.

=20

Many thanks,

Mike

=20

-----Original Message-----
From: maplab-users-admin@dmsolutions.ca
[mailto:maplab-users-admin@dmsolutions.ca] On Behalf Of Mike Leahy
Sent: June 10, 2003 3:04 PM
To: maplab-users@dmsolutions.ca
Subject: [maplab-users] Querying different layers

=20

-->=20

Hello all,

=20

I've been working to add an option in a GMapFactory-generated project =
that
allows individual layers to be selected for querying, rather than having
every displayed layer listed in the results.  I've pretty much got it =
setup,
and the attributes listed in the query.phtml results are only for the =
layers
I have selected, but despite having only one layer named in runQuery()
statement (drawmap.php), I still get objects from all layers highlighted =
in
the output image.  Can anyone suggest what I should do to change this?

=20

Kind regards,

Mike


------=_NextPart_000_001B_01C33015.099593F0
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+IgARAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEI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MDAw
MDAwMDA1QThBODY3QjIyRjQyMzRFQTMzMkRDN0MzQjYzQ0EzMjA0ODMyNzAwAAAAAAMABhDeG9pN
AwAHEDMGAAADABAQAAAAAAMAERAAAAAAHgAIEAEAAABlAAAASEVMTE9BTExBR0FJTixJSEFWRVRX
T1FVRVNUSU9OU1JFR0FSRElOR01ZUFJFVklPVVNQT1NULElGT1VORElOVEhFTUFQU0NSSVBUQ0xB
U1NHVUlERVRIQVRRVUVSSUVTQVJFUAAAAACJmA==

------=_NextPart_000_001B_01C33015.099593F0--



This archive was generated by Pipermail.