Skip to content

Commit

Permalink
Merge pull request #10 from capooti/master
Browse files Browse the repository at this point in the history
wms layers cannot manage extra GetMap parameters in request
  • Loading branch information
stvno committed Sep 5, 2011
2 parents 5f54ac5 + 8c8c259 commit 91c3de4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jquery.mapquery.core.js
Expand Up @@ -810,6 +810,7 @@ _version added 0.1_
**format** a string with format of the WMS image (default image/jpeg)
**transparent** a boolean for requesting images with transparency
**label** string with the name of the layer
**wms_parameters** an hashtable of extra GetMap query string parameters and parameter values
layers:[{
Expand All @@ -828,6 +829,9 @@ _version added 0.1_
transparent: o.transparent,
format: o.format
};
if(typeof o.wms_parameters != "undefined"){
var params = $.extend(params, o.wms_parameters);
}
return {
layer: new OpenLayers.Layer.WMS(o.label, o.url, params, o),
options: o
Expand Down

0 comments on commit 91c3de4

Please sign in to comment.