I got it working right away using the example from the Mobile Tutorial. Super easy. Here's the code:
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style type="text/css">
#map { min-height: 320px; height: 100%; margin: -15px;}
body {
padding: 0;
margin: 0;
}
html, body, {
height: 100%;
}
</style>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed" data-tap-toggle="false" data-fullscreen="false">
<h1>My Title</h1>
</div><!-- /header -->
<div data-role="content">
<div id="map"></div>
<script>
var map = L.map('map');
maxZoom: 18,
}).addTo(map);
function onLocationFound(e) {
var radius = e.accuracy / 2;
L.marker(e.latlng).addTo(map)
.bindPopup("You are within " + radius + " meters from this point").openPopup();
L.circle(e.latlng, radius).addTo(map);
}
function onLocationError(e) {
alert(e.message);
}
map.on('locationfound', onLocationFound);
map.on('locationerror', onLocationError);
map.locate({setView: true, maxZoom: 16});
</script>
</div><!-- /content -->
<div data-role="footer" data-position="fixed" data-tap-toggle="false" data-fullscreen="false">
<div data-role="navbar" data-position="fixed" data-tap-toggle="false" >
<ul>
<li><a href="#" id="PROFILE" data-icon="custom">PROFILE</a></li>
<li><a href="#" id="CONTACTS" data-icon="custom">CONTACTS</a></li>
<li><a href="#" id="TRIPS" data-icon="custom">TRIPS</a></li>
<li><a href="#" id="ACCOUNT" data-icon="custom">ACCOUNT</a></li>
</ul>
</div>
</div>
</div><!-- /page -->
</body>
</html>