I\'m working on a graphing web-app and I\'ve decided that leaflet would make a decent graph view. I have it displaying (sort of) but I need a way to force it to update when
You can simplify this a bit by using a function instead of the global for the cache buster.
In your case, you can remove the val global var and change the document ready function call to look something like:
$(document).ready(function(){
map=L.map('plot',{crs:L.CRS.Simple}).setView([0,0],10);
tiles = L.tileLayer('./GraphTile.png?x={x}&y={y}&z={z}&tilesize={tileSize}&{test}',
{
maxZoom: 20,
continuousWorld: true,
tileSize: 128,
test: Math.random()
}).addTo(map);
});