标签: google-maps gwt rotation google-maps-markers
如何在GWT中旋转Google地图自定义图像标记?我想根据轴承添加和旋转单个图标。
目前,我将标记构建为普通标记覆盖,如下所示:
Icon icon = Icon.newInstance(imageUrl); MarkerOptions markerOptions = MarkerOptions.newInstance(icon); Marker marker = new Marker(point, markerOptions); map.addOverlay(marker);
答案 0 :(得分:0)
使用GWTCanvas来实现它。 API:http://collectionofdemos.appspot.com/javadoc/com/google/gwt/widgetideas/graphics/client/GWTCanvas.html
示例:http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas
http://www.giantflyingsaucer.com/blog/?p=2338