Google Maps API (static) - custom marker not showing up

前端 未结 3 1798
伪装坚强ぢ
伪装坚强ぢ 2021-01-02 01:18

URL:
http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&markers=icon:http://tinyurl.com/2ftvtt6&zoom=12&size=400x400&sensor=false

3条回答
  •  太阳男子
    2021-01-02 01:52

    It seems that you defined marker style, but didn't define marker location. It should be:

    http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&markers=icon:http://tinyurl.com/2ftvtt6|40.714728,-73.998672&zoom=12&size=400x400&sensor=false

提交回复
热议问题