ankita_bhatia01

Using Geomtery Service to find  Relation between point and Polygon graphics .

Discussion created by ankita_bhatia01 on May 28, 2013
Hi,
I have two graphics layers on a map.
PolygonLayer (which holds a polygon).
MiscLayer (which holds 2 polylines and 2 points). I define the renderer for the graphic at runtime, but have the renderer for the [LEFT][/LEFT]Polyline defined in XAML.

The problem arises when I try to run GeometryService-Relation to find what points on MiscLayer lies "Within" the Polygon in PolygonLayer.

If I keep the Polylines and Points on same layer and renderer for the Polyline defined in XAML, the query never returns the points that lie inside the polygon.


Else If I REMOVE the Polylines and renderer for the Polyline defined in XAML, the query returns the points that lie inside the polygon.

Can anyone explain the reason for the same!

Outcomes