我已从驱动器加载自定义标记图标.. 这是我的网址:
http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&markers=icon:https://drive.google.com/file/d/1_-nl7XFeIUSfJPyhtJjxr_ETYGYKaS_M/view|40.714728,-73.998672&zoom=12&size=400x400&sensor=false
答案 0 :(得分:1)
您为图标提供的网址:https://drive.google.com/file/d/1_-nl7XFeIUSfJPyhtJjxr_ETYGYKaS_M/view
不是图片(它是Google驱动器"页面")。
如果我链接到该页面上的图片:https://lh6.googleusercontent.com/uCOumviUOK9FeSH8d0pg3pW7CSj_-xRYLscegax5LefENROwlIRLzrxezS1U_7jM5MrFVDSJ9d4nKMWcyFak=w1280-h918
;它对我有用(不确定是否永远不会改变)
网址:http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&markers=icon:https://lh6.googleusercontent.com/uCOumviUOK9FeSH8d0pg3pW7CSj_-xRYLscegax5LefENROwlIRLzrxezS1U_7jM5MrFVDSJ9d4nKMWcyFak=w1280-h918|40.714728,-73.998672&zoom=12&size=400x400