Created
June 6, 2013 10:55
-
-
Save MPriess/5720740 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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