English 中文(简体)
GMap: initialize Streetview ONLY(不含路线图)
原标题:GMap: initialize Streetview ONLY (without roadmap)

我正在使用“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!

最佳回答
问题回答

我利用这个网站,可以帮助你回答你的问题。 http://gmap3.net/api/set-street-view.html” rel=“nofollow” http://gmap3.net/api/set-street-view.html。 街头观帕纳马受到测试和操作:

<>CSS

.gmap3,.googlemap {
  margin: 20px auto;
  border: 1px dashed #C0C0C0;
  width: 1000px;
  height: 500px;
}

<><><><>>><>>>>><>>>>>>>

<div id="test1" class="gmap3"></div><div class="googlemap"></div>




相关问题
How to decide the current point reach on google map?

How to decide the current point reach on google map? I have a list of points (pickup points) of a route that I want to show in my google map with polyline. Now i have to get the current location of ...

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I ve had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Adding a custom icon to a google map

I need a hand adding a custom icon to some Google Maps javascript. Code below for your reference: function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new ...

RSS to KML Overlay

I m want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display ...

开放街道地图管理员

我需要开放Street的标记管理员。 地图,如山角地图。

热门标签