<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I'm baffled on this one!<br><br>I get a shape object $circle and I have a point layer $bizLayer.<br>I know they are both valid as they overlay as expected on my map.<br><br>When I call printBusiness to use queryByShape to get the points in the shape it always returns 0 for $numResults. <br><br>Am I missing a step somewhere?<br><br>// Get shape from point and radius<br>$circle = createCircle($latlonPoint,$radius);<br><br>echo 'Biz Count : ';<br>$bizCount = printBusiness($bizLayer,$circle);<br>echo $bizCount;<br><br>// Draw all the layers per basic1.map<br>$image=$map->draw();<br><br>// Draw circle - reads shp->draw(map,template,image);<br>$circle->draw($map,$emptyLayer,$image);<br><br>$image_url=$image->saveWebImage();<br><br><br>function printBusiness($featureLayer,$shp){<br> <br> $featureLayer->queryByShape($shp);<br> $numResults = $featureLayer->getNumResults();<br><br> if($numResults > 0){<br> echo 'if';<br> return $numResults;<br> }else{<br> echo 'else';<br> return 0;<br> }<br>}<br> </div></body>
</html>