Display .gif image marker in google maps V3

匿名 (未验证) 提交于 2019-12-03 02:36:02

问题:

Google Maps V2 supported all gif image markers to display in map. Now I'm migrating from V2 to gwt-maps-3.8.0 where .gif markers are displaying as constant markers. I found some similar questions but I didnt got exact thing which i'm looking for.

 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);` 

Note: I need GWT code for Google Maps V3. Appreciate your help...

回答1:

To use animated .gif images, see this post .gif marker google maps

I don't know GWT, but this should work with the Google Maps API v3

marker.setOptions({optimized: false}); 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!