var simple = {
"version": 8,
"sources": {
"osm": {
"type": "vector",
"tiles": ["http://xxxxx/geoserver211/gwc/service/tms/1.0.0/topp:states@EPSG:4326@pbf/{z}/{x}/{y}.pbf"]
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "#ffffff"
}
}, {
"id": "states",
"type": "fill",
"source": "osm",
"source-layer": "states",
"filter": ["==", "$type", "Polygon"],
"paint": {
"fill-color": "#3887be"
}
}
]
};
//map info here
map = new mapboxgl.Map({
container: 'map', // container id
style: simple, //stylesheet location
center: [0, 0], // starting position[35.890, -75.664]
zoom: 0, // starting zoom
hash: true,
minZoom: 0,
maxZoom: 22,
preserveDrawingBuffer: true
});