- browseDataLayer = new OpenLayers.Layer.GML("Data", url, {
- format: OpenLayers.Format.OSM,
- formatOptions: formatOptions,
- maxFeatures: 100,
- requestSuccess: customDataLoader,
+ var maxFeatures = 2000;
+
+ /*@cc_on
+ if (navigator.appVersion < 8) {
+ maxFeatures = 100;
+ } else if (navigator.appVersion < 9) {
+ maxFeatures = 500;
+ }
+ @*/
+
+ 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: maxFeatures,
+ handleRead: customDataLoader
+ }),
+ projection: new OpenLayers.Projection("EPSG:4326"),