public void CloseInfoWindow() { if (windowsLayer != null) { Layers.Remove(windowsLayer); windowsLayer = null; } }