how to overlay my kml(polygon) on google map? features of polygon are required to display different color according to values of one specific column in the attribute table,my kml will update everyday(everything is the same except values in the specific column are different), and user can query the column value of a specific date. I attempted to accomplish this using fusion table but it failed because it need keys, for example, I upload the kml of 2014.9,4 and 2014.9.5, if i add a time picker control in my page, it cannot show different result of the two days because you need to know the keys. I am thinking if i could use kmllayer to accomplish this project. but i don't know how to specify the color according to the value and how to add a lengend to the map like this enter image description here this function can easily realized in fusion table. how can i do it using kmllayer? the difficulties i meet in this project is :

  1. where to upload my kml file? can i use java tomcat server as the kml container?
  2. how can i query the column value of a specific date in kmllayer?
  3. how to rendering kml layer like this (the result in fusion table), layered cl
  • 2
    Welcome to the site! It would be helpful to edit the title so that future searches on the subject could be fruitful.
    – Aaron
    Jan 2, 2015 at 15:03

1 Answer 1


You can layer polygons on top of one another by using google fusion tables (https://support.google.com/fusiontables/answer/2571232?hl=en ) . Here is a starting point to understand how to make a map with them https://support.google.com/fusiontables/answer/184641?hl=en

  • the map above is the result of fusion table api, but how can i update everyday and query data according to date? and the color is predefined in fusion table page, how can i do it in js code? Jan 3, 2015 at 5:13
  • have you tried to use google drive to host your kml file ? or you can use this kml viewer Apr 22, 2016 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.