title: How can I create a google map with 2000+ points without loading any data on the client side
body: <p>Edit: To be clear when i say sample code I mean a small demonstration of the concept not fully functional JS and HTML as some might assume. I am unsure how to create 2k markers and load them into the map other than having <code>var marker1</code>, <code>var marker2</code>, <code>var marker3</code>, etc.  Currently I have this small script to load the map with one marker.</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
  &lt;script language="javascript" type="text/javascript"&gt;
  
      var map;
      var geocoder;
      function InitializeMap() {
  
          var latlng = new google.maps.LatLng(39.50, -98.35);
          var myOptions =
          {
              zoom: 4,
              center: latlng,
              mapTypeId: google.maps.MapTypeId.ROADMAP,
              disableDefaultUI: true
          };
          map = new google.maps.Map(document.getElementById("map"), myOptions);
  
          var marker = new google.maps.Marker({
              position: new google.maps.LatLng(39.50, -98.35),
              map: map
          });
      };
      window.onload = InitializeMap;
  
  &lt;/script&gt;
  </code></pre>
  
  <p>When I say server side, I mean that I want to create the map/create the markers on a server and then load the map from this server on the client side. I don't want to have 2,000 marker objects, 2,000 sets of coordinates and information, or 2,000 of anything loaded on the client side.</p>
  
  <p>End of Edits</p>
  
  <p>I am new to the Google maps API and javascript so please bear with me if my question seems trivial.</p>
  
  <p>I want to create a google map using the maps api with about 2K+ markers. I already have the latitudes and longitudes for the locations. What I would like to do if it is possible with the API is create the map server side (upload all the points and set all the settings) and then load the map on the client side using a url.</p>
  
  <p>Is this doable with the Google maps API?</p>
  
  <p><strike>Could anyone show me some sample javascript that creates the map and some sample html that uploads and displays the map?</strike></p>