/*******************************************************************************
 * Copyright 2014, 2016 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 com.github.tdesjardins.ol3.demo.client.example;

import com.github.tdesjardins.ol3.demo.client.utils.DemoUtils;

import ol.*;
import ol.Collection;
import ol.Map;
import ol.layer.*;
import ol.layer.Image;
import ol.proj.Projection;
import ol.source.*;
/**
 * Example with MapGuide layers.
 *
 * @author Tobias Lochmann
 *
 */
public class MapGuideExample implements Example {

    /* (non-Javadoc)
     * @see de.desjardins.ol3.demo.client.example.Example#show()
     */
    @Override
    public void show(String exampleId) {

    	// create a projection
        Projection projection = Projection.get("EPSG:4326");

        // create a MapGuide params
    	ImageMapGuideParams imageMapGuideParams = OLFactory.createOptions();
    	imageMapGuideParams.setFormat("PNG");
    	imageMapGuideParams.setMapDefinition("Library://Public/Samples/Sheboygan/Maps/Sheboygan.MapDefinition");
    	imageMapGuideParams.setUserName("OpenLayers");
    	imageMapGuideParams.setPassword("OpenLayers");

    	// create a MapGuide image
        ImageMapGuideOptions imageMapGuideOptions = OLFactory.createOptions();
        imageMapGuideOptions.setParams(imageMapGuideParams);
        imageMapGuideOptions.setUrl("http://www.buoyshark.com/mapguide/mapagent/mapagent.fcgi?");
        imageMapGuideOptions.setUseOverlay(false);
        imageMapGuideOptions.setMetersPerUnit(111319.4908d);
        imageMapGuideOptions.setRatio(2.0f);

        ImageMapGuide imageMapGuideSource = OLFactory.createImageMapGuideSource(imageMapGuideOptions);
        LayerOptions layerOptions = OLFactory.createOptions();
        Extent bounds = Extent.create(-87.865114442365922d,43.665065564837931d,-87.595394059497067d,43.823852564430069d);
        layerOptions.setExtent(bounds);
        layerOptions.setSource(imageMapGuideSource);
        Image MapGuideLayer = OLFactory.createImageLayer(layerOptions);


        // create a view
        ViewOptions viewOptions = OLFactory.createOptions();
        viewOptions.setProjection(projection);
        viewOptions.setZoom(12.0d);
        Coordinate centerCoordinate = OLFactory.createCoordinate(-87.7302542509315d, 43.744459064634d);
        viewOptions.setCenter(centerCoordinate);
        View view = OLFactory.createView(viewOptions);

        // create the map
        MapOptions mapOptions = OLFactory.createOptions();
        mapOptions.setTarget(exampleId);
        mapOptions.setView(view);
        Collection<Base> lstLayer = OLFactory.createCollection();
        lstLayer.push(MapGuideLayer);
        mapOptions.setLayers(lstLayer);
        Map map = OLFactory.createMap(mapOptions);

        // add some controls
        map.addControl(OLFactory.createScaleLine());
        DemoUtils.addDefaultControls(map.getControls());

        // add some interactions
        map.addInteraction(OLFactory.createKeyboardPan());
        map.addInteraction(OLFactory.createKeyboardZoom());
        map.addControl(OLFactory.createRotate());

    }

}


@@ -96,17 +96,17 @@
 014, 201
-6
+7
  gwt-ol3
@@ -870,21 +870,8 @@
 s;%0A%0A
-import ol.*;%0A
 impo
@@ -898,19 +898,141 @@
 port ol.
-Map
+Coordinate;%0Aimport ol.Extent;%0Aimport ol.Map;%0Aimport ol.MapOptions;%0Aimport ol.OLFactory;%0Aimport ol.View;%0Aimport ol.ViewOptions
 ;%0Aimport
@@ -1041,17 +1041,20 @@
 l.layer.
-*
+Base
 ;%0Aimport
@@ -1070,16 +1070,46 @@
 .Image;%0A
+import ol.layer.LayerOptions;%0A
 import o
@@ -1148,10 +1148,100 @@
 rce.
-*;
+ImageMapGuide;%0Aimport ol.source.ImageMapGuideOptions;%0Aimport ol.source.ImageMapGuideParams;%0A
 %0A/**
@@ -1642,17 +1642,20 @@
 ams%0A    
-%09
+    
 ImageMap
@@ -1715,25 +1715,28 @@
 ions();%0A    
-%09
+    
 imageMapGuid
@@ -1757,33 +1757,36 @@
 mat(%22PNG%22);%0A    
+   
-%09
+ 
 imageMapGuidePar
@@ -1870,33 +1870,36 @@
 finition%22);%0A    
-%09
+    
 imageMapGuidePar
@@ -1933,17 +1933,20 @@
 %22);%0A    
-%09
+    
 imageMap

Remove wildcard imports