Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API custom Street View quality issue

I created a Google Photo Sphere and I want to embed this on my page:

  • Using iframe, everything works ok:

    http://fotomilo.pl/test_iframe.aspx — quality is ok.

  • Using JavaScript API, there are problems:

    http://fotomilo.pl/test_js.html — quality is poor.

Quality issue:

Example

It look like tiles mismatch. Look at the image and panorama rendered with JavaScript.

like image 817
Kyniek Avatar asked Feb 09 '14 19:02

Kyniek


People also ask

What resolution is Google Street View?

Resolution: ≥16 bit. Range: ≥ +/- 8G with ≥4096 LSB/g typically. Sampling rate: ≥200 Hz with <1% jitter.

Is Street View available in Google Maps free API?

The Street View Static API is charged for each request to embed a static (non-interactive) Street View panorama. Cost starts at 0.007 USD per each (7.00 USD per 1000) with a usage limit of 30,000 maximum queries per minute.


1 Answers

I've been looking for solution quite long and I finally found..

...undocumented option of google.maps.StreetViewPanorama class named 'mode':

  • 'html4': Street View tiles are rendered as HTML tags without warping.
  • 'html5': Street View tiles are rendered using Canvas 2D.
  • 'webgl': Street View tiles are rendered using WebGL (aka Canvas 3D).

For example:

...

var map = new google.maps.Map( canvasElement, mapOptions );
var panorama = map.getStreetView();

var options = { mode : 'html4' };

panorama.setOptions( options );

...

Try it.

(found at this tread)

like image 184
czterolistny Avatar answered Oct 13 '22 20:10

czterolistny