Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Syntax changes for v2.103 - preliminary report
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  24 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Blackpool Community Church  
View profile  
 More options Mar 11 2008, 8:12 pm
From: Blackpool Community Church <eco...@googlemail.com>
Date: Tue, 11 Mar 2008 17:12:19 -0700 (PDT)
Local: Tues, Mar 11 2008 8:12 pm
Subject: Syntax changes for v2.103 - preliminary report
new Classes

  GStreetviewClient()
  GStreetviewOverlay()
  GStreetviewPanorama(a)

new Methods

  GStreetviewClient.getNearestPanorama(a,b,c)
  GStreetviewClient.getNearestPanoramaLatLng(a,b,c)
  GStreetviewClient.getPanoramaById(a,b)

  GStreetviewOverlay.constructor(a)
  GStreetviewOverlay.copy()
  GStreetviewOverlay.getTileLayer()
  GStreetviewOverlay.hide()
  GStreetviewOverlay.initialize(map)
  GStreetviewOverlay.isHidden()
  GStreetviewOverlay.redraw()
  GStreetviewOverlay.refresh()
  GStreetviewOverlay.remove()
  GStreetviewOverlay.show()
  GStreetviewOverlay.supportsHide()

  GStreetviewPanorama.blur()
  GStreetviewPanorama.checkResize()
  GStreetviewPanorama.copy()
  GStreetviewPanorama.focus()
  GStreetviewPanorama.followLink()
  GStreetviewPanorama.getPOV()
  GStreetviewPanorama.hide()
  GStreetviewPanorama.isHidden()
  GStreetviewPanorama.panTo()
  GStreetviewPanorama.remove()
  GStreetviewPanorama.retarget()
  GStreetviewPanorama.setContainer()
  GStreetviewPanorama.setLocationAndPOV()
  GStreetviewPanorama.setLocationAndPOVFromServerResponse()
  GStreetviewPanorama.setPOV()
  GStreetviewPanorama.show()
  GStreetviewPanorama.unhide()

new Static Methods

  GStreetviewClient.ReturnValues

deleted Methods

  GLatLng.fromUrlValue()        [the static method of the same name
continues to exist]
  GPolyline.isDrawing()

new error status codes

  G_NO_NEARBY_PANO = 600
  G_FLASH_UNAVAILABLE = 603


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 12 2008, 2:06 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Mar 2008 06:06:30 +0000
Local: Wed, Mar 12 2008 2:06 am
Subject: Re: Syntax changes for v2.103 - preliminary report
A few more changes:

new status codes

  G_SUCCESS = 200
  G_SERVER_ERROR = 500

new events

  capture        ???
  yawchanged     GStreetviewPanorama
  pitchchanged   GStreetviewPanorama
  zoomchanged    GStreetviewPanorama
  initialized    GStreetviewPanorama
  flashstart     GStreetviewPanorama
  infolevel      GStreetviewPanorama
  flashresponse  GStreetviewPanorama

new module

  mod_cb_api.js  contains some of the Streetview code

new loader flags

  _mf[56] string:  Streetview panorama flash location
  _mf[57] string:  Streetview overlay server location
  _mf[59] boolean: Streetview enabled switch
  _mf[60] string:  Something to do with Streetview

The Streetview stuff won't work unless all the new loader flags are set,
which they aren't at the moment.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 12 2008, 6:36 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Mar 2008 10:36:27 +0000
Local: Wed, Mar 12 2008 6:36 am
Subject: Re: Syntax changes for v2.103 - preliminary report
GStreetviewOverlay is the part of StreetView that handles the display of
the blue lines along the streets that have Street View images.

Like this:
http://econym.googlepages.com/temp_streetviewoverlay.htm

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bratliff  
View profile  
 More options Mar 12 2008, 8:41 am
From: bratliff <bratl...@umich.edu>
Date: Wed, 12 Mar 2008 05:41:28 -0700 (PDT)
Local: Wed, Mar 12 2008 8:41 am
Subject: Re: Syntax changes for v2.103 - preliminary report
Do you happen to know whether Flash is required for API StreetViews ?

Is Street View support a modular component of the API ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 12 2008, 8:46 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Mar 2008 12:46:27 +0000
Local: Wed, Mar 12 2008 8:46 am
Subject: Re: Syntax changes for v2.103 - preliminary report
GStreetviewClient is the part of StreetView that sends requests to the
StreetView server and obtains details of the views

Like this:
http://econym.googlepages.com/temp_streetviewclient.htm

So GStreeviewPanorama must be the bit that displays the StreetView
imagery, but I can't work out the syntax.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
warden [Andrew Leach - Maps API Guru]  
View profile  
 More options Mar 12 2008, 8:52 am
From: "warden [Andrew Leach - Maps API Guru]" <andrew.leac...@googlemail.com>
Date: Wed, 12 Mar 2008 05:52:48 -0700 (PDT)
Local: Wed, Mar 12 2008 8:52 am
Subject: Re: Syntax changes for v2.103 - preliminary report
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."

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 12 2008, 8:51 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Mar 2008 12:51:36 +0000
Local: Wed, Mar 12 2008 8:51 am
Subject: Re: Syntax changes for v2.103 - preliminary report
Wasn't it bratliff who wrote:

>Do you happen to know whether Flash is required for API StreetViews ?

The imagery is displayed in Flash.

GStreetviewOverlay and GStreetviewClient don't need Flash, but
GStreetviewPanorama does.

>Is Street View support a modular component of the API ?

Some of the Streetview code is in the new mod_cb_api.js module, but
there's quite a bit in main.js.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marcelo  
View profile  
 More options Mar 12 2008, 9:27 am
From: marcelo <marcelo...@hotmail.com>
Date: Wed, 12 Mar 2008 06:27:14 -0700 (PDT)
Local: Wed, Mar 12 2008 9:27 am
Subject: Re: Syntax changes for v2.103 - preliminary report
On Mar 12, 7:51 am, Mike Williams <nos...@econym.demon.co.uk> wrote:

> Wasn't it bratliff who wrote:
> >Do you happen to know whether Flash is required for API StreetViews ?

> The imagery is displayed in Flash.

> GStreetviewOverlay and GStreetviewClient don't need Flash, but
> GStreetviewPanorama does.

Flash? That's where my liking of Google ends.

--
Marcelo - http://maps.forum.nu
--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 12 2008, 9:27 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Mar 2008 13:27:31 +0000
Local: Wed, Mar 12 2008 9:27 am
Subject: Re: Syntax changes for v2.103 - preliminary report
I've discovered one way of getting the StreetviewPanorama working.

http://econym.googlepages.com/temp_streetviewpanorama.htm

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bratliff  
View profile  
 More options Mar 12 2008, 10:51 am
From: bratliff <bratl...@umich.edu>
Date: Wed, 12 Mar 2008 07:51:12 -0700 (PDT)
Local: Wed, Mar 12 2008 10:51 am
Subject: Re: Syntax changes for v2.103 - preliminary report
On Mar 12, 12:51 pm, Mike Williams <nos...@econym.demon.co.uk> wrote:

GREAT - something else I will never use with an impact on performance
for everybody.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 12 2008, 3:19 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Wed, 12 Mar 2008 19:19:22 +0000
Local: Wed, Mar 12 2008 3:19 pm
Subject: Re: Syntax changes for v2.103 - preliminary report
It turns out that there's a simpler way to use GStreetviewPanorama()

http://econym.googlepages.com/temp_streetviewpanorama2.htm

I've documented what I've found in my unofficial reference:

http://econym.googlepages.com/reference.htm#GStreetviewClient

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cornea  
View profile  
 More options Mar 12 2008, 8:48 pm
From: cornea <keircla...@googlemail.com>
Date: Wed, 12 Mar 2008 17:48:53 -0700 (PDT)
Local: Wed, Mar 12 2008 8:48 pm
Subject: Re: Syntax changes for v2.103 - preliminary report
That's brilliant Mike.

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.

http://keirclarke.googlepages.com/streetviewapi.htm

On Mar 12, 12:46 pm, Mike Williams <nos...@econym.demon.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 13 2008, 6:56 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Thu, 13 Mar 2008 10:56:09 +0000
Local: Thurs, Mar 13 2008 6:56 am
Subject: Re: Syntax changes for v2.103 - preliminary report
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.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pamela (Google Employee)  
View profile  
 More options Mar 13 2008, 4:26 pm
From: "pamela (Google Employee)" <pamela....@gmail.com>
Date: Thu, 13 Mar 2008 13:26:32 -0700 (PDT)
Local: Thurs, Mar 13 2008 4:26 pm
Subject: Re: Syntax changes for v2.103 - preliminary report
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

On Mar 13, 3:56 am, Mike Williams <nos...@econym.demon.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 13 2008, 5:41 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Thu, 13 Mar 2008 21:41:13 +0000
Local: Thurs, Mar 13 2008 5:41 pm
Subject: Re: Syntax changes for v2.103 - preliminary report
Wasn't it pamela (Google Employee) who 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.

But much of the non-modularized code for Streetview was added in release
2.101, so you can't just compare the size of 2.103 with 2.102.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cornea  
View profile  
 More options Mar 13 2008, 11:01 pm
From: cornea <keircla...@googlemail.com>
Date: Thu, 13 Mar 2008 20:01:15 -0700 (PDT)
Local: Thurs, Mar 13 2008 11:01 pm
Subject: Re: Syntax changes for v2.103 - preliminary report
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

http://keirclarke.googlepages.com/streetviewapi.htm

On Mar 12, 12:12 am, Blackpool Community Church


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 14 2008, 2:18 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Fri, 14 Mar 2008 06:18:58 +0000
Local: Fri, Mar 14 2008 2:18 am
Subject: Re: Syntax changes for v2.103 - preliminary report
Wasn't it cornea who wrote:

>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.

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Williams  
View profile  
 More options Mar 14 2008, 2:40 am
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Fri, 14 Mar 2008 06:40:18 +0000
Local: Fri, Mar 14 2008 2:40 am
Subject: Re: Syntax changes for v2.103 - preliminary report
Wasn't it Mike Williams who wrote:

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
        &amp;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);

--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bratliff  
View profile  
 More options Mar 14 2008, 8:41 am
From: bratliff <bratl...@umich.edu>
Date: Fri, 14 Mar 2008 05:41:11 -0700 (PDT)
Local: Fri, Mar 14 2008 8:41 am
Subject: Re: Syntax changes for v2.103 - preliminary report
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.

A bit off topic - sorry.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bratliff  
View profile  
 More options Mar 14 2008, 9:00 am
From: bratliff <bratl...@umich.edu>
Date: Fri, 14 Mar 2008 06:00:56 -0700 (PDT)
Local: Fri, Mar 14 2008 9:00 am
Subject: Re: Syntax changes for v2.103 - preliminary report

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).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cornea  
View profile  
 More options Mar 14 2008, 9:26 am
From: cornea <keircla...@googlemail.com>
Date: Fri, 14 Mar 2008 06:26:10 -0700 (PDT)
Local: Fri, Mar 14 2008 9:26 am
Subject: Re: Syntax changes for v2.103 - preliminary report
Thanks Mike,

That works perfectly. You have once again saved me hours of work.

http://keirclarke.googlepages.com/streetviewapi.htm

On Mar 14, 6:40 am, Mike Williams <nos...@econym.demon.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RobMaps  
View profile  
 More options Mar 14 2008, 9:46 am
From: RobMaps <rob....@gmail.com>
Date: Fri, 14 Mar 2008 06:46:29 -0700 (PDT)
Local: Fri, Mar 14 2008 9:46 am
Subject: Re: Syntax changes for v2.103 - preliminary report
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cornea  
View profile  
 More options Mar 15 2008, 2:40 pm
From: cornea <keircla...@googlemail.com>
Date: Sat, 15 Mar 2008 11:40:01 -0700 (PDT)
Local: Sat, Mar 15 2008 2:40 pm
Subject: Re: Syntax changes for v2.103 - preliminary report
RobMaps

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RobMaps  
View profile  
 More options Mar 16 2008, 4:02 pm
From: RobMaps <rob....@gmail.com>
Date: Sun, 16 Mar 2008 13:02:39 -0700 (PDT)
Local: Sun, Mar 16 2008 4:02 pm
Subject: Re: Syntax changes for v2.103 - preliminary report
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »