Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-02-2009, 11:05 AM   #1
LQ Newbie
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Google Maps / Java Script - Floating Buble

Hello guys,
i have this java script working:
<script src=";v=2&amp;key=ABQIAAAAS3m6-TZvETV-N_heRY2GFhT9N8u9AUpT2aR4sXaOq-MM9JvowhSXu8M7ZSa8HeQrBTKnb4XshcTaUw&sensor=true"
    <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);
                   document.createTextNode("Street address"));

I'm trying to put a line break in the "Street Address" but the line break doesn't work ... any ideas?
Old 10-02-2009, 04:40 PM   #2
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
\n ?
is there a particular reason why?
Old 10-02-2009, 08:12 PM   #3
LQ Newbie
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
\n didn't work ... it leaves a space and not a line break

I need it to write:

street address
City, ZIP
Old 10-02-2009, 08:28 PM   #4
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Originally Posted by realshock View Post
\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/>"?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Maps - how it works? mac1234mac Programming 1 08-15-2009 10:10 PM
LXer: Google Maps and Google Earth KML overlays LXer Syndicated Linux News 0 10-29-2008 04:30 AM
Force Squid to Cache esaym Linux - Networking 1 01-11-2007 04:59 PM
Showstopper bug in google maps... bulliver General 7 09-29-2006 09:38 AM
Google Maps not working in Firefox? clausawits Fedora 2 02-09-2005 06:11 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration