//////////////////////////////////////////////////////////////////////////// //--------------------------------- REVISIONS ------------------------------ // Date Name Tracking # Description // --------- ------------------- ------------- ---------------------- // 21JUN2009 James Shen Initial Creation //////////////////////////////////////////////////////////////////////////// /** * Open the map. * @ */ public void Open() { lock (_mapFeatureLayers) { int layerCount = _mapFeatureLayers.Count; if (layerCount > 0) { ((MapFeatureLayer)_mapFeatureLayers[0]).Open(); _bounds = ((MapFeatureLayer)_mapFeatureLayers[0]).Bounds; } else { _bounds = new GeoLatLngBounds(); } for (int i = 1; i < layerCount; i++) { MapFeatureLayer mapLayer = (MapFeatureLayer)_mapFeatureLayers[i]; mapLayer.Open(); GeoBounds.Union(mapLayer.Bounds, _bounds, _bounds); } } }
//////////////////////////////////////////////////////////////////////////// //--------------------------------- REVISIONS ------------------------------ // Date Name Tracking # Description // --------- ------------------- ------------- ---------------------- // 20JUN2009 James Shen Initial Creation //////////////////////////////////////////////////////////////////////////// /** * Open the map. * @throws IOException if there's problem opening the map. */ public void Open() { lock (_mapTiledZones) { int layerCount = _mapTiledZones.Count; if (layerCount > 0) { ((MapTiledZone)_mapTiledZones[0]).Open(); _bounds = ((MapTiledZone)_mapTiledZones[0]).Bounds; } else { _bounds = new GeoLatLngBounds(); } for (int i = 1; i < layerCount; i++) { MapTiledZone mapTiledZone = (MapTiledZone)_mapTiledZones[i]; mapTiledZone.Open(); GeoBounds.Union(mapTiledZone.Bounds, _bounds, _bounds); } } }