Place a layer on top of the street view - Google Maps API - google-maps

I am wondering if there is a way I can place an image on top of a building in google maps street view and as I pan that view, this image would follow the exact same building x,y and z.
I know I can redraw the webgl sphere on top of the street view image, but I am not sure how precise it will be.
Any idea about how to do it using the GM API?
Thanks

Related

Xamarin: Can I add an image to Google Maps with bounds on iOS?

How do I add an image to google maps that has bounds? I have a rectangle image and would like to layer it on the map using its north-east and south-west points. Since the image is location based, I also want that image to re-size when the user zooms in and out.
Also posted on Xamarin forums: https://forums.xamarin.com/discussion/92528/can-i-add-an-image-to-google-maps-with-bounds

How to determine the exact coordinates of a Google Street View Image

I am currently working on a script which generates random coordinates and gets a Google Street View Image via Google Street View Image API
$img_url = 'https://maps.googleapis.com/maps/api/streetview?size=640x640&location=[RANDOM_LATITUDE],%20[RANDOM_LONGTITUDE]&sensor=false&key=[API_KEY]';
This works perfectly fine, but I want to go a step further:
If the random coordinates don't happen to land directly on a street, but on a building or a park for example, Google Street View Image API returns an image of a location from which the random coordinates are visible.
I would like to determine the coordinates of where the street view car was standing when it took the picture.
Any help or idea would be very much appreciated.

How to translate mercator map coordinates to relative screen coordinates?

I have a database with various map locations (latitude, longitude).
I've been using a map api (e.g. google maps) to plot these locations.
I am now experimenting to see if I can totally remove dependency of map apis and simply replace the map control with an image (an .png image).
Question:
How can I translate the map locations to be displayed properly onto this map image?
More details:
Basically, the map will be a rectangular area (i.e. Div element), where the top-left corner of the rectangle is obviously (0, 0). So basically the map locations will be displayed with respect to this top-left corner.
First off, where are you getting your geocodes from? If they are from Bing or Google Maps then you can only use those coordinates with those map controls. Using this coordinates without the map controls is against the terms of use of these API's. Assuming that these coordinates come from somewhere else you can overlay them on an image by first knowing some information about the image. At a minimium you will need to know two coordinates on the image and their relative pixel locations. From that you can then determine the scale and top left coordinate of the image. With this you can then fairly accurately position coordinates on the image using a lot of math. You can find a lot of useful math for this here: http://msdn.microsoft.com/en-us/library/bb259689.aspx I've writing a few blog posts on this a while back which you can find here: http://rbrundritt.wordpress.com/2008/10/25/ve-imagery-service-and-custom-icons/
If these coordinates come from Bing Maps you can easily display them on a map image using the Bing Maps Imagery Service: http://msdn.microsoft.com/en-us/library/ff701724.aspx

Google Maps streetview shows awesome panoramio photos in China - can we do this?

If you have a look at Google Maps and search for some place in China like Tiananmen Square for example, then drag out the little streetview man, he does not go on the roads like normal... instead there is a scattering of little blue dots where he can stand and get a view.
This is similar to a panoramio layer but much slicker, and it lets you click between photos taken within the same field of view.
This is all great, except when I turn on the streetview control with Google maps API v3 on the website I'm developing (which is about tourist destinations in China), it lets you drag the man around but then he turns grey like there is no data. There are no blue dots and he can't see anything.
I'm wondering if there is a way to turn on that same streetview panoramio mode that they have in maps.google.com? Possibly they won't let us have access to that yet....
I could add a normal panoramio layer but I am really wanting to have that really nice blue dot thing happening.
Pretty sure no. v3 of the API implements streetview with HTML5/canvas etc - ie native in the browser.
That 'lookaround' viewer, is implemented in flash.
I suppose you could try v2 of the API, that still uses a flash client.
... otherwise just add a request to the Google Maps API issue tracker - it tracks suggestions.

Google maps v3, building shape

Is there any way to auto create marker with shape like building borders by knowing only coordinates, which in this building?
Image example - http://d.pr/eqUT
Yes there is. If you know coordinates of all corners of that building, you could draw a ploygon, check this out: http://www.birdtheme.org/useful/googletool.html
also google maps API v3 - how to draw dynamic polygons/polylines?