title: Proper way to create tile maps for Leaflet.js?
body: <p>I am trying to build a custom-designed map, with correct geodata. It could even be an image created in illustrator, but it has to be exported as a set of tiles in correct map format - so that it can be read by tools like Leaflet.js</p>
  
  <p>What confuses me is that none of the available map tools seem to work very well together. I did find Tilemill, which looks very promising (it has a very clean interface and works with CSS), but:</p>
  
  <ul>
  <li>Openstreetmaps does not allow downloading tile images, only XML data in OSM format.</li>
  <li>Tilemill does not allow importing Openstreetmaps XML data (why!).</li>
  <li>Even if you manage to design a map in Tilemill, you still cannot export tile images, only a proprietary SQL database format? What's the point of that?</li>
  <li>If Tilemill is useless, are there other tools that allow opening OSM XML data and applying your own design styles?</li>
  </ul>
  
  <p>There are some sources that talk about building your own tile server:</p>
  
  <p><a href="http://wiki.openstreetmap.org/wiki/Creating_your_own_tiles" rel="nofollow">This source</a> suggests converting OSM to PostGIS using SQL, and then using a custom python script and a tool named Mapnik. Then it says that it's not recommended to use Mapnik for OSM....</p>
  
  <p><a href="http://tiledrawer.com/" rel="nofollow">This source</a> sounds promising, but then it casually mentions that you have to build and run your own custom Linux distribution...</p>
  
  <p>Is there a simpler way to create map tiles with correct filenames and folders for Leaflet.js?</p>