react-streetview icon indicating copy to clipboard operation
react-streetview copied to clipboard

Check if exists

Open jadonald-s1 opened this issue 9 years ago • 2 comments

Hi, first of all I'd like to say that this is a really good plugin, nice and simple. I was wondering if there is any way to check to see is StreetView is available, i.e. a pano is returned. I was thinking that there must be some way to do a callback? Any ideas?

jadonald-s1 avatar Oct 18 '16 15:10 jadonald-s1

Do you mean getting some feedback if there is no panorama on a given position at all?

Probably we can check it by StreetViewPanorama's getStatus() method and add some callbacks (onLoad, onError, etc). https://developers.google.com/maps/documentation/javascript/reference

(I planned to add various callbacks later, unfortunately I have absolute no time for it currently - however, contribution is always welcome :) )

On Tue, Oct 18, 2016 at 5:40 PM, jadonald72 [email protected] wrote:

Hi, first of all I'd like to say that this is a really good plugin, nice and simple. I was wondering if there is any way to check to see is StreetView is available, i.e. a pano is returned. I was thinking that there must be some way to do a callback? Any ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elcsiga/react-streetview/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPGNhPkDGnxE_q0iPCicrCu9XHiRsGtks5q1OhjgaJpZM4KZ8_q .

elcsiga avatar Oct 18 '16 20:10 elcsiga

Yes, checking if there is no panorama was exactly what I was thinking.

jadonald-s1 avatar Oct 19 '16 07:10 jadonald-s1