Hello,
I am using com.googlecode.maps3 to get Maps V3
into GWT, and InfoWindows through this library have
worked well so far. Here is a smippet of code for setting
up an InfoWindow (JSO == JavaScriptObject):
import com.googlecode.maps3.client.MapWidget;
import com.googlecode.maps3.client.MapJSO;
import com.googlecode.maps3.client.LatLng;
import com.googlecode.maps3.client.InfoWindowJSO;
void startInfoWindow(ContentRecord record, LatLng center)
{
HTML contentHTML = new HTML();
InfoWindowJSO infoWindow = InfoWindowJSO.newInstance();
infoWindow.setContent(contentHTML.getElement());
contentHTML.setHTML(formatRecord(contentRecord));
infoWindow.setPosition(center);
infoWindow.open(mapWidget.getMapJSO());
}
On Aug 4, 6:45 am, Thomas Lefort <
lefortho...@gmail.com> wrote:
> If anybody can help, I am really pulling my hairs...
>
> I am on my last bit of my jsni integration withmapsv3. I want a
> widget to appear in an infowindow. The widget has buttons and links.
> All elements appear fine in the infowindow except that none of the
> links, buttons work anymore.
>
> This is what I do:
>
> public native void openInfoWindowWidget(EOLatLng markerPosition,
> Element element) /*-{
> var myElement = element;
>
> $wnd.mapsJSNI.openInfoWindowWidget(markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng::lat,
> markerPositi...@com.metaaps.webapps.earthimages.shared.domain.EOLatLng::lng,