LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

Rep: Reputation: 0
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?
 
Old 10-02-2009, 04:40 PM   #2
smeezekitty
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
realshock
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
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
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/>"?
 
  


Reply



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 maps.google.com? 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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:41 PM.

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