我正在使用“Gmap3”Jquery Plugin,并试图仅在街道上进行初步调查,而没有街道观点和路线图的结合,也不可能在街道观点和地图之间盘旋。 Gmap3在其文件中仅举以下两个例子(http://gmap3.net/api/set-street-view.html):
Shows a roadmap and a streetview:
var fenway = [42.345573,-71.098326];
$( #test1 ).gmap3(
{ action: init ,
zoom: 14,
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: true,
center: fenway
},
{ action: setStreetView ,
id: test1-streetview ,
options:{
position: fenway,
pov: {
heading: 34,
pitch: 10,
zoom: 1
}
}
});
或者在路线图和街道观点之间划线:
$( #test2 ).gmap3({
action: init ,
zoom: 18,
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false,
center: [40.729884, -73.990988]
});
$( #test2-toggle ).click(function(){
$( #test2 ).gmap3({
action: getStreetView ,
callback:function(panorama){
var visible = panorama.getVisible();
if (visible) {
panorama.setVisible(false);
} else {
var map = $(this).gmap3( get );
panorama.setPosition(map.getCenter());
panorama.setPov({
heading: 265,
zoom:1,
pitch:0}
);
panorama.setVisible(true);
}
}
});
});
但是,我很抱歉,我尝试过,但找不到一种可行的解决办法,如何在四点眼里 in地看待街头。
I appreciate very much any help, thank you in advance!