[Gfoss] OpenLayers con TileCache
francesco334
francesco334 a interfree.it
Mer 3 Set 2008 15:12:23 CEST
Se inserisco quei valori, vedo imieilayer disabilitati.Qual'è l'errore? Il
bbox?
francesco334 wrote:
>
> Se non inserisconiente, iparametri di default qualisono? (intendo le var
> in mapOptions )
>
>
>
> Salvator*eL*arosa wrote:
>>
>>
>>
>> francesco334 wrote:
>>>
>>>
>>>
>>> Vedendo un pò su internet,mi dicono di settare correttamente il bbox!
>>> Sinceramente non l'ho mai settato enonho capito come recuperarlo!
>>>
>>> Help..please!
>>>
>>> Grazie,
>>> Francesco
>>>
>>>
>>
>> Per inserire il bounds procedi così:
>>
>> Inserisci questa variabile nella funzione init();
>>
>> var bounds = new OpenLayers.Bounds(Xmin,Ymin,Xmax,Ymax);
>>
>> poi in mapOptions inserisci:
>>
>> maxExtent=bounds
>>
>> Per esempio nel mio caso:
>> var bounds = new
>> OpenLayers.Bounds(2614649.5,4320194.5,2653614.5,4344669.5);
>> var mapOptions = {
>> theme: null,
>> controls: [],
>> maxExtent: bounds,
>> projection:"EPSG:3004",
>> resolutions: [1,2,4,8,16,32,64,128,256,512],
>> maxResolution: 'auto',
>> units: "m",
>> format: 'png',
>> numZoomLevel: 10 };
>>
>> map = new OpenLayers.Map( 'map' , mapOptions);
>>
>>
>> Ciao!
>>
>>
>
>
--
View this message in context: http://www.nabble.com/OpenLayers-con-TileCache-tp19223528p19288917.html
Sent from the Gfoss mailing list archive at Nabble.com.
Maggiori informazioni sulla lista
Gfoss