在谷歌地图V3中显示.gif图像标记

时间:2013-02-14 11:56:54

标签: gwt google-maps-api-3 google-maps-markers

Google Maps V2支持在地图中显示的所有gif图像标记。现在我正在从V2迁移到gwt-maps-3.8.0,其中.gif标记显示为常量标记。我发现了一些类似的问题,但我没有得到我正在寻找的确切的东西。

 String iconName = "Fire.gif";
 MarkerOptions markerOptions = MarkerOptions.create();
 markerOptions.setDraggable(true);
 MarkerImage image = MarkerImage.create(iconName);
 Marker marker = Marker.create(markerOptions);
 marker.setPosition(LatLng.create(30.440099, 36.843498));
 marker.setMap(map);`

注意:我需要Google Maps V3的GWT代码。感谢你的帮助......

1 个答案:

答案 0 :(得分:2)

要使用动画.gif图片,请参阅此帖子.gif marker google maps

我不知道GWT,但这应该适用于Google Maps API v3

marker.setOptions({optimized: false});
相关问题