I am just starting to work with geoserver. I am trying to do the same openlayers-geoserver example but using leaflet to view the map instead of openlayers:
This code is not working:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<title>Leaflet Web Map</title>
<style>
#map {
width: 506px;
height: 768px;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([988008, 213104], 3);
L.tileLayer.wms("http://localhost:8080/geoserver/nyc/wms", {
layers: 'nyc_roads',
format: 'image/png',
version: '1.1.0',
transparent: true,
attribution: "Geoserver - Leaflet Example",
tiled: 'true'
}).addTo(map);
</script>
</body>
</html>
I just get this clean-empty screen in linux ubuntu browser:
What could be the problem?