On Mar 12, 12:41 pm, bratliff <bratl...@umich.edu> wrote:
> Do you happen to know whether Flash is required for API StreetViews ?
Given that there is now
G_FLASH_UNAVAILABLE = 603
it would appear likely!
And in fact, trying to use StreetView on Google Maps without Flash
enabled gives a large infoWindow with "To use street view, you need
Adobe Flash Player version 9 or newer."
Working on your example I have added the embed code for the street
view Flash file (swf) adding the panoId dynamically. Now when you open
the infowindow you see the actual street view.
It turns out that I was wrong about the new events. The interesting ones are not issued from the GStreetviewPanorama instance, but from an inaccessible instance of a $B class within the GStreetviewPanorama. This means that you can't listen for them and do things like move a marker on the map when the user moves along the street using the panorama controls.
The only event that the GStreetviewPanorama instance itself actually issues is "error", which returns a single parameter containing the error code.
Regarding the impact of this possible feature release on the size of
the API, here is the delta in sizes:
- Addition to main.js due to this: 1792 bytes.
- Size of mod_cb_api.js at present: 12175 bytes.
As you can see, the majority of this is modularized. Note also that
GPolygon/GPolyline was modularized recently, and that the effect on
the API size was significant (in a good way).
We're doing our best to not bloat the API for developers that don't
require all the features, and we'll continue working on that.
- pamela
On Mar 13, 3:56 am, Mike Williams <nos...@econym.demon.co.uk> wrote:
> It turns out that I was wrong about the new events. The interesting ones
> are not issued from the GStreetviewPanorama instance, but from an
> inaccessible instance of a $B class within the GStreetviewPanorama. This
> means that you can't listen for them and do things like move a marker on
> the map when the user moves along the street using the panorama
> controls.
> The only event that the GStreetviewPanorama instance itself actually
> issues is "error", which returns a single parameter containing the error
> code.
Working still from Mike's example I've worked out how to create
sidebar links that open an infowindow with the streetview at a
specified location. I now need to work out how to set the direction
and elevation ( yaw & pitch) of the streetview from the sidebar link
>I now need to work out how to set the direction >and elevation ( yaw & pitch) of the streetview from the sidebar link
If you were to use GStreetviewPanorama.setLocationAndPOV() or GStreetviewPanorama.setLocationAndPOVFromServerResponse(), then the second parameter is a POV object which can contain some or all of pitch Elevation angle of the view direction. yaw Bearing of the view direction, 0=looking North. zoom Zoom level. E.g. {pitch:5, yaw:180, zoom:2}
If you're going to use googlepano.038.swf directly, then I believe that the parameters are &pitch, &yaw and &zoom.
>>I now need to work out how to set the direction >>and elevation ( yaw & pitch) of the streetview from the sidebar link
>If you were to use GStreetviewPanorama.setLocationAndPOV() or >GStreetviewPanorama.setLocationAndPOVFromServerResponse(), then the >second parameter is a POV object which can contain some or all of > pitch Elevation angle of the view direction. > yaw Bearing of the view direction, 0=looking North. > zoom Zoom level. >E.g. {pitch:5, yaw:180, zoom:2}
>If you're going to use googlepano.038.swf directly, then I believe that >the parameters are &pitch, &yaw and &zoom.
You could do it something like this:
function createMarker(point,name,html) { var marker = new GMarker(point); marker.yaw=0; marker.pitch=5; marker.zoom=0;
and in the googlepano call use &yaw="+marker.yaw+ etc.
Then for each view that doesn't take the default values, write:
var point = new GLatLng(41.89243,-87.63112); var marker = createMarker(point,"Find the Frog"); marker.yaw=40; marker.pitch=-18; marker.zoom=2; map.addOverlay(marker);
On Mar 13, 8:26 pm, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:
> Hi all-
> Regarding the impact of this possible feature release on the size of
> the API, here is the delta in sizes:
> - Addition to main.js due to this: 1792 bytes.
> - Size of mod_cb_api.js at present: 12175 bytes.
> As you can see, the majority of this is modularized. Note also that
> GPolygon/GPolyline was modularized recently, and that the effect on
> the API size was significant (in a good way).
> We're doing our best to not bloat the API for developers that don't
> require all the features, and we'll continue working on that.
> - pamela
Thanks Pamela. Sorry about nagging you for a stripped subset of the
API. Perhaps a very stable old version of the API could be
retrofitted with PHYSICAL map tile support. For a lot of
applications, it is good enough.
BTW. I believe I have solved the "rollover" problem for well defined
polys like US states / counties / townships / zipcodes. It resides
entirely in the browser without server support. It is fast enough for
"mousemove" events. It does not interfere with the "click" layer. I
expect to have something running soon.
On Mar 13, 8:26 pm, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:
> Hi all-
> Regarding the impact of this possible feature release on the size of
> the API, here is the delta in sizes:
> - Addition to main.js due to this: 1792 bytes.
> - Size of mod_cb_api.js at present: 12175 bytes.
> As you can see, the majority of this is modularized. Note also that
> GPolygon/GPolyline was modularized recently, and that the effect on
> the API size was significant (in a good way).
> We're doing our best to not bloat the API for developers that don't
> require all the features, and we'll continue working on that.
> - pamela
Another suggestion - light weight markers with no shadows, transparent
GIFs rather than PNGs to avoid "AlphaImageLoader" in IE, light weight
impact on the "click" layer, support for just the basic event handlers
(click / mouseover / mouseout), user controlled z-index priority (no
sorting).
> >>I now need to work out how to set the direction
> >>and elevation ( yaw & pitch) of the streetview from the sidebar link
> >If you were to use GStreetviewPanorama.setLocationAndPOV() or
> >GStreetviewPanorama.setLocationAndPOVFromServerResponse(), then the
> >second parameter is a POV object which can contain some or all of
> > pitch Elevation angle of the view direction.
> > yaw Bearing of the view direction, 0=looking North.
> > zoom Zoom level.
> >E.g. {pitch:5, yaw:180, zoom:2}
> >If you're going to use googlepano.038.swf directly, then I believe that
> >the parameters are &pitch, &yaw and &zoom.
> You could do it something like this:
> function createMarker(point,name,html) {
> var marker = new GMarker(point);
> marker.yaw=0;
> marker.pitch=5;
> marker.zoom=0;
> and in the googlepano call use
> &yaw="+marker.yaw+
> etc.
> Then for each view that doesn't take the default values, write:
> var point = new GLatLng(41.89243,-87.63112);
> var marker = createMarker(point,"Find the Frog");
> marker.yaw=40;
> marker.pitch=-18;
> marker.zoom=2;
> map.addOverlay(marker);
Thanks to both Mike and Cornea for the example code. I've used the
example to add Streetview for an embeddable map I've been working on
at http://www.mapchannels.com/DualMaps.aspx . Originally the control
was designed to combine Google Maps with the Virtual Earth bird's eye
view, now I've managed to included Streetview too so users get 3 views
of the same location
On Mar 14, 1:26 pm, cornea <keircla...@googlemail.com> wrote:
> On Mar 14, 6:40 am, Mike Williams <nos...@econym.demon.co.uk> wrote:
> > Wasn't it Mike Williams who wrote:
> > >Wasn't it cornea who wrote:
> > >>I now need to work out how to set the direction
> > >>and elevation ( yaw & pitch) of thestreetviewfrom the sidebar link
> > >If you were to use GStreetviewPanorama.setLocationAndPOV() or
> > >GStreetviewPanorama.setLocationAndPOVFromServerResponse(), then the
> > >second parameter is a POV object which can contain some or all of
> > > pitch Elevation angle of the view direction.
> > > yaw Bearing of the view direction, 0=looking North.
> > > zoom Zoom level.
> > >E.g. {pitch:5, yaw:180, zoom:2}
> > >If you're going to use googlepano.038.swf directly, then I believe that
> > >the parameters are &pitch, &yaw and &zoom.
> > You could do it something like this:
> > function createMarker(point,name,html) {
> > var marker = new GMarker(point);
> > marker.yaw=0;
> > marker.pitch=5;
> > marker.zoom=0;
> > and in the googlepano call use
> > &yaw="+marker.yaw+
> > etc.
> > Then for each view that doesn't take the default values, write:
> > var point = new GLatLng(41.89243,-87.63112);
> > var marker = createMarker(point,"Find the Frog");
> > marker.yaw=40;
> > marker.pitch=-18;
> > marker.zoom=2;
> > map.addOverlay(marker);
That's impressive.
Now can you get the bird's eye view to change direction when you
change the direction of the streetview :)
I actually don't think it is possible because the GStreetviewPanorama
instance doesn't issue any events.
I don't know about Virtual Earth but it might be possible to work the
other way around. To update the streetview direction (yaw) when you
change the direction of the bird's eye view (North, East, South or
West)
On Mar 14, 1:46 pm, RobMaps <rob....@gmail.com> wrote:
> Thanks to both Mike and Cornea for the example code. I've used the
> example to add Streetview for an embeddable map I've been working on
> athttp://www.mapchannels.com/DualMaps.aspx. Originally the control
> was designed to combine Google Maps with the Virtual Earth bird's eye
> view, now I've managed to included Streetview too so users get 3 views
> of the same location
> On Mar 14, 1:26 pm, cornea <keircla...@googlemail.com> wrote:
> > Thanks Mike,
> > That works perfectly. You have once again saved me hours of work.
> > On Mar 14, 6:40 am, Mike Williams <nos...@econym.demon.co.uk> wrote:
> > > Wasn't it Mike Williams who wrote:
> > > >Wasn't it cornea who wrote:
> > > >>I now need to work out how to set the direction
> > > >>and elevation ( yaw & pitch) of thestreetviewfrom the sidebar link
> > > >If you were to use GStreetviewPanorama.setLocationAndPOV() or
> > > >GStreetviewPanorama.setLocationAndPOVFromServerResponse(), then the
> > > >second parameter is a POV object which can contain some or all of
> > > > pitch Elevation angle of the view direction.
> > > > yaw Bearing of the view direction, 0=looking North.
> > > > zoom Zoom level.
> > > >E.g. {pitch:5, yaw:180, zoom:2}
> > > >If you're going to use googlepano.038.swf directly, then I believe that
> > > >the parameters are &pitch, &yaw and &zoom.
> > > You could do it something like this:
> > > function createMarker(point,name,html) {
> > > var marker = new GMarker(point);
> > > marker.yaw=0;
> > > marker.pitch=5;
> > > marker.zoom=0;
> > > and in the googlepano call use
> > > &yaw="+marker.yaw+
> > > etc.
> > > Then for each view that doesn't take the default values, write:
> > > var point = new GLatLng(41.89243,-87.63112);
> > > var marker = createMarker(point,"Find the Frog");
> > > marker.yaw=40;
> > > marker.pitch=-18;
> > > marker.zoom=2;
> > > map.addOverlay(marker);
Thanks, I think that I could change the streetview direction as the VE
direction changes but not the other way round (because of the lack of
events as you say). I can also try setting the direction of the
initially displayed streetview to be the same as the VE map direction.
I'm hopeful that events from the GStreetviewPanorama will be available
soon as they are on maps.google.com. Is there any official /
unofficial word on a time-scale for this ?
On Mar 15, 6:40 pm, cornea <keircla...@googlemail.com> wrote:
> That's impressive.
> Now can you get the bird's eye view to change direction when you
> change the direction of thestreetview:)
> I actually don't think it is possible because the GStreetviewPanorama
> instance doesn't issue any events.
> I don't know about Virtual Earth but it might be possible to work the
> other way around. To update thestreetviewdirection (yaw) when you
> change the direction of the bird's eye view (North, East, South or
> West)
> On Mar 14, 1:46 pm, RobMaps <rob....@gmail.com> wrote:
> > Thanks to both Mike and Cornea for the example code. I've used the
> > example to addStreetviewfor an embeddable map I've been working on
> > athttp://www.mapchannels.com/DualMaps.aspx. Originally the control
> > was designed to combine Google Maps with the Virtual Earth bird's eye
> > view, now I've managed to includedStreetviewtoo so users get 3 views
> > of the same location
> > On Mar 14, 1:26 pm, cornea <keircla...@googlemail.com> wrote:
> > > Thanks Mike,
> > > That works perfectly. You have once again saved me hours of work.
> > > On Mar 14, 6:40 am, Mike Williams <nos...@econym.demon.co.uk> wrote:
> > > > Wasn't it Mike Williams who wrote:
> > > > >Wasn't it cornea who wrote:
> > > > >>I now need to work out how to set the direction
> > > > >>and elevation ( yaw & pitch) of thestreetviewfrom the sidebar link
> > > > >If you were to use GStreetviewPanorama.setLocationAndPOV() or
> > > > >GStreetviewPanorama.setLocationAndPOVFromServerResponse(), then the
> > > > >second parameter is a POV object which can contain some or all of
> > > > > pitch Elevation angle of the view direction.
> > > > > yaw Bearing of the view direction, 0=looking North.
> > > > > zoom Zoom level.
> > > > >E.g. {pitch:5, yaw:180, zoom:2}
> > > > >If you're going to use googlepano.038.swf directly, then I believe that
> > > > >the parameters are &pitch, &yaw and &zoom.