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'
Here is the JSNI method I have created :
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); }-*/; I'm using Branflake's GWT Map version 3.8.1 and google-maps-utility-library-v3 's markerwithlabel.js
Please help to give your advice
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jXfXIjUgGUMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment