Ejemplo n.º 1
0
 public static IEnumerable <VectorTile> ToVectorTiles(this HeatMap tree, uint minZoom, uint maxZoom,
                                                      ToResolution?toResolution = null)
 {
     for (var z = minZoom; z <= maxZoom; z++)
     {
         var resolution = toResolution?.Invoke(z) ?? 256;
         foreach (var tile in tree.EnumerateTilesAt(z))
         {
             yield return(tree.GetVectorTile(tile, resolution));
         }
     }
 }