google-street-view

How to hide the Streetview street name labels on the street floor

只愿长相守 提交于 2019-12-21 21:36:24
问题 I need to get the street names (shortDescription) on street floor removed from streetview panorama: Label I want removed I know this is possible as seen on https://geoguessr.com/world/play They seem to use the same kind of json syntax as for customizing a google maps layout f=[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}], l={disableDefaultUI:!0,disableDoubleClickZoom:!0,clickToGo:!0,linksControl:!0,styles:f} But I'm not even sure these labels are actualy part of the

How to detect enter and exit streetView in Google Maps API v3

折月煮酒 提交于 2019-12-21 14:58:39
问题 Is there a way to detect when a user enters and exits StreetView in Google Maps under API v3? I want to trigger an existing 'Hide Menu' function when the user enters StreetView (as the menu isn't relevant) and then re-show the menu when they exit. 回答1: Observe the visible_changed -event of the streetView, the visible -property will be true or false (open or closed) function initialize() { var mapOptions = { center: new google.maps.LatLng(52.5498783, 13.425209), zoom: 8 }; var map = new google

Using google street view with a marker, how do I point the POV at a marker?

ぃ、小莉子 提交于 2019-12-21 04:49:03
问题 I have a simple street view working to show me a street view given an address: var geocoder = new google.maps.Geocoder(); var address = "344 Laguna Dr, Milpitas, CA 95035"; geocoder.geocode( { 'address': address}, function(results, status) { //alert (results); if (status == google.maps.GeocoderStatus.OK) { //alert(results[0].geometry.location); myStreetView = new google.maps.StreetViewPanorama(document.getElementById("map_canvas")); myStreetView.setPosition(results[0].geometry.location); var

Get heading and pitch from pixels on Street View

ε祈祈猫儿з 提交于 2019-12-20 09:19:27
问题 I think this is the best place for this question. I am trying to get the heading and pitch of any clicked point on an embedded Google Street View. The only pieces of information I know and can get are: The field of view (degrees) The center point's heading and pitch (in degrees) and x and y pixel position The x and y pixel position of the mouse click I've included here a screenshot with simplified measurements as an example: I initally just thought you could divide the field of view by the

How to connect one pano to multiple panos using Google street view publish API?

百般思念 提交于 2019-12-17 21:34:17
问题 I'm using photo.update request for panos(360 panoramic images) connection in python. I'm able to do only connect one pano to another pano but I want to connect one pano to multiple panos. I'm not getting a successful result. I have sent the following photoUpdate request using Python: update_photo_url = 'https://streetviewpublish.googleapis.com/v1/photo/{}?key={}&updateMask=connections'.format("pano_1","AIzdesdfyxscvvvvvvvvvvvvvvv") headers = {"Authorization": "Bearer {}".format("ya29

Android StreetView check if there is any view for given location

南笙酒味 提交于 2019-12-17 20:00:38
问题 I'm just playing around with the new StreetView feature of the Google Play Services 4.4 for Android (link) and I was wondering if there is any method /possibility to check if there is a 'view'/ foto material for any given location. When I load a location that isn't covered by StreetView with streetViewPanorama.setPosition(someLatLng); I just get a black screen. Any way to check beforehand? 回答1: Black screen appears when location is not present. Just check whether it was loaded or not.

Google Street View JS gives me a view of the side of the house instead of the front

你离开我真会死。 提交于 2019-12-14 03:21:44
问题 Using examples from Google's samples and other code found here on Stack Overflow, I've put together some JS that takes a street address and displays an overhead map as well as a Street View. For the most part these work wonderfully, but it breaks when the house is on a corner. When the house is on a corner, it will sometimes show me the side of the house instead of the front of the house. If I go directly to Google Maps and search for that address, the Street View it shows is actually the

Google Maps StreetView InfowIndows opening on map

孤者浪人 提交于 2019-12-13 15:55:44
问题 When I add a marker and InfoWindow to my Google Maps application the marker is correctly added to both the map and the default StreetView panorama. I also add InfoWindows to both copies of the marker by calling my bindInfoWindow function once with the map as an argument and once with the StreetView panorama as an argument. This was working perfectly until a few weeks ago. Now, for some reason, both InfoWindows are being displayed on the map, attached to the map marker. I have created a simple

Check if google streetview location exists or not to hide a view

萝らか妹 提交于 2019-12-13 15:34:36
问题 I am currently working on an android application which requires me to use street view in my app. I have made a StreetViewActivity to show the street view. But before that activity, I have another activity called Location Activity that has a button that takes the user to the StreetViewActivity. Now my question is how can I check if the latitude and longitude that is provided don't have a streetview then it should hide the button that would prevent the user from going to the StreetViewActivity?

Raising an exception for a grey streetview location in Google Maps JavaScript API v3

梦想的初衷 提交于 2019-12-13 05:56:41
问题 Look, I'm using Google Maps JavaScript API v3. The user fills in an address and I show the streetview of that address. Everything's fine (a lot of locations work perfectly), till a enter a location like "Laken". It just displays grey, nothing else. I want to prevent the user from continuing to the next page with a grey image instead of a google maps streetview. When I fill in Laken, the getPanoramaByLocation() function returns status == "OK", because it has found something, but its not a