开发者

How can I produce a satellite image using a set of coordinates in Google Maps' javascript API?

I'd like to populate the infoWindow of an annotation with an image of the location the pin is on dynamically, producing an aerial photo and stuffing it into the infoWindow.

This is what I have now, but it means I have to have an image for each site ready to go in advance, which is a lot of provisioning work for several hundred different buildings.

google.maps.Event.addListener(marker, "click", function(latlng) {
        var myHtml = "<b>" + location.Name + "</b><br /><img src=../Web/Content/image/sites/"+ location.Image + "><br/><br/><br/>";
        map.openInfoWindowHtml(latlng, myHtml);
    });

Instead,开发者_Go百科 I'd like to just use the aerial photo Google already has on file for the X/Y coordinates. Any ideas?


You're looking for the Google Static Maps API.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜