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

  • Home
  • SEARCH
  • 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 8483071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:59:16+00:00 2026-06-10T19:59:16+00:00

I bumped into a problem as I am adding infowindows to my markers. Although

  • 0

I bumped into a problem as I am adding infowindows to my markers. Although they all appear nicely and if i click on them, the windows appear, i seem to encounter a bug, and I cant figure out what it wants.

The problem lies when I click on a marker and the window appears with all the information. I get an: “Uncaught TypeError: Object [object Object] has no method ‘N'” error, in the main.js, something that is generated by Sencha Architect itself.

It displays however the information, and i can still open multiple screens, but the close screens dont work, which off course i want, cause i dont see reason why 150 different markers should all show content screens if i cant close them.

My code for the create marker function is as followed (note that his is run in a loop to create 150 markers)

var infoWindow;

// Creating a marker
var title = data.stembureau_2;
var yay = map.getMap();
var icon = 'markers/SGA.png';
var gpa = data.gpa;

if (gpa == 'Ja'){
     icon = 'markers/GPA.png';
}

var marker = new google.maps.Marker({
     position: new google.maps.LatLng(data.latitude, data.longitude),
     map:      yay,
     title:    title,
     icon: icon
});

// Creating an InfoWindow object
var content = data.stembureau_1;
infoWindow = new google.maps.InfoWindow({
      content: content
});

// Loading the Infowindow on a click event
google.maps.event.addListener(marker, "click", function() {
    infoWindow.open(map, this);                  
});

// Closing the Infowindow on a click event
closeInfoWindow = function() {
     infoWindow.close();
};
google.maps.event.addListener(map, 'click', closeInfoWindow);

return marker;
  • 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-06-10T19:59:18+00:00Added an answer on June 10, 2026 at 7:59 pm

    fixed it already, quite simple. I refered earlier to yay as the map-object, which down i didnt. small error on my part i constantly overread! anyway, thank you.

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

Sidebar

Related Questions

I've bumped into a small problem that i cant seem to find the fix
I bumped into this problem when I created a chart that need a axis
I'm working on a quiz for school but I've bumped into a problem. I
I have recently started programming in WPF and bumped into the following problem. I
Recently I bumped into a problem where my OpenGL program would not render textures
During usage of NHibernate ... One strange problem that I have bumped into was
Bumped into another templates problem: The problem: I want to partially specialize a container-class
I've bumped into a problem while working at a project. I want to crawl
I'm starting to make an ATM machine and are bumped into a problem. It
I bumped into the following problem: I'm writing a Linux bash script which does

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.