Skip to content

Commit 8249ba0

Browse files
authored
[gmap3]: allow subclasses to customize InfoWindow initialization (#1140)
1 parent b987cf6 commit 8249ba0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gmap3-parent/gmap3/src/main/java/org/wicketstuff/gmap/api/GInfoWindow.java

+11
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,20 @@ public String getJSconstructor()
101101
args.set("zIndex", zIndex.toString());
102102
}
103103

104+
configureJSconstructor(args);
105+
104106
Constructor constructor = new Constructor("google.maps.InfoWindow").add(args.toJS());
105107
return constructor.toJS();
106108
}
109+
110+
/**
111+
* Allow subclasses to customize InfoWindow initialization.
112+
*
113+
* @param args
114+
*/
115+
protected void configureJSconstructor(ObjectLiteral args)
116+
{
117+
}
107118

108119
/**
109120
* Update state from a request to an AJAX target.

0 commit comments

Comments
 (0)