Exemplo n.º 1
0
        public void TestTileLayerOptionsDefaultValue()
        {
            // currently jsonconvert does not respect array as default values
            var expected  = "{\"subdomains\":[\"a\",\"b\",\"c\"]}";
            var tileLayer = new TileLayerOptions();
            var actual    = tileLayer.ToString();

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a TileLayer
 /// </summary>
 /// <param name="urlTemplate">A URL template string with formatting options for subdomain, zoom level, coordinates, and resolution.</param>
 /// <param name="options">The <see cref="TileLayerOptions"/> used to create the TileLayer.</param>
 public TileLayer(string urlTemplate, TileLayerOptions options)
 {
     UrlTemplate = urlTemplate;
     Options     = options;
 }