Commits

Matt Newell  committed 2b55f4f

Implement/correct two additional methods. BingOptions.setAttribution(..) should map to attributionTemplate. Add wrapper method for graphicOpacity on Vector.Style.

  • Participants
  • Parent commits 110bd79

Comments (0)

Files changed (4)

File gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/client/Style.java

 	public void setLabelSelect(boolean select) {
 		StyleImpl.setLabelSelect(this.getJSObject(), select);
 	}
-
+	
+	public double getGraphicOpacity() {
+		return StyleImpl.getGraphicOpacity(this.getJSObject());
+	}
+	
+	public void setGraphicOpacity(double opacity) {
+		StyleImpl.setGraphicOpacity(this.getJSObject(), opacity);
+	}
 
 	public static Style narrowToOpenLayersStyle(JSObject element) {
 		return (element == null) ? null: new Style(element);

File gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/client/StyleImpl.java

 	/*-{
 		self.labelSelect = select;
 	}-*/;
+	
+	public static native void setGraphicOpacity(JSObject self, double o)
+	/*-{
+		self.graphicOpacity = o;
+	}-*/;
+
+	public static native double getGraphicOpacity(JSObject self)
+	/*-{
+		return self.graphicOpacity;
+	}-*/;
 
 
 }

File gwt-openlayers-client/src/main/java/org/gwtopenmaps/openlayers/client/layer/BingOptions.java

     public String getName() {
         return getJSObject().getPropertyAsString("name");
     }
+
+	@Override
+	public void setAttribution(String attribution) {
+        getJSObject().setProperty("attributionTemplate", attribution);
+	}
 }

File gwt-openlayers-showcase/src/main/resources/org/gwtopenmaps/demo/openlayers/public/examples/kml/KmlExample.txt

 import org.gwtopenmaps.openlayers.client.Map;
 import org.gwtopenmaps.openlayers.client.MapOptions;
 import org.gwtopenmaps.openlayers.client.MapWidget;
-import org.gwtopenmaps.openlayers.client.OpenLayers;
 import org.gwtopenmaps.openlayers.client.format.KML;
 import org.gwtopenmaps.openlayers.client.layer.TransitionEffect;
 import org.gwtopenmaps.openlayers.client.layer.Vector;
 
     @Override
     public void buildPanel() {
-        OpenLayers.setProxyHost("olproxy?targetURL=");
-
         //create some MapOptions
         MapOptions defaultMapOptions = new MapOptions();
         defaultMapOptions.setNumZoomLevels(16);