google-street-view

Google Streetview: Conversion between FOV and Zoom

只愿长相守 提交于 2019-12-24 05:35:12
问题 Does anyone know of a formula that I can use to convert from Zoom in Google Maps Android API: https://developers.google.com/maps/documentation/android-api/streetview to the FOV used in the Google StreetView Image API: https://developers.google.com/maps/documentation/streetview/intro? I found a couple of old formulas here: https://groups.google.com/forum/#!topic/google-maps-js-api-v3/uqKfg0ZBhWc https://groups.google.com/forum/#!msg/google-maps-image-apis/O_Odb0A7_0c/Q74cHCoRuscJ I then put

Android intent Street View does not work anymore

老子叫甜甜 提交于 2019-12-23 20:56:00
问题 i used to launch an intent from my app to Maps to display a street view panorama. Since some days when i launch the intent Maps says : "Street View isn't available here". I try to run a new project with only the intent as Google says: Uri gmmIntentUri = Uri.parse("google.streetview:cbll=46.414382,10.013988"); Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri); mapIntent.setPackage("com.google.android.apps.maps"); startActivity(mapIntent); but i receive the same message. The same

Google map JS API “StreetViewPanorama” display black screen for some address

跟風遠走 提交于 2019-12-23 12:23:01
问题 I have added below code for JavaScript street view . var geocoder = new google.maps.Geocoder(); var address = "2 Simei Street 3, Singapore, Singapore 529889"; geocoder.geocode({'address': address}, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { var latitude = results[0].geometry.location.lat(); var longitude = results[0].geometry.location.lng(); console.log(latitude + " " + longitude); var panorama = new google.maps.StreetViewPanorama( document.getElementById(

StreetView API: Hiding FullScreen Control [closed]

孤人 提交于 2019-12-23 06:48:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am trying to hide the toggle fullscreen element in the Streetview API HUD. panorama = new google.maps.StreetViewPanorama(document.getElementById(data.id), { position : new google.maps.LatLng(data.lat, data.lng), pov: { heading : Number(data.heading), pitch : Number(data.pitch) }, linksControl: false,

Google maps adding streetview to each infowindow

醉酒当歌 提交于 2019-12-23 03:57:25
问题 I would like to add streetview to each infowindow but I can't figure out how to integrate the code. I tried putting the code where the comments are set and that works half. Still have to learn a lot about programming. html += '<div id="content" style="width:200px;height:200px;"></div>'; var pano = null; google.maps.event.addListener(infoWindow, 'domready', function () { if (pano != null) { pano.unbind("position"); pano.setVisible(false); } pano = new google.maps.StreetViewPanorama(document

InfoWindows on Markers in StreetView

折月煮酒 提交于 2019-12-23 00:50:13
问题 According to the Google documentation, when you create a marker on a gmap the marker is also 'copied' onto the StreetView version of the map. However, onClick event binding are not copied (or at least don't appear to be), so I can't open the InfoWindow on the marker when in StreetView. Ideally I'd actually be able to define different content for the StreetView version of the InfoWindow, but right now I can't even get the same InfoWindow to open. I'm using code from the Google examples to

Any way to have gmaps4rails open the map in Street View?

自古美人都是妖i 提交于 2019-12-22 10:57:24
问题 I've tried changing the zoom level, but it always stays in the map mode. Couldn't find any info on the wiki either. Any help or other suggestions would be appreciated. 回答1: Ended up just using Google's Javascript API. It went something like this: pos = new google.maps.LatLng( <%= latitude %>, <%= longitude %> ); var div = document.getElementById('streetViewContainer'); var sv = new google.maps.StreetViewPanorama(div); sv.setPosition( pos ); sv.setVisible( true ); // find the heading by

Any way to have gmaps4rails open the map in Street View?

醉酒当歌 提交于 2019-12-22 10:56:00
问题 I've tried changing the zoom level, but it always stays in the map mode. Couldn't find any info on the wiki either. Any help or other suggestions would be appreciated. 回答1: Ended up just using Google's Javascript API. It went something like this: pos = new google.maps.LatLng( <%= latitude %>, <%= longitude %> ); var div = document.getElementById('streetViewContainer'); var sv = new google.maps.StreetViewPanorama(div); sv.setPosition( pos ); sv.setVisible( true ); // find the heading by

Google Street View API V3 - tiles loaded event?

三世轮回 提交于 2019-12-22 10:32:25
问题 Is there an event that fires when the Street View has finished loading all the tiles that make up a panorama? Currently if you change the position manually ( StreetViewPanorama.setPosition ) the transition is rough, and there is no way to tell when the new files have all loaded. As a result, it's not possible to display a loading GIF unless it's given an arbitrary timeout such as 2 or 3 seconds. Any ideas? 回答1: You can see all available events for a panorama here: http://code.google.com/apis

Height/Elevation of a pixel from ground in Google Street View

一曲冷凌霜 提交于 2019-12-22 04:59:28
问题 I am looking to find the height of every pixel from ground in the google street view. Couple of things I know can be calculated are: Pitch of a pixel Depth map of every pixel from camera There is a javascript library to fetch depth map too. Is it possible to put the two together to calculate actual height of a pixel from ground? 回答1: If we know the height of the camera then this becomes a simple matter of trigonometry. tan(angle) = height-above-camera / depth so height-above-camera = depth *