Regarding percentages, take a look at our example: http://leaflet.cloudmade.com/examples/mobile.html (making a percentage-based block is not a Leaflet-specific problem, it’s related to the page’s CSS).
Regarding broken polyline - could you upload the test page somewhere so I could take a look?
You should replace the current /dist/leaflet.js in the “current stable” version with what’s available at http://leaflet.cloudmade.com/dist/leaflet.js . I spent HOURS trying to debug something that was fixed after reading this thread, and doing just that.
Otherwise, I’ve been pretty happy with Leaflet, and am seriously considering it as our default tool for our new mobile app.
Why not refer to http://www.lavilleavelo.org/carte/lvv2.html and if you took the pagetracker script out there would be even less code to look at. Please keep the problem as simple as possible.
Apparently you have to do something with the zoom, lat and lon parameters. I don’t know what because I did not look to much at the source. Think you omitted a piece of javascript.
But when i click a second time on “Permalink” link, the URL change : http://www.lavilleavelo.org/carte/lvv2.html?zoom=17&lat=45.760154&lon=-175.15091 and the Permalink is good. In fact, only the longitude change, and i dont understand at all. The right value for longitude is in the first URL but this is the second value (-175.15091 for example) which works.
When i add this line : map.setView(new L.LatLng(lat, lon), zoom).addLayer(cloudmade);
it doent work.