开发者

Google StaticMap image not shown in Firefox

开发者 https://www.devze.com 2023-03-04 03:06 出处:网络
I\'ve build this image 1 and put in an src attribute of an img tag. The image is shown if I access it directly from the browser but when I put it in a page in this way the image is not shown

I've build this image 1 and put in an src attribute of an img tag. The image is shown if I access it directly from the browser but when I put it in a page in this way the image is not shown

<img src="$STATIC_MAP_URL" />

If I see the the image with Firebug it is shown, it's strange because Firebug show the img tag gray, as if it is hidden, but it's not.

Other br开发者_开发知识库owser haven't this problem and show the image as it is supposed to be.

Thank you in advance!


In addition to encoding the ampersands, make sure you encode the "|" to "%7C" too. I was struggling to get static maps working correctly on Blackberry Devices due to the pipes.

0

精彩评论

暂无评论...
验证码 换一张
取 消