// create a vector layer using the canvas renderer (where available)
map.addLayer(new Vector(
"States",
toMap(pair("strategies", new Object[] { new BBOX() }),
pair("protocol",
new WFS(toMap(pair("version", "1.1.0"),
pair("srsName", "EPSG:900913"),
pair("url",
"http://v2.suite.opengeo.org/geoserver/wfs"),
pair("featureType", "states"),
pair("featureNS",