Overlays in street view

63 views
Skip to first unread message

Rikkert Koppes

unread,
Aug 27, 2011, 1:30:46 PM8/27/11
to google-map...@googlegroups.com
Hi all,

I would like to add an overlay to the google street view, specifically, for the upcoming venus transit (June 6), we would like to render the positions of the sun and Venus as seen from your own street.

We can calculate all relevant data, furthermore, the camera heading and pitch are available in the API. As far as I understand, the only thing missing to render these celestial objects on the map is a translation of the zoom level to pixels per degree or something similar. Specifically, to be able to render an object with given heading and pitch in the current pov, we need a translation from (heading, pitch) to x and y coordinates of the screen. With this information, we can draw a custom image over the street view layer, since, as I understand, the street view mode does not support polygon overlays.

Does anyone have any pointers in how to proceed?

Project info:
we currently provide a tool to visualize the Venus transit based on the users location at http://transitofvenus.nl/wp/where-when/local-transit-times/ specific info about the transit can also be found on our blog

Chris Broadfoot

unread,
Aug 29, 2011, 3:42:50 AM8/29/11
to google-map...@googlegroups.com
Hi Robert - this is a difficult problem to solve. In the V3 API there are several projections used depending on browser capability.

You may want to experiment with the (undocumented) property "mode" on StreetViewPanoramaOptions. Try setting it to "html4", "html5", and if your browser supports WebGL - "webgl".

Please also star this issue:

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/bwtYEs0mzqQJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Reply all
Reply to author
Forward
0 new messages