title: How to get X Y Z coordinates of tile by click on Leaflet map
body: <p>I want to ask for help to deal with the possible use of non-standard coordinates on the map Leaflet. </p>
  
  <p>I want to use Leaflet to display custom maps with my own tile generator. Tiles are generated on the fly by script, depending on where it is planned to display (parameters {x}, {y}, {z} in the URL request to the script) 
  Map will be zoomable (from 0 to 10), size of ~16000 * 16000 tiles in maximum zoom, and 16 * 16 tiles in a minimum) and it will display a variety of objects, each object in a separate tile. 
  Each tile of 64 * 64 pixels is the object on map. 
  For each object (a square-tile) I want to display it`s information on mouse click, by sending via AJAX request to the server. I did not want to pre-load all information about all objects for the goal of optimization. 
  My main issue - I cannot understand how to correctly get the X Y Я coordinates of the tile on which mouse clicked. 
  Essentially because each tile when it is loaded from the server is bound to the grid {x}, {y}, {z}, and so I want to get these {x}, {y}, {z} from clicks on the map and send them for further AJAX request for getting information about the object. 
  Now it is possible to get click point as Latlng coordinates or coordinates in pixels relative to the upper-left corner of the map, which I cannot reference to tiles grid. </p>
  
  <p>And also I wanted to know the possibility to get the coordinates of the click relative to the tile. For example, If the tile has dimensions of 64 * 64, and click was in the center of the tile, so how can I get relative coordinate of click [32, 32]? 
  Because If we knowing {X}, {Y}, {Z} coordinates of the tile and relative X* and Y* coordinates of click inside the tile, then we can do “universal alternative coordinate grid”. </p>
  
  <p>May be this is not a problem and it can be solved easily, but I've never worked with any Maps API, and therefore I want to know the answer to this question. </p>
  
  <p>Thanks in advance for your help!</p>