phonegap :: gmap上的gif动画 [英] phonegap :: animated gif on gmap

查看:90
本文介绍了phonegap :: gmap上的gif动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个在gmap中显示动画图标标记(gif)的应用程序.我已经使用Marker的"icon"和"optimized"选项使其在Windows环境下工作,但是它不能正确加载(甚至不能加载图像).

I'm developing an app that displays in a gmap animated icon markers (gifs). I have made it work on the Windows environment with "icon" and "optimized" options of the Marker, but it doesn't load properly (not even then image).

我在这里读过 Android上的动画gif问题,表明Android无法正确处理gif.有什么方法可以在Android中将gif用作Google标记?

I have read here Problem with Animated gif on Android that Android doesn't handle properly gifs. Is there any way of using a gif as google marker in Android?

谢谢, xavi

推荐答案

如果您检查Google Maps Android API,则找不到与GIF相关的任何文档,例如

If you check the Google Maps Android API, you cannot find any documentation about GIF as marker. So the alternative way is to use animation on marker.

这是教程关于如何在标记上使用动画,它为Google Maps Android API v2实现了一个反弹标记.它还包含一个YT 视频,该视频显示了标记在设备中的移动方式.

Here is a tutorial on how to use animation on marker, it implements a bouncing marker for the Google Maps Android API v2. It also contains a YT video that shows how the marker move in your device.

有关标记中动画的更多信息,请检查以下SO问题:

For more information about animation in markers, check this SO question:

Google Maps V2上的动画标记

Android上的动画gif问题

这篇关于phonegap :: gmap上的gif动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆