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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:45:23+00:00 2026-06-05T09:45:23+00:00

I have predefined google map with about 6k markers. How do i make custom

  • 0

I have predefined google map with about 6k markers. How do i make custom markers for them, if i need to put marker_1 if there are 10+ points in 1cm^2 or put marker_2 if there are 50+ points,etc. And the last one, i need to print amount of points in this custom 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-05T09:45:25+00:00Added an answer on June 5, 2026 at 9:45 am

    Pasting a code which demonstrate it

     <script type="text/javascript">
      function initialize() {
          var locations = 
           [
                ['Sugar Grove', 41.7696, -88.4588],
               ['Coogee Beach', -33.923036, 151.259052],
                ['Cronulla Beach', -34.028249, 151.157507],
                ['Manly Beach', -33.80010128657071, 151.28747820854187],
                 ['Tel Aviv', 32.067, 34.767]
          ];
    
    
    
          var map = new google.maps.Map(document.getElementById('map'), {
                                     zoom: 3,
                                    center: new google.maps.LatLng(--putHereCenterVar-->),
                                     mapTypeId: google.maps.MapTypeId.ROADMAP
                                });
    
    
    
                var opt = { minZoom: 2, maxZoom:18  };
                map.setOptions(opt);
                var markers = [];
                var len=LocationLength.Length;
                var i;
                for (i = 0; i < len; i++) {
                    var dataValue = locations[i];
                    var latLng = new google.maps.LatLng(dataValue[1],dataValue[2]);
                    var marker = new google.maps.Marker({position: latLng});
                    markers.push(marker);
                }
    
    
    
                var markerCluster = new MarkerClusterer(map, markers);
            }
    
    
            google.maps.event.addDomListener(window, 'load', initialize); 
    

    this code demonstrate how to add clustreded ability to google map , try adding that to your code.
    Location is the 2d array with the marker locatoin, MarkerClusterer is the object which makes alot of points looks as one big mark with number of instances.

    Don’t forget to declare :

     <script src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer_compiled.js" type="text/javascript"></script>
    
    
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
        <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/src/markermanager.js"></script>
        <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer_compiled.js"></script>
    

    Hope that helps.

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

Sidebar

Related Questions

I have a google map service with the stores mapped on it. I also
How to decide the current point reach on google map? I have a list
I need to do a predefined Google Search through a javascript function, launched by
I have predefined an array: $tags = array('PHP', 'Webdesign', 'Wordpress', 'Drupal', 'SQL'); Now I
Do you have some predefined set of targets which all build.xml files you create
I have a Python list of predefined integers: intvals = [5000, 7500, 10000, 20000,
I have a SMTP server that only accepts a predefined From sender. However, I
I have one r function i want to run it automatically(scheduling) after every predefined
I am using my predefined inherited Focus Traversal Class For My JFrame I have
I have an XML Template file. This file contains a header and some predefined

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.