Thank you for the insight

In regards to your DOM comment, I am using a the Open Realty content
management software.   I am somewhat limited with where I can place
code.  I will research some more to see what can be done.

While researching further, I found an example where someone put a map
and a seperate instance of a Street View in a php file that was
Iframed.  So I am attempting to do the same, and put 2 divs in the php
file... one for each map.

Should I use showAddress function or addAddressToMap?    When running
the regular map, I used showAddress and had it process the php
variable for the address.

On the html page, this javascript would load the address:  (the
{whatever_value} are custom Open Realty variables)

<script type="text/javascript">
    var Address="{listing_field_streetnum_value}
{listing_field_streetname_value}
{listing_field_streettype_value}&city={listing_field_city_value}&state={listing_field_state_value}&zip={listing_field_zipcode_value}";

var newAddress = Address.replace('/\\n/', " ");

 document.write('<iframe name="map_frame" src="/streetmap.php?
address='+newAddress+'" width="456px" height="192px" frameborder="0"
style="margin: 0px; padding: 0 0 0 0;"></iframe>');
</script>

that then loads into the php file, which has the following php code in
it:

$address = $_GET['address'];

$city = $_GET['city'];

$state = $_GET['state'];

$zip = $_GET['zip'];

$addressBar = $address." ".$city.", ".$state." ".$zip;


and the onload would be <body onload="initialize(),
showAddress('$addressBar')"....

On Sep 24, 7:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Sep 24, 4:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
> > n Sep 24, 2:22 pm, David Kyle <[EMAIL PROTECTED]> wrote:
>
> > > Hello
>
> > > I have had maps working with Geocoder on my site for some time now.
> > > An example is:
>
> > >http://www.timothyclinerealty.com/listing-5102+Alysheba+DR+Indian+Tra...
>
> > > You'll notice that I have space to the right for streetview.  My
> > > problem is that I cannot get the latlng to pass to the streetview
> > > section of code. It always says that it is undefined.
>
> > That is because it is undefined.
> > // Retrieve the latitude and longitude
> > point = new GLatLng(place.Point.coordinates[1],
> > place.Point.coordinates[0]);
> > point = latlng;
>
> > I think you want delete the line that sets point to be latlng (it
> > already has the right value in it).
>
> > > My map is a php file that is framed.  I read that you cannot do that
> > > with StreetView, so I created a div like suggested.
>
> > you have a problem with the map div not reporting it's size to IE6
> > correctly, the marker is in the upper left hand corner.  I don't see
> > why that is.
>
> I see that I didn't really address your original concern.
> You have your script defined inside the DOM.  IE will not like that.
> You have multiple places where you sent the window.onload and
> window.onload events,  only one of them will end up being effective
> (Doug Henderson had a post about adding multiple onload events several
> years ago, you may want to investigate it or rethink how you want your
> code to work).  This is most likely why you are having trouble adding
> the streetview functionality.
>
>   -- Larry
>
>
>
>
>
> > > All the examples I have found don't really cover this.  I can get it
> > > to work if I hard code the latlng, so I know it's something to do with
> > > passing the variable.
>
> > > Any help is appreciated.
>
> > > David- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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