LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Google Maps / Java Script - Floating Buble (http://www.linuxquestions.org/questions/programming-9/google-maps-java-script-floating-buble-759231/)

realshock 10-02-2009 11:05 AM

Google Maps / Java Script - Floating Buble
 
Hello guys,
i have this java script working:
Code:

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAS3m6-TZvETV-N_heRY2GFhT9N8u9AUpT2aR4sXaOq-MM9JvowhSXu8M7ZSa8HeQrBTKnb4XshcTaUw&sensor=true"
            type="text/javascript"></script>
    <script type="text/javascript">

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(36.8646, -87.4896), 15);
                map.openInfoWindowHtml(map.getCenter(),
                  document.createTextNode("Street address"));
        map.setUIToDefault();
      }
    }

    </script>

I'm trying to put a line break in the "Street Address" but the line break doesn't work ... any ideas?

smeezekitty 10-02-2009 04:40 PM

\n ?
is there a particular reason why?

realshock 10-02-2009 08:12 PM

\n didn't work ... it leaves a space and not a line break

I need it to write:

street address
City, ZIP

lutusp 10-02-2009 08:28 PM

Quote:

Originally Posted by realshock (Post 3705660)
\n didn't work ... it leaves a space and not a line break

I need it to write:

street address
City, ZIP

It's been a while since I tried to program anything for Google Maps, but have you tried "<br/>"?


All times are GMT -5. The time now is 03:32 PM.