I'm just starting to work with leaflet and have a basic question about showing a geoJSON file. First, I found this excellent article with example code:
http://bl.ocks.org/lxbarth/4019660
However I have a more basic/beginner question, in that example the set the JSON file through this url:
http://polymaps.appspot.com/county/{z}/{x}/{y}.json
However, the file I converted (from shapefile to geojson using quantum gis) is just a .geojson extension. I'm clearly missing something here, perhaps a way to convert the geojson file into a tile format? Can someone elaborate as to how I'm supposed to do this or what my missing step is? Do I need to be hosting the geoJSON file on a server in order to do this?
If my file is called polygons.geojson, how would I go about using it in the above reference code? Thanks!