如何在静态谷歌地图上添加高分辨率自定义标记 [英] How do I add a high-resolution custom marker on a static google map

查看:252
本文介绍了如何在静态谷歌地图上添加高分辨率自定义标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google静态地图(文件)显示商店的位置,以及我使用的是自定义标记,而不是默认设置。



然而,这种标记图像在iPhone 4等高分辨率手机上看起来分辨率较低。



我该如何解决它? & amp ; markers = scale:2 连同一个@ 2x标记图标图像和& scale = 2 参数。

我刚刚在这里回答了这个重复问题: https:// stackoverflow .com / a / 17130379/378638


I'm using Google static maps (documention here) to show shops' locations, and I'm using a custom marker instead of the default.

However, this marker image appears low-resolution on high-resolution mobiles like the iPhone 4.

How do I fix it?

解决方案

Set &markers=scale:2 in conjunction with a @2x marker icon image and the &scale=2 parameter.

I just answered this in a duplicate question here: https://stackoverflow.com/a/17130379/378638

这篇关于如何在静态谷歌地图上添加高分辨率自定义标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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