I have enabled the module and created a gmap preset. After changing the field display to static map, it doesn't show image. I have chacked the url and it is all wrong
http://maps.google.com/maps/api/staticmap?size=200x300&maptype=roadmap&markers=xx.xxxx%2C+yy.yyyy&sensor=false
so after updating the url it works fine.
http://maps.google.com/maps/api/staticmap?size=200x300&maptype=roadmap&markers=xx.xxxx%2C+yy.yyyy&sensor=false

Comments

Lazarus-Long’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hi Jibran,

I'm not getting any difference in results between the two. Can you try again with the latest dev to see if the issue is still occuring?

Thanks,
Laz

jibran’s picture

yeah issue is still there and after applying the patch it is working fine.

chrowe’s picture

Was able to apply the patch to http://drupalcode.org/project/staticmap.git/commit/809bf01 and it fixed my issue

jibran’s picture

Is it RTBC?

jibran’s picture

Status: Postponed (maintainer needs more info) » Needs review

As per #3

jibran’s picture

Hello!!!

aschmoe’s picture

Issue summary: View changes
StatusFileSize
new691 bytes

Also had this issue here is an updated patch for the dev 7.x-1.x branch, as the one posted above fails.

podarok’s picture

Status: Needs review » Needs work

this needs rewrite to meet current codebase

ronan’s picture

Status: Needs work » Needs review
StatusFileSize
new1.01 KB

This patch against the latest version fixes the issue by specifying an argument separator to http_build_query. It seems that on some servers PHP 5.3 uses '&amp' instead of '&' in this function (see the comments at: https://php.net/http_build_query). You can get the correct behavior by specifying which separator you want.