[OpenLayers-Users] api docs for vector layer options including things like strategies, protocol, etc?

Scott Chapman scott at mischko.com
Mon Mar 5 20:00:16 EST 2012


The api doesn't have docs for the options which can be passed in to
the new layer?


      var stores_layer = new OpenLayers.Layer.Vector("Stores", {
         strategies: [
                      new OpenLayers.Strategy.Fixed(),
                      new OpenLayers.Strategy.Refresh({interval: 60000}),
                      new OpenLayers.Strategy.Cluster()
                     ],
           protocol: new OpenLayers.Protocol.HTTP(
                      {
                            url: "/kiosks_status_geoJSON/",
                        headers: {'Accept':'application/json'},
                         format: new OpenLayers.Format.GeoJSON()
                      }
                     )
       });

Where's the docs on the 'strategies', 'protocol', and other options
you can use there?

Many thanks!
Scott


More information about the Users mailing list