I would suggest reading
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

On 1 September 2010 19:48, Colin <[email protected]> wrote:
> I have a page that has both a Bing Map and a Google Street View map
> the Bing map works great but I cant get the Google one to work.  I
> think it has to do with how the getelement is handing the data but I
> am stuck
>
> when I hard code the Latitude, Longitude it works great
>
> any suggestions?
>
>            var myBingLat = document.getElementById('<
> %=lblLatitude.ClientID%>').outerText;
>            var myBingLng = document.getElementById('<
> %=lblLongitude.ClientID%>').outerText;
>            var divtag = document.getElementById('<%=BingMap.ClientID
> %>');
>            var mybirdWaypoint = new VELatLong(myBingLat, myBingLng);
>            var varDescrip = document.getElementById('<
> %=StreetNumberLabel.ClientID%>').outerText + " " +
> document.getElementById('<%=StreetNameLabel.ClientID%>').outerText +
> "<BR>" + document.getElementById('<%=CityLabel.ClientID%>').outerText;
>            var varTitle = document.getElementById('<
> %=StreetNumberLabel.ClientID%>').outerText;
>            map = new VEMap(divtag.id);
>            map.LoadMap(mybirdWaypoint,
> myBingZoom,selStyle,fixed,selMode,showSwitch);
>            var pushpin = new VEPushpin(divtag, mybirdWaypoint,
> null,varDescrip,varTitle);
>            map.AddPushpin(pushpin);
>            var myPano = new
> GStreetviewPanorama(document.getElementById("pano"));
>            fenwayPark = new
> GLatLng(parseFloat(myBingLat),parseFloat(myBingLng));
>            myPOV = { yaw: 0, pitch: 5 };
>            myPano.setLocationAndPOV(fenwayPark, myPOV);
>            document.getElementById("txtTemp").value = myGoogleLat
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-maps-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to