/*******************************************************************************
 * Copyright 2014, 2017 gwt-ol3
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package ol.source;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
 * params for MapGuide-requests.
 * @author tlochmann
 */

@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class ImageMapGuideParams {

	/**
     * @param mapDefinition
     * 			MapGuide mapDefinition e.g. "Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition"
     */
    @JsProperty
    public native void setMapDefinition(String mapDefinition);

    /**
     * @param format
     * 	MapGuide image format
     *
     */
    @JsProperty
    public native void setFormat(String format);
    
    /**
     * @param version
     * 	MapGuide image version
     *
     */
    @JsProperty
    public native void setVersion(String version);

}

@@ -1055,16 +1055,356 @@
 rams %7B%0A%0A
+    /**%0A     * @param format%0A     *  MapGuide image format (JPG/PNG/PNG8)%0A     *%0A     */%0A    @JsProperty(name = %22FORMAT%22)%0A    public native void setFormat(String format);%0A    %0A    /**%0A     * @param hideLayers List of layers to hide.%0A     */%0A    @JsProperty(name = %22HIDELAYERS%22)%0A    public native void setHideLayers(String hideLayers);%0A    %0A
 %09/**%0A   
@@ -1540,32 +1540,56 @@
 %0A    @JsProperty
+(name = %22MAPDEFINITION%22)
 %0A    public nati
@@ -1656,65 +1656,264 @@
   * 
-@param format%0A     * %09MapGuide image format%0A 
+%0A     * @param mapName Name of the map to display.%0A     */%0A    @JsProperty(name = %22MAPNAME%22)%0A    public native void setMapName(String mapName);%0A    %0A    @JsProperty(name = %22PASSWORD%22)%0A    public native void setPassword(String password);%0A    %0A
     
+/*
 *%0A     *
 /%0A  
@@ -1912,72 +1912,246 @@
    *
-/%0A    @JsProperty%0A    public native void setFormat(String format
+ @param showLayers List of layers to display.%0A     */%0A    @JsProperty(name = %22SHOWLAYERS%22)%0A    public native void setShowLayers(String showLayers);%0A    %0A    @JsProperty(name = %22USERNAME%22)%0A    public native void setUserName(String userName
 );%0A 
@@ -2245,16 +2245,34 @@
 Property
+(name = %22VERSION%22)
 %0A    pub

Add additional MapGuide parameter