thanks All, the confusion gone . please mark this discussion as closed :) thanks OpenLayers users...
On Tue, Dec 13, 2011 at 8:47 PM, Fernando <[email protected]> wrote: > Take it easy Mohammed, > > The strategy is usually combined with Protocol and/or Format Classes, it's > about 'time' and data. The Strategy class it's used to determine what to do > with a data returned from a protocol, before became visible in an layer. > > See an example, that I found in a good book about OpenLayers, that I > recomend to buy or stfw (OpenLayers 2.10 - Begginer's Guide, by Erik > Hazzard, from PACKT Publishing): > > *var vector_layer = new OpenLayers.Layer.Vector('More Advanced > Vector Layer',{* > * protocol: new OpenLayers.Protocol.HTTP({* > * url: 'some_data.json',* > * format: new OpenLayers.Format.GeoJSON({})* > * }),* > * strategies: [new OpenLayers.Strategy.Fixed()]* > *});* > * > * > *The above code would use the HTTP Protocol class and use the GeoJSON > format. Notice how the format is actually part of the protocol object. The > Fixed Strategy class is also used, which essentially just causes the vector > layer to request features once and never request new features again.* > > Did you get it, now? > > Cya, > > Fernando G. Norte > BHte - MG > cel: +55 31 9119 8814 > ------------------------- > MSN e Gtalk # [email protected] > > > 2011/12/13 Mohammed Rashad <[email protected]> > >> i already read the openlayers documentation.Atleast you should think >> that people may have looked google search pages before asking to a list >> thanks for your help >> >> but I need more . OpenLayers people who developed it may have more idea >> on it >> >> I am waiting for them to answer.... >> >> >> On Tue, Dec 13, 2011 at 7:34 PM, Ian Turton <[email protected]> wrote: >> >>> >>> >>> On 13 December 2011 13:20, Mohammed Rashad >>> <[email protected]>wrote: >>> >>>> Hi All, >>>> Any one please tell me what is strategy? >>>> How it works? >>>> How to use it? >>>> >>> >>> *http://www.google.co.uk/search?q=openlayers+strategy* >>> >>> -- >>> Ian Turton >>> >>> >> >> >> -- >> Regards, >> >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > -- Regards,
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
