Skip to content

Instantly share code, notes, and snippets.

@MPriess
Created June 6, 2013 10:55
Show Gist options
  • Save MPriess/5720740 to your computer and use it in GitHub Desktop.
Save MPriess/5720740 to your computer and use it in GitHub Desktop.
function createFooLayer() {
return new OpenLayers.Layer.Vector(" foo", {
minZoomLevel: 7,
maxZoomLevel: 10,
styleMap: new OpenLayers.StyleMap(incidentStyle),
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: geoserverUrl,
featureType: "foo",
featureNS: "http://www.foo.com",
geometryName: "start_location",
srsName : globalProjectionOfServer,
version: "1.1.0"
})
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment