Click or drag to resize

MapMapRepository Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets or sets the Repository used to render the map.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public Repository MapRepository { get; set; }

Property Value

Type: Repository
The Repository being used to render the map.
Examples
C#
// Create a Map object
Telogis.GeoBase.Map myMap = new Telogis.GeoBase.Map();

// Set using SimpleRepository. If the requested data file doesn't exist, a FileNotFoundException will be thrown.
myMap.MapRepository = new Telogis.GeoBase.Repositories.SimpleRepository(@"C:\MAPDATA.gbfs");

// NOTE: If no repository has been manually set, this will default to the CurrentThreadRepository
Console.WriteLine("The repository used for this map is {0}", myMap.MapRepository);
// 'The repository used for this map is MAPDATA'
See Also