StackGuides StackGuides
  • Lastest
  • Hot
  • Week
  • Month
  • Bounties
  • Questions
    Newest Active Bounties Unanswered Frequent Votes

Google Static Map API - custom marker not showing up

0
votes

I have marker location defined (from this example), the API returns the map w/out error, but the marker does not show up. I am puzzled and eager to have some pointers.

http://maps.googleapis.com/maps/api/staticmap?center=-30.697423,150.564022&zoom=8&size=600x600&markers=icon:http%3A%2F%2Ftinyurl.com%2F2ftvtt6%257C-30.697423,150.564022&sensor=false

1
javascriptgoogle-mapsgoogle-maps-api-3
datafunk datafunk

1 Answers

1
votes

you should replace %257C with |, here is a proper link: http://maps.googleapis.com/maps/api/staticmap?center=-30.697423,150.564022&zoom=8&size=600x600&markers=icon:http%3A%2F%2Ftinyurl.com%2F2ftvtt6|-30.697423,150.564022&sensor=false

pwolaq pwolaq

Related

309 Google Map API v3 — set bounds and center

700 Google Maps JS API v3 - Simple Multiple Marker Example

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

0 Google Maps Static, can't insert custom icon

3 How to obtain dynamic google map url (have static map url)

377 Center/Set Zoom of Map to cover all visible Markers?

29 Using a custom image marker on google static map?

stackguides.com 2021, licensed under cc by-sa 3.0 with attribution required.

Privacy Policy | Cookies Policy | Contact

Page loaded in 0.008701 seconds

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more