Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6530417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:45:09+00:00 2026-05-25T09:45:09+00:00

I had my Google map running just fine. I’ve been trying to get only

  • 0

I had my Google map running just fine. I’ve been trying to get only one infowindow to open at once and in the process of doing that, broke my code. I am unable to get it back to a working stage at this point. I’ve gone through the code a dozen times and can’t find anything wrong with it. I was basing my changes on this article on the stackoverflow forums.

<script type="text/javascript">

    function initialize() {
        var infowindow new google.maps.InfoWindow();
        var LatLng = new google.maps.LatLng(38.89, -92.343);
        var myOptions = {
            zoom: 13,
            mapTypeId: google.maps.MapTypeId.ROADMAP,
            center: LatLng
        };

        var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

        var bounds = new google.maps.LatLngBounds();    

        var Image = "images/wrenchIcon.png";
        var Content = "blank";
        var Head = "The Falls";

        var cMarker = new google.maps.Marker({
            position: LatLng,
            map: map,
            title: Head,
            icon: Image
        })

        google.maps.event.addListenter(cMarker, 'click', function() {
            infowindow.setContent(Content);
            infowindow.open(map, cMarker);
        });

            Image = "images/goodIcon.png";

            LatLng = new google.maps.LatLng(38.912, -92.301);
            Content = "blank";
            Head = "Bob TheBuilder";

            var marker1 = new google.maps.Marker({
                position: LatLng,
                map: map,
                title: Head,
                icon: Image
            });

            google.maps.event.addListenter(marker1, 'click', function() {
                infowindow.setContent(Content);
                infowindow.open(map, marker1);
            });     

            bounds.extend(LatLng);

            Image = "images/alertYelIcon.png";

            LatLng = new google.maps.LatLng(38.951, -92.332);
            Content = "blank";
            Head = "Shiloh Bar&Grill";

            var marker2 = new google.maps.Marker({
                position: LatLng,
                map: map,
                title: Head,
                icon: Image
            });

            google.maps.event.addListenter(marker2, 'click', function() {
                infowindow.setContent(Content);
                infowindow.open(map, marker2);
            });     

            bounds.extend(LatLng);

            Image = "images/goodIcon.png";

            LatLng = new google.maps.LatLng(38.92, -92.332);
            Content = "blank";
            Head = "FlatBranch Pub";

            var marker3 = new google.maps.Marker({
                position: LatLng,
                map: map,
                title: Head,
                icon: Image
            });

            google.maps.event.addListenter(marker3, 'click', function() {
                infowindow.setContent(Content);
                infowindow.open(map, marker3);
            });     

            bounds.extend(LatLng);
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:45:09+00:00Added an answer on May 25, 2026 at 9:45 am

    It looks like your initialize function doesn’t have a closing } If this isn’t the issue when is the function being called, onload?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just tried to use Google Map Buddy to get satellite image from Google
I have been playing with Google maps I had it working but when I
I'm trying to create map (using the Google Maps JavaScript API V3 ) which
My application's function about Google Maps doesn't work, the map only displays a grid
I had used Google MAP with android before but now I want to use
Just read news that Google had announced an early preview of the new web
I've just begun using the Google Maps API (v3.0) and have had a good
I have some questions about customers about NF mode for DB2. Google had very
In my initial days of using linux I usually had to search google to
I had recently (and unfortunately) uninstalled the google chrome browser from my computer -while

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.