Custom icon not working on static map

140 views
Skip to first unread message

Massimiliano Biffi

unread,
Jun 29, 2011, 10:13:10 AM6/29/11
to google-map...@googlegroups.com
Hi,
I would like to show a custom icon on a static map. 

My icon is on a public URL, and I can get it with the browser. It is a 32x32 png image.
Once I try to show it on a static map the standard pin is displayed instead.

Here's the static map URL:


Any ideas?
Thanks and regards

Massi

Rossko

unread,
Jun 29, 2011, 8:07:17 PM6/29/11
to Google Maps JavaScript API v3
> Any ideas?

The documentation
http://code.google.com/apis/maps/documentation/staticmaps/
under "custom icons" points out the importance of url encoding
In your link I can see
... markers=icon:http://maps.croydon. ...
note the : after the http

Maybe it is properly encoded in your webpage, and its just the group's
posting that has messed up, but can't tell as you haven't given a link
to your webpage.

Rossko

unread,
Jun 30, 2011, 4:57:56 AM6/30/11
to Google Maps JavaScript API v3
Actually I think I spoke tosh and the colon is okay; nevertheless it
would help to see the real thing.
Message has been deleted

en4ce

unread,
Jun 30, 2011, 5:54:11 AM6/30/11
to Google Maps JavaScript API v3
try a less deep path on your server, i also noticed there are 2
"aya/", when i remove one of these the pic gets displayed instead of
the cant compute error msg from google...weird

On 29 Jun., 16:13, Massimiliano Biffi <massibi...@gmail.com> wrote:
> Hi,
> I would like to show a custom icon on a static map.
>
> My icon is on a public URL, and I can get it with the browser. It is a 32x32
> png image.
> Once I try to show it on a static map the standard pin is displayed instead.
>
> Here's the static map URL:
>
> http://maps.google.co.uk/maps/api/staticmap?zoom=15&sensor=false&mapt...51.3983681000963,-.125373116368881

Massimiliano Biffi

unread,
Jun 30, 2011, 7:33:05 AM6/30/11
to google-map...@googlegroups.com
Thanks en4ce, 
you pointed me in the right direction.
I moved the image to another location and the new URL is now working. I think there's a bug on the Google side


Regards
Massi

Massimiliano Biffi

unread,
Jul 13, 2011, 12:39:53 PM7/13/11
to google-map...@googlegroups.com
Have an issue with another image served by a servlet


the image URL works fine by itself

I wonder if the static map doesn't accept parameters on the url...

Any help/hint appreciated

Thanks
Massi
Reply all
Reply to author
Forward
0 new messages