- browseDataLayer = new OpenLayers.Layer.GML("Data", url, {
- format: OpenLayers.Format.OSM,
- formatOptions: formatOptions,
- maxFeatures: 100,
- requestSuccess: customDataLoader,
+ browseDataLayer = new OpenLayers.Layer.Vector("Data", {
+ strategies: [
+ new OpenLayers.Strategy.Fixed()
+ ],
+ protocol: new OpenLayers.Protocol.HTTP({
+ url: url,
+ format: new OpenLayers.Format.OSM(formatOptions),
+ maxFeatures: <%= @max_features %>,
+ handleRead: customDataLoader
+ }),
+ projection: new OpenLayers.Projection("EPSG:4326"),