Skip to content

Instantly share code, notes, and snippets.

@nextstopsun
Created August 28, 2012 13:05
Show Gist options
  • Save nextstopsun/3497822 to your computer and use it in GitHub Desktop.
Save nextstopsun/3497822 to your computer and use it in GitHub Desktop.
Leaflet 0.4.4 messed up tiles from TMS
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Quick Start Guide Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../dist/leaflet.ie.css" /><![endif]-->
</head>
<body>
<div id="map" style="width: 1024px; height: 768px"></div>
<script src="dist/leaflet.js"></script>
<script>
var map = new L.Map('map');
var lyrUrl = 'http://192.168.0.12:10000/tiles/1.0.0/mlyr_EPSG900913/{z}/{x}/{y}.png',
lyrAttribution = 'Just a simple map',
lyr = new L.TileLayer(lyrUrl, {maxZoom: 18, attribution: lyrAttribution, scheme: "tms"});
map.setView(new L.LatLng(55.727, 37.639), 8).addLayer(lyr);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment