When drawing a shape is it supposed to use the layer transparency?
Merrett, Mike
mike.merrett at WHITEHORSE.CA
Fri Mar 3 13:36:32 PST 2006
Hi:
I have a queryByAttributes result which gives me a shapeobj
-- if I then try to draw that shape it does draw but it
is not transparent like the layer is set to
Should it? (is this a feature or a bug)
Below is the code I am using ( assume a zoom in to show the features at
a scale which show that it isn't transparent - I cut out that part for
clarity)
$oParcelLayer = $gpoMap->getLayerByName("City Streets" );
$y = @$oParcelLayer->queryByAttributes('street_name', $the_street,
MS_SINGLE ); // assume it found one (real code has an if)
$oResult = $oParcelLayer->getResult(0 );
$oParcelLayer->open();
$oShape = $oParcelLayer->getShape($oResult->tileindex,
$oResult->shapeindex );
$img = $gpoMap->draw();
$rrr = $oShape->draw( $gpoMap, $oParcelLayer, $img);
More information about the MapServer-users
mailing list