Changing QUERYMAP colour in PHP

Ian Tidy iant at NAPIER.GOVT.NZ
Sun Mar 11 21:57:13 EDT 2007


Hi All,

I am trying to write a PHP file as a printing template and I want to change
the QUERYMAP colour in my PHP script so that is stands out better when printed.

Currently, I have:

	// Check for Query Layers
	if (file_exists($queryfilename)) {
		$map->loadquery($queryfilename);
		$hicolour = ms_newColorObj();
		$hicolour->setRGB(255, 0, 255);
		$map->querymap->set(color, $hicolour);
		//$querymap->set("color", "255 0 255");
	}

This doesn't work, can some one please help me.

Cheers Ian



More information about the mapserver-users mailing list