Hi,

i'm trying to set up multiple layers/classes with the plugin autolayers (http://www.cartoweb.org/doc/cw3.1/xhtml/user.layers.html#user.layers.autolayer)

After some coding (very basic) it works fine, but now as i'm trying to use arrays, this error message appears:

Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\cw3_vd2006\scripts\makemaps.php(158) : eval()'d code on line 223

The lines in question are:

221 $emmanuel = array('test');
222 array_push($emmanuel, '1');
223 $emmanuel[] = '1';

array_push doesn't seem to be problematic.

Are there some coding restriction in the *.map.php?

best regards,

Emmanuel Belo
begin:vcard
fn:Emmanuel Belo
n:Belo;Emmanuel
org:MicroGIS SA
adr:;;ch. des Jordils 40;St-Sulpice;VD;1025;Switzerland
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur en g=C3=A9omatique
tel;work:+41 21 691 77 17
tel;fax:+41 21 691 77 86
x-mozilla-html:FALSE
url:http://www.microgis.ch
version:2.1
end:vcard

_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to