这个问题在这里已有答案:
我想创建一个链接,将我带到“Google街景”地址 . 我发现了这个:How to convert an address into a Google Maps Link (NOT MAP)
上述问题的解决方案是:http://maps.google.com/?q=1200 Pennsylvania Ave SE,Washington,Columbia,20003
我可以添加一个参数链接,使其自动转到街景吗?
我目前在我的应用程序中使用arcgis World Geocoder,因此我将尝试将输入的地址传递给google Street View链接 .
function locate() {
map.graphics.clear();
var address = {
"SingleLine": dom.byId("address").value
};
locator.outSpatialReference = map.spatialReference;
var options = {
address: address
}
locator.addressToLocations(options);
}
谢谢!
1 回答
可以办到
这是google docs的一个示例
here is the result