map.addLayer(new OSM());
String[] matrixIds = new String[26];
for (int i = 0; i < 26; ++i) {
matrixIds[i] = "EPSG:900913:" + i;
}
map.addLayer(new WMTS(
toMap(pair("name", "Medford Buildings"),
pair("url",
"http://v2.suite.opengeo.org/geoserver/gwc/service/wmts/"),
pair("layer", "medford:buildings"),
pair("matrixSet", "EPSG:900913"),