Skip to content

Commit

Permalink
Better using Marker with InfoWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoriman committed Jan 19, 2010
1 parent 45688e0 commit d4bbbce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/googlecode/maps3/client/InfoWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public final native void open(MapJSO map) /*-{
this.open(map);
}-*/;

/** Yeah, this is cheating WRT the marker. Need to create an overlay for MVCObject */
public final native void open(MapJSO map, JavaScriptObject marker) /*-{
this.open(map, marker);
}-*/;

/** */
public final native void setOptions(InfoWindowOptions value) /*-{
this.setOptions(value);
Expand Down
11 changes: 11 additions & 0 deletions src/com/googlecode/maps3/client/Marker.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public final native void setPosition(LatLng value) /*-{
this.setPosition(value);
}-*/;

/** */
public final native LatLng getPosition() /*-{
return this.getPosition();
}-*/;

/** */
public final native void setTitle(String value) /*-{
this.setTitle(value);
Expand All @@ -47,4 +52,10 @@ public final native void setClickable(boolean value) /*-{
this.setClickable(value);
}-*/;

/** */
public final native void addListener(String event, Runnable handler) /*-{
$wnd.google.maps.event.addListener(this, event, function() {
[email protected]::run()();
});
}-*/;
}

0 comments on commit d4bbbce

Please sign in to comment.