JSNI を使用してgoogle-maps-utility-library-v3 のmarkerwithlabel.jsを呼び出して、ラベル マーカーを作成しようとしました。ただし、私は常にこの例外を受け取ります:
com.google.gwt.core.client.JavaScriptException: (TypeError) @com.gwt.map.client.GWTMap::setLabeledMarker(Lcom/google/gwt/maps/client/base/LatLng;Lcom/google/gwt/maps/client/MapImpl;)([JavaScript object(51), JavaScript object(19)]): Object function MarkerLabel_(marker, crossURL, handCursorURL){ ...} has no method 'getSharedCross'
私が作成したJSNIメソッドは次のとおりです。
public final native void setLabeledMarker(LatLng ll,MapImpl myMap)
/*-{
var marker = new $wnd.MarkerWithLabel({
position: ll,
draggable: true,
raiseOnDrag: true,
labelContent: "Hello",
labelAnchor: new $wnd.google.maps.Point(22, 0),
labelClass: "labels", // the CSS class for the label
labelStyle: {opacity: 1.0}
});
marker.setMap(myMap);
}-*/;
Branflakeの GWT Map バージョン 3.8.1とgoogle-maps-utility-library-v3 の markerwithlabel.js を使用しています
アドバイスをください