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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:49:03+00:00 2026-06-01T16:49:03+00:00

Using Gmaps.map.replaceMarkers() I can replace entire marker set. But in my application I will

  • 0

Using Gmaps.map.replaceMarkers() I can replace entire marker set. But in my application I will use more than 3000 markers.

How to replace one marker or subset of markers?

  • 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-01T16:49:04+00:00Added an answer on June 1, 2026 at 4:49 pm

    This is definitely possible but because there is no rule, there is custom code to write.

    Here is how I proceed generally:

    • I add some custom data in the marker’s json, the id of the active record’s object generally

    • I sort my markers client side in javascript variables, say you have the ids of markers you want to remove in a js array called toClear

    • I remove useless markers:

    Coffeescript:

    for marker in Gmaps.map.markers
      if marker.id in toClear
        Gmaps.map.clearMarker marker
    
    • I add the new one Gmaps.addMarkers new_markers_array
    • 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 but i can't get map marker for these kind
I want to create google map using a pre-defined set of bounds. So instead
We are using GMaps with a KML feed to display locations on a map.
I'm using GMaps V3 with MarkerClusterer from http://code.google.com/p/gmaps-utility-library-dev/ Markers displayed on the map are
Im having problem's adding map markers to gmaps using jquery. Here is my code
I got a static map link using this wizard http://gmaps-samples.googlecode.com/svn/trunk/simplewizard/makestaticmap.html and the marker is
I'm loading a page containing a GMaps using the ajax() method of jQuery. The
I am using gmap3 script to show clustering markers, but i have some questions
i'm trying to use gmap on android (trying to develop it using mono for
Using Nunit, I want to be able to write a test fixture that will

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.