Use browser detection to decide how many features to show
[rails.git] / app / views / browse / start.js.erb
index 9513652689646e93ad6d149c0ab3a51499aea110..6831f6f6d97ee675418cca7a5b85e55f13c9a03e 100644 (file)
@@ -245,7 +245,7 @@ function loadGML(url, reload) {
     browseDataLayer = new OpenLayers.Layer.GML("Data", url, {
       format: OpenLayers.Format.OSM,
       formatOptions: formatOptions,
-      maxFeatures: 100,
+      maxFeatures: <%= @max_features %>,
       requestSuccess: customDataLoader,
       displayInLayerSwitcher: false,
       styleMap: new OpenLayers.StyleMap({