I am attempting to construct a tilelayer link from a local geoserver. the layer is called county and I seem to have set it up correctly to be called as a tilelayer
now as I am following the leaflet documentation http://leafletjs.com/reference-1.2.0.html#tilelayer
I am getting confused on how to construct the URL
here is my code
<html>
<head>
<title>A Leaflet map!</title>
<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>
<style>
#map{ height: 100% }
</style>
</head>
<body>
<div id="map"></div>
<script>
// initialize the map
var map = L.map('map').setView([40.876,-74.9999], 13);
// base maps
var county=L.tileLayer('http://localhost:8080/geoserver/pg_world:county/{z}/{x}/{y}.png').addTo(map);
</script>
</body>
</html>
nothing shows up when I display this in google chrome.
in the console I get this error
how do I properly construct this tilelayer URL?