title: Google maps API - Displaying routes/polylines, kmlLayer alternative
body: <p>I am developing a web application where i have database backend with geo located objects, and each one has it's geo data stored in a kml file. When displaying object on a google map, via google maps js api v3, i have a following scenario:
  first i do a json call, and it returns array of objects. Each json    object is has it's geo location, either a gmap marker or    route/polyline. Every object has properties: id, name, description,    kml_url… etc. Kml_url is url of the kml file, that is used to plot an    object on a map, through the "new google.maps.KmlLayer(…)" call.    Every created kmlLayer is bound to its json object, so it can be    manipulated (show/hide, for example) through that object by js. Then,    every kmlLayer get it's mouse click event listener with    "google.maps.event.addListener(…)", and the response is dynamically    generated from the kml's json object attributes (it grabs the id    attribute and through another json call it displays object's    details).</p>
  
  <p><strong>The problem is, when more than let's say 10 kml layers are created, i hit the "NetworkError: 414 Request-URI Too Large".</strong> I found that i can get rid of the error by using kml network links, but AFAIK, in this case i loose the ability to manipulate every object through it's json object (with bounded kmlLayer that is created). </p>
  
  <p><strong>What would be the alternative for this sort of application, maybe not using kml-s at all ?</strong> 
  If i go for using overlays, and drawing all the routes and markers myself, i am afraid i will end up with scalability issues, because drawing 15 routes, every with 50 polyline nodes, and another 15 markers, would take considerable amount of time on a client.</p>
  
  <p>Thank you,
  Emil</p>