Tim,

Thanks a lot for the hints.

Tim Schaub wrote:
> Yeah.  Two options:
>
>      var store = new GeoExt.data.WMSCapabilitiesStore({
>          url: "path/to/wmscap.xml", layerOptions: {singleTile: true}
>      });
>   
Cool, I hadn't noticed the layerOptions param in the 
WMSCapabilitiesReader yet.

Since the above store is to be used for a generic WMSBrowser widget 
where the user can input any existing WMS address, I guess the 
'singleTile: true' option isn't 100% reliable because of some servers 
with low max'Size' properties. That's why I wondered if there was a way 
to 'automatize' the process by checking the property in 1.3.0. I guess 
there no way to be 100% sure.

About this issue, when a WMS server returns an error message showing a 
"Tile size excess the max width/height" in a 'image' format, is there a 
way for the client (browser) to know about that message in any way ? 
(sounds kinda silly)


> - or -
>
> You should always clone layers from a store before they are added to 
> another store.  In this case, if you are adding layers from the 
> WMSCapabilitiesStore to a map, you should also clone them.  When you 
> clone the layer, you can set any layer properties that are appropriate 
> for your application.
>   
Got it.


Thanks again for your help,

Alexandre

> Tim
>   

-- 
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to