开发者

Displaying generated jpg map on Google App Engine

I have an image created from the Google Maps API static map library and开发者_Go百科 I'd like to make this visible on the screen.

How's the best way to do this? My map is being generated as follows:

map = urlfetch.fetch(url).content

Which should correspond to an image. My question is how best to place this image on the Django framework and GAE?

Thanks,


If you've generated a url that denotes a static map, which I think is the only way to do it, then you'll just want to use it as the src attribute of an img tag.

<img alt="My Map" src="{{url}}" />

http://code.google.com/apis/maps/documentation/staticmaps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜