开发者

google maps and scopes within greasemonkey

I am writing a greasemonkey script tha开发者_如何转开发t will allow its users to click a button and view a popup map. I am going to try and use google maps for actually creating the map and plotting a few points. I have a couple of questions about this however. First, would using script to create an iframe within my popup div that calls a script from my server have to use an api key for my server, or would it have to be a key for the site the greasemonkey script will run on? Secondly, if this fails is there a way to use JS to plot points on an image like image magick does for PHP?


If you use Google Maps Javascript API V3 you don't need API keys anymore.

To generate images with javascript, you could use the new <canvas> element: https://developer.mozilla.org/en/canvas_tutorial

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜