Google Streetview and Javascript api

10921
17
06-17-2011 03:28 AM
simonmiles
New Contributor II
I was wondering if anyone could point me in the direction of a sample or examples of streetview working within a js api.

Thanks

Si
17 Replies
ChristopherPollard
Occasional Contributor
Hzhu,
Great example and explanation on getting Streetview added to the ESRI AGS Javascript API.

Anyway that you plan on updating the example to work with the Gmaps API v3?
As well as a newer version of the AGS Js API (2.8 or 3.0)?

I also can't seem to get your current example to trigger a streetview change of location when I select a new location.

I am going to try update your sample sometime soon but I want to reach out to you first.
Thanks,
Chris Pollard
0 Kudos
HemingZhu
Occasional Contributor III
Hzhu,
Great example and explanation on getting Streetview added to the ESRI AGS Javascript API.

Anyway that you plan on updating the example to work with the Gmaps API v3?
As well as a newer version of the AGS Js API (2.8 or 3.0)?

I also can't seem to get your current example to trigger a streetview change of location when I select a new location.

I am going to try update your sample sometime soon but I want to reach out to you first.
Thanks,
Chris Pollard


Sorry I don't believe we had a plan to upgrade to Google map API 3.0. My time is restraint. This sample should work on any versions of JS API. In terms of you question, you could upload the code if you do mind and i will take a look!
0 Kudos
NianweiLiu
Occasional Contributor II
0 Kudos
ChristopherPollard
Occasional Contributor
Nianwei,
Your sample works great but after I modified it and added a map "onclick" identify function I couldn't figure out how to disable any map event if the streetview window was open.
When I would click on the close button for streetview window it would execute the identify function.

Here's my application (one of many) that I am using your script.
http://www.dvrpc.org/webmaps/CMP/
I removed the streetview option but would love to use it for some of my application are transportation related and Streetview is a huge function.

Also will you be updating any of your examples to be able to turn off the Google's 45degree imagery?
If you zoom in to your http://gmaps-utility-gis.googlecode.com/svn/trunk/agsjs/examples/manualgallery.html Map Gallery example the Satellite/hybrid automatically turns the 45 degree images on and you can't see the dynamic map overlay.....

Here's another web mapping app that I am using your arcgislink script.
http://www.dvrpc.org/webmaps/pedbikecounts/
The 1 issues I seem to have with this is that sometimes the dynamic map service is displayed in the wrong location.
Seems to be some issue with which image returns 1st? (googles Map api or ESRI's Js Api image)?

Any help or advice would be greatly appreciated. Thanks for all your great work
http://www.dvrpc.org/Mapping/webmaps.htm
0 Kudos
MarcusBush
New Contributor
hzhu's example worked wonderfully for Google's V2 API, the code however has changed from Google for V3.

Does anyone have an updated example of hzhu's code that would work with V3 possibly?
0 Kudos
JohnnyPenet
New Contributor
I was wondering if anyone could point me in the direction of a sample or examples of streetview working within a js api.

Thanks

Si


Hi Simon,

You can look at this document explaining an example of using a WMS layer in combination with streetview. This was an example of combining Google Streetview with locations coming from an other spatial reference an puting it into a dojo widget.

Johnny

http://jpenet.blogspot.be/2012/05/arcgis-javascript-api-using-google.html
0 Kudos
HemingZhu
Occasional Contributor III

David,

Sorry for not answering your question for so long. I am pretty sure Streeview will work with JS API version 3.15. Well since I am just starting to look at the JS API 4.0, I can't give your a sure answer. However i can't see any reasons why it won't work with version. Google API and JS API are all written in Javascript, they are all about filling html elements(div etc) map content or component.

Let me know if you encounter any issues when you use Streeview with version 4 because i am just as curious as you on this same issue.

Heming

0 Kudos
ThomasJansen
New Contributor II

I would be very interested in being able to implement this as an action within a popup in version 4.0

0 Kudos