[OpenLayers-Users] OpenLayers With StreetView Overlay

Jones, Christopher Christopher.Jones at amlin.co.uk
Tue Sep 6 05:13:54 EDT 2011




Hi all,

 

Im trying to add StreetView functionality to my OpenLayers web app, and
would like to add the overlay showing StreetView availability to the map
itself. I have seen an example of it being done successfully here
<http://dev.geoext.org/sandbox/cmoullet/ux/StreetViewPanel/examples/Stre
etViewPanelExample.html?yaw=297.23&pitch=0&panoZoom=0&clickMode=true&vid
eoTimeInterval=2500&showTool=true&showLinks=true&easting=738600&northing
=5862000&zoom=14&panoEasting=740092.82894378&panoNorthing=5863392.113384
2> , but i cannot get the code to work in my own solution. Specifically
:

var layer = new OpenLayers.Layer.Google("Google Street",
{sphericalMercator: true}); 
 
layer.mapObject.addOverlay(new GStreetviewOverlay()); 

results in the error:

layer.mapObject is null 

Has anyone got any idea what i might be doing wrong, and if so, how can
i fix this?

Thanks in advance!

Chris

 



IMPORTANT - This email and the information that it contains may be confidential, legally privileged and protected by law. Access by the intended recipient only is authorised. Any liability (in negligence or otherwise) arising from any third party acting, or refraining from acting, on any information contained in this email is hereby excluded. If you are not the intended recipient, please notify AmlinCommunications at amlin.co.uk immediately then delete it and do not disclose the contents to any other person, use it for any purpose or store or copy the information in any medium.

Copyright in this email and attachments created by us belong to Amlin plc and/or one or more of its subsidiaries (Amlin Group). The author also asserts the right to be identified as such and object to any misuse.

The Amlin Group prohibits and takes steps to prevent its email systems from being used to view, store or transmit offensive, obscene or discriminatory material. If this message contains inappropriate material please report it immediately to AmlinCommunications at amlin.co.uk.

The Amlin Group records, monitors and may inspect messages that use its telecoms systems in order to protect its information, interests and reputation. Any message sent by you to or within the Amlin Group may therefore be viewed and may be acted upon.

Of the companies within the Amlin Group, Amlin Underwriting Limited, Amlin Underwriting Services Limited, Amlin UK Limited and Amlin Plus Limited are authorised and regulated by the Financial Services Authority.

This email has been sent by a member of staff of one or more of the following Amlin Group companies:

Amlin plc. Registered in England and Wales no. 2854310
Amlin Underwriting Limited. Registered in England and Wales no. 2323018
Amlin Underwriting Services Limited. Registered in England and Wales no. 422615
Amlin UK Limited. Registered in England and Wales no. 2739220
Amlin Plus Limited. Registered in England and Wales no. 4729659

Registered Offices: St Helen's, 1 Undershaft, London EC3A 8ND, United Kingdom

Amlin plc switchboard: 020 7746 1000 
Web Site: http://www.amlin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110906/032e4582/attachment-0001.html


More information about the Users mailing list