Your sample requests return HTTP 400 Bad Request to me, even after removing the + signs, because it's missing the center= parameter and there is only one marker, which is not enough for implicit centering. This one works:
http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256&maptype=roadmap&markers=color:0xFE5914|43.090,9.070&sensor=false¢er=43.090,9.070<http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256&maptype=roadmap&markers=color:0xFE5914%7C43.090,9.070&sensor=false¢er=43.090,9.070> Note that the + character is equivalent to %20 in URLs, both mean " " (a blank space) like here: http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap&markers=color:blue|label:S|40.702147,-74.015794&sensor=false<http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&sensor=false> Coordinate pairs are not always allowed to have blank spaces, but still this works: http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256&maptype=roadmap&markers=color:0xFE5914|+43.090,+9.070&sensor=false¢er=+43.090,+9.070<http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256&maptype=roadmap&markers=color:0xFE5914%7C+43.090,+9.070&sensor=false¢er=+43.090,+9.070> Therefore, if you want to send an actual + sign, you need to URL-encode it as %2B http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256&maptype=roadmap&markers=color:0xFE5914|%2B43.090,%2B9.070&sensor=false¢er=%2B43.090,%2B9.070<http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256&maptype=roadmap&markers=color:0xFE5914%7C%2B43.090,%2B9.070&sensor=false¢er=%2B43.090,%2B9.070> Yet, why would you add 1 or 3 characters (per positive number) in the URL if unnecessarily? On Thu, Aug 12, 2010 at 16:56, mrninni <[email protected]> wrote: > Hi all, > look this map: > > http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256maptype=roadmap&markers=color:0xFE5914|+43.090,+9.070&sensor=false<http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256maptype=roadmap&markers=color:0xFE5914%7C+43.090,+9.070&sensor=false> > > The coordinates are Lat:+43.090 and Long:+9.070, but this point is in > the Mediterranean Sea. > If I delete the (+) char before of the coordinates, the maps is right: > > http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256maptype=roadmap&markers=color:0xFE5914|43.090,9.070&sensor=false<http://maps.google.com/maps/api/staticmap?zoom=3&size=256x256maptype=roadmap&markers=color:0xFE5914%7C43.090,9.070&sensor=false> > > Is there any problem? > Thankyou. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
