Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Streetview Panaroma with a marker.. #133

Closed
rasekar2000 opened this issue Jan 24, 2015 · 14 comments
Closed

Streetview Panaroma with a marker.. #133

rasekar2000 opened this issue Jan 24, 2015 · 14 comments

Comments

@rasekar2000
Copy link

Following #40 , I am trying to add a marker on a StreetViewPanaroma , but the marker is not getting added ...

So, mixing up following two things into
https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_street_view.html ,
https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/marker-remove.html

http://plnkr.co/edit/BrGzXVXAjh04aEYbwsvU?p=preview
I see that this one is shared in View only mode.. Not sure how to share an editable mode..

Can you please let me know , how to fix this?

Thanks a ton in advance.

Regards,
Raj

@allenhwkim
Copy link
Owner

I don't think we can add a marker on a street view. marker requires lat/lng, and streetview does not have that concept. Let me know if you find any example that adds marker on a streetview.

@rasekar2000
Copy link
Author

Please find the Example ..
http://plnkr.co/edit/MeQDKjHA34PcPa53Zr9o?p=preview
statueofliberty 2

@allenhwkim
Copy link
Owner

Oh, I see. You want to show an exact spot as a marker on a street view.
It would be useful if you can show this is my store and that is your house on the streetview.
Let me see if it is possible.

@rasekar2000
Copy link
Author

Thanks very much.. Yes.. Will be using some of the functionalities of StreetViewPanorama ..
Regards,
Raj

@allenhwkim
Copy link
Owner

Although I covered almost all of the google maps api, I haven't covered all the service sections. Streetview is one of them. I can see the example here, https://developers.google.com/maps/documentation/javascript/examples/streetview-overlays, and let me see I can do something about it.

@allenhwkim
Copy link
Owner

I made this based on the example, http://plnkr.co/edit/UqtOXx?p=preview.
This could be your good starting point. Let me know if you need more.

@rasekar2000
Copy link
Author

Thanks for the quick answer .. Yes.. Given streetview-overlays example switches between StreetView and Panorama. But I am looking forward more towards this example https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/marker-remove.html on a StreetViewPanorama.. Appreciate your time on a weekend time..

Regards,
Raj

@allenhwkim
Copy link
Owner

I think it will work with that examples too. I think all you need to do is to switch to streetview. Please try it and let me know if it does not work.

@rasekar2000
Copy link
Author

Sure.. Let me try and get back to you..
Thanks and Regards,
raj

@rasekar2000
Copy link
Author

Hi Allen,

Great help.. I could move forward.. But one minor issue..
http://plnkr.co/edit/2C2Xvoj4MivbPq3LLQUl?p=preview is my working copy.

On the Click, the GBView Pano behavior is overtaking the addMarker() function. can you please suggest a solution.

Thanks and Regards,
rAj

@rasekar2000
Copy link
Author

If I toggle and add a marker and come back to street view, i could see the marker, but not in the street view directly .. Let me try double click etc..

Thanks and Regards,
Raj

@allenhwkim
Copy link
Owner

It seems all working fine for me with your example

@allenhwkim
Copy link
Owner

Closing, please reopen this issue if you think it's not resolved

@rasekar2000
Copy link
Author

http://www.wenda.io/questions/5266797/google-streetview-location.html is the helpful answer .. Still not as simple as adding a marker on the MapView compared to this StreetViewPanorama.
Thanks and Regards,
Raj

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants