Hello Howard,
Thanks for your code. But I want to check whether any point already added in map and this point is added under "Points" layer of "DynamicOverlay" and this overlay added under CustomOverlay in the map. Below code is for your understanding heirarchy where point is added.
//Field Declaration
private LayerOverlay dynamicOverlay;
//Property
public LayerOverlay DynamicOverlay
{
get
{
if (this.dynamicOverlay == null)
this.dynamicOverlay = mainMap.CustomOverlays.Where(l => l.Name == "DynamicOverlay").FirstOrDefault() as LayerOverlay;
return this.dynamicOverlay;
}
}
//Add Dynamic overlay in Custom Overlay
dynamicOverlay = new LayerOverlay();
dynamicOverlay.TileType = TileType.SingleTile;
dynamicOverlay.Name = "DynamicOverlay";
dynamicOverlay.IsVisibleInOverlaySwitcher = false;
dynamicOverlay.IsBaseOverlay = false;
mainMap.CustomOverlays.Add(dynamicOverlay);
//Add Points Overlay in Custom Overlay
InMemoryFeatureLayer pointsOverlay = new InMemoryFeatureLayer();
DynamicOverlay.Layers.Add("Points", pointsOverlay);
Can provide me javascript code for how to check above thing?
Thanks.
Badal