elcsiga / react-streetview

Google street view component for React.js
MIT License
21 stars 23 forks source link

Check if exists #1

Open jadonald-s1 opened 7 years ago

jadonald-s1 commented 7 years ago

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?

elcsiga commented 7 years ago

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 notifications@github.com 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 .

jadonald-s1 commented 7 years ago

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