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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:44:29+00:00 2026-05-31T00:44:29+00:00

I am looking for documentation links on how to extend google maps classes such

  • 0

I am looking for documentation links on how to extend google maps classes such as google.maps.Marker. I did find a very helpful link at http://www.googlemapsbook.com/2007/01/22/extending-gmarker/. However that is for api v2 and I am using api V3. I also looked at google’s documentation to extend OverlayTypes here (http://code.google.com/apis/maps/documentation/javascript/overlays.html#CustomOverlays) however, that does not apply to Marker which is an MvcObject. I also read and understood that for most practical requirements, we wont need to extend the Marker class. It has a very useful interface with which you can do almost everything you need. However, my app is now becoming complex and I would love to encapsulate some of my custom features in a custom marker class that extends Google’s marker. Is that even possible or am I dreaming?

Thank you folks!

  • 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-31T00:44:30+00:00Added an answer on May 31, 2026 at 12:44 am

    google.maps.Marker is an object.
    You don’t need a special interface to extend objects, you may extend the prototype of google.maps.Marker.

    Sample:

      //applies a onclick-listener to a marker where the marker will be removed
      google.maps.Marker.prototype.removeOnClick=function()
                      {
                        google.maps.event.clearListeners(this,'click');
                        google.maps.event.addListener(this, 'click', 
                                function() {
                                              alert('bye');
                                              this.setMap(null);
                                           });
                      };
    

    http://jsfiddle.net/doktormolle/KgTF5/

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

Sidebar

Related Questions

Looking for an example or documentation links as to how to implement a method
I'm looking at WCF documentation in the MSDN ( http://msdn.microsoft.com/en-us/library/bb332338.aspx ), and have come
I used to looking up classes/methods from Help->Developer Documentation, which has API doc in
I was looking at the documentation page for jScroll plugin for jQuery ( http://demos.flesler.com/jquery/scrollTo
I have been looking for documentation related to interacting with MSPaint from the command
I'm looking for: documentation blogs books ready-to-use pre-configured slice images services wrappers libraries tutorials
I'm looking for documentation on boost::threadpool. I downloaded the source and documentation zip files.
I'm looking for some documentation on how Information Retrieval systems (e.g., Lucene) store their
I am interested in using a DataObject and have been looking through the documentation.
I'm currently messing around with Rob Eisenberg's Caliburn framework. When looking at the documentation

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.