Though Google Maps documentations doesn't mention this and without
anybody's reference, i found out that i should use innerHTML property
to assing a pre-loaded html (wrapped in a DIV) as "contentstring" of
infowindow. So, it works.

Onur

On Dec 13, 1:46 am, Onur Güzel <[email protected]> wrote:
> I believe it's a javascript problem, when i "combined" tags with "+"
> plus sign when a line break occurs in html source, it worked. However
> i'm looking for a function to point the specific html file directly
> rather than setting the html source in javascript. Any idea?
>
> Onur
>
> On Dec 13, 1:44 am, "[email protected]" <[email protected]>
> wrote:
>
> > On Dec 12, 2:58 pm, Onur Güzel <[email protected]> wrote:
>
> > > Also;
>
> > > > var contentString = '<div align="left">
> > > > Blok No: A - Blok<br>
> > > > &nbsp;Daire No: 511<br>
> > > > &nbsp;Aidat: 400 TL<br>
> > > > &nbsp;Kira: 1400 TL<br>
> > > > &nbsp;Satış Fiyatı: 230.000 TL<br>
> > > > &nbsp;Oda Sayısı: 4 Oda, 1 Salon
> > > > </div>';
> > > >   // Replace our Info Window's content and position
> > > >   infowindow.setContent(contentString);
> > > >   infowindow.setPosition(event.latLng);
>
> > > ..did not help :(
>
> > Perhaps if you were to follow the posting guidelines and post a link
> > to your map that exhibits the 
> > problem:http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e
>
> > someone might be able to help...
>
> >   -- Larry
>
> > > On Dec 13, 12:47 am, Onur Güzel <[email protected]> wrote:
>
> > > > Hi guys,
> > > > I have strange problem, if use try to use include a html to show my
> > > > custom content as bubble to infowindow object, i get no map. My code;
>
> > > > var contentString = "<div align="left">
> > > > Blok No: A - Blok<br>
> > > > &nbsp;Daire No: 511<br>
> > > > &nbsp;Aidat: 400 TL<br>
> > > > &nbsp;Kira: 1400 TL<br>
> > > > &nbsp;Satış Fiyatı: 230.000 TL<br>
> > > > &nbsp;Oda Sayısı: 4 Oda, 1 Salon
> > > > </div>";
> > > >   // Replace our Info Window's content and position
> > > >   infowindow.setContent(contentString);
> > > >   infowindow.setPosition(event.latLng);
>
> > > >   infowindow.open(map);
>
> > > > ..but if i write some fixed string to as 'contentstring', it works
> > > > perfectly fine.
>
> > > > What's the problem about that OR is there a way to refer to url
> > > > of .html file containing the same block above via javascript?
>
> > > > Thanks!
>
> > > > Onur

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to