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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:33:08+00:00 2026-05-15T03:33:08+00:00

  var mymarkers= []; //array function createMarker(point,html,ref){ var marker = new GMarker(point); mymarkers[ref] =

  • 0

 

var mymarkers= []; //array

function createMarker(point,html,ref){  
    var marker = new GMarker(point);
    mymarkers[ref] = marker;
    GEvent.addListener(newmarker,'click',function(){newmarker.openInfoWindowHtml(html);});
    map.addOverlay(newmarker);
}

This function works well, it adds a marker to the map no problem, but when trying to use mymarkers[] array of markers they have not been stored?

Is there a validator to check the GMarker is nice and clean?

google maps main.js throws a wobbly:

Uncaught TypeError: Cannot read property '__e_' of undefined
  • 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-15T03:33:08+00:00Added an answer on May 15, 2026 at 3:33 am

    It looks like you need to use mymarkers[ref] instead of newmarker (which is undefined). Actually, the function could be simplified further as follows:

    var mymarkers = [];
    
    function createMarker (point, html, ref) {  
        mymarkers[ref] = new GMarker(point);;
        GEvent.addListener(mymarkers[ref], 'click', function () {
            mymarkers[ref].openInfoWindowHtml(html);
        });
        map.addOverlay(mymarkers[ref]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

var plane; $.getJSON(sTailFileName, function(plane) { $('#upTailNum').html(plane.tailNum + '   ' + plane.airplaneType); document.title=Load + plane.tailNum; ....
suppose i am getting HTML text in my JavaScript function as var TEMP= result.data;
function deleteRecordDialog() { var returnThis; var numRecordss = recs.length; var html = /*html= html
I am creating a new InDesign document with   var newDoc = app.documents.add()  .
HTML new_password: <input name=new_password type=password maxlength=25 id=new_password class=ModuleTextbox onkeyup=var regex = new RegExp(/^.*(?=.{6,})(?=.*\d)(?=.*[aA-zZ@!¤&amp;/()_?,.-]).*$/m); if(regex.test(this.value))
Edit- here's the code <html> <head> <script type=text/javascript> var prodURL = https://blah; function postwith
Please see my code here http://jsbin.com/ijoxa3/edit var drawHorizondalLine = function(x1,y1,x2,y2, color) { var width
I have problem with validation such code function show_help_tip(event, element) { var $e =
I executing a function like this, <script type=text/javascript> $(document).ready(function() { getEntities(Clients/GetClients, 0, formatClientsResult); var
please see code : $result = <b>Associated Names</b>&nbsp;&nbsp;[<a href='http://www.examples.com/authors.html?act=change&id=6141&item=associated'><u>Edit</u></a>]</td> </tr> <tr> <td class='text' align='left'>G&#12539;R<br

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.