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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:49:52+00:00 2026-05-30T07:49:52+00:00

I am trying to display a simple marker on my map. I follow all

  • 0

I am trying to display a simple marker on my map.
I follow all the steps as shown in the example but no markers attaches.

this is the block with script:
which is the bug?

why don not I see the marker?

<script type="text/javascript">
  function initialize() {
    var myOptions = {
      zoom: 8,
      center: new google.maps.LatLng(43.1711696, 11.351473),
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
   var map = new google.maps.Map(document.getElementById('object_map'),

        myOptions);  
        var marker= new google.maps.Marker ({ 
        position: LatLng, 
        title:"Mandolino"}); 

 }

   google.maps.event.addDomListener(window, 'load', initialize)


</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-30T07:49:53+00:00Added an answer on May 30, 2026 at 7:49 am

    Simple example of creating markers on a map :

    // this is list of markers with title / long and lat
    var locations = [
          ['Bondi Beach', -33.890542, 151.274856, 4],
          ['Coogee Beach', -33.923036, 151.259052, 5],
          ['Cronulla Beach', -34.028249, 151.157507, 3],
          ['Manly Beach', -33.80010128657071, 151.28747820854187, 2],
          ['Maroubra Beach', -33.950198, 151.259302, 1]
    ];
    
    // This creates the map with zoom level / default center and map type
    var map = new google.maps.Map(document.getElementById('map'), {
      zoom: 10,
      center: new google.maps.LatLng(-33.92, 151.25),
      mapTypeId: google.maps.MapTypeId.ROADMAP
    });
    
    // this loops the array of marker locations
    for (i = 0; i < locations.length; i++) { 
      // this creates the markers and adds them to the map 
      marker = new google.maps.Marker({
         position: new google.maps.LatLng(locations[i][1], locations[i][2]),
         map: map
      });
    }
    

    Working example : http://jsfiddle.net/QvNUF/95/

    Update

    To add a single marker do this :

    var marker = new google.maps.Marker({
         position: new google.maps.LatLng(<yourlat>, <yourlong>),
         map: <yourmap>
    });
    

    you will need to replace <yourlat> with the latitude of the marker position, <yourlong> with the longitude of your marker position and <yourmap> with the map variable you created

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

Sidebar

Related Questions

I'm trying to display data in a Panel with this simple example with Sencha
i'm trying to use IvoryGoogleMap to display a simple map with markers and infoWindows
I am trying to display a simple jtable in frame but It is not
I'm trying to display photos as markers on Google Maps. This is no problem
I am trying to display a simple text block that shows the value of
I'm trying to display all possible permutations of a list of numbers, for example
I am trying to display a simple map in an ASP.NET page that has
I'm trying to display a simple notification when a C2DM message is received. Services
I am trying to write a simple macro to display a pop-up (vbOKOnly) if
I am trying to write a very simple RSS channel which would display the

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.