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 7642787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:16:41+00:00 2026-05-31T09:16:41+00:00

I am using Google Maps Api v3 to display a map. This is the

  • 0

I am using Google Maps Api v3 to display a map.

This is the JQuery:

<script type="text/javascript">
    var myOptions = {
         zoom: 8,
         center: new google.maps.LatLng($("#lat").val(), $("#long").val()),
          mapTypeId: google.maps.MapTypeId.HYBRID  
    };
    var map = new google.maps.Map(document.getElementById("map"), myOptions);

But the map doesn’t highlight the point. It just shows the area on the map…what I would like it to look like is this:

enter image description here

  • 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-31T09:16:42+00:00Added an answer on May 31, 2026 at 9:16 am

    Have a look at the source code of this example with a marker:
    http://code.google.com/apis/maps/documentation/javascript/examples/infowindow-simple.html

    Example using your code:

        <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
    
        <script type="text/javascript">
            function initialize() {
    
                var myLatlng = new google.maps.LatLng($("#lat").val(), $("#long").val());
                //var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
                var myOptions = {
                    zoom: 8,
                    center: myLatlng,
                    mapTypeId: google.maps.MapTypeId.HYBRID
                };
                var map = new google.maps.Map(document.getElementById("map"), myOptions);
    
                var contentString = '<div id="content">Info window html</div>';
    
                var infowindow = new google.maps.InfoWindow({
                    content: contentString
                });
    
                var marker = new google.maps.Marker({
                    position: myLatlng,
                    map: map,
                    title: 'Marker Title'
                });
    
                google.maps.event.addListener(marker, 'click', function() {
                    infowindow.open(map, marker);
                });
            }
    
        </script>
    </head>
    <body onload="initialize()">
    <div id="map" style="width: 400px; height: 300px;"></div>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Google Maps API to display a map on a certain page.
I'm trying to create map (using the Google Maps JavaScript API V3 ) which
I'm using Google Maps API to display a map and some markers on it.
Update II I Figured this out. When using google maps api, the model must
I'm using the Google Maps API v2. I add markers to the map and
I'm using the Google Maps API to build a map full of markers, but
I'm using the Google maps API (v2) to display a country overlay over a
I am trying to display google map as a tooltip using qTip jquery plugin.
I'm using Google Static Maps, which loads an image map: <img src=http://maps.google.com/maps/api/....&someparameter&someparameter&scale=1> Notice the
I'd like to use Google maps static API to display a map with a

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.