[OpenLayers-Users] Where Do I Find A List of Available
Hashtable Options?
Bill Thoen
bthoen at gisnet.com
Fri Jan 2 14:50:19 EST 2009
Problem solved! This works:
var baseLayer = new OpenLayers.Layer.MapServer( "USA",
"http://206.168.217.244/cgi-bin/mapserv?",
{
'map_imagetype': 'PNG',
layer: 'states',
"map.layer[states].class[0].style[0]": "COLOR 255 255 0",
map: '/var/www/html/piper/usa.map'
}, {
singleTile: true
});
The trick to overriding MapServer map file directives is to format them
as specified in
http://mapserver.osgeo.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url,
putting the directive hierarchy in the key and the final parameter and
its value in the value. Also use spaces instead of the '+' characters.
Thanks again!
- Bill Thoen
Bill Thoen wrote:
> In several places in the OpenLayers Constructor functions there is a
> parameter that is an object consisting of a "Hashtable of extra
> options...", but I can't find a list of what those choices might be. For
> example, the fourth parameter for OpenLayers. Layer. MapServer() is such
> an object. What are the available tags that can be used here and where
> do I find out what these are? Are they the parameters from a map file,
> like LAYER.CLASS.STYLE.COLOR: "255 255 0" or something like that?
>
> TIA,
> - Bill Thoen
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
More information about the Users
mailing list