javascript - How to update kml file/layer dynamically? -
i using kml file displaying map custom boundary lines. kml file downloaded website. in file, inside placemark tag there no point tag display icons. eg: <placemark> <name>spot 2</name> <description>.....</description> <styleurl>....</styleurl> <multigeometry><polygon><outerboundaryis><linearring><coordinates> ......... </coordinates></linearring></outerboundaryis></polygon></multigeometry> </placemark> that placemark tag contains in kml file. , need, 1) how can add point tag placemark tag. there way add dynamically?. kml file has 5000 , above placemarks. 2) point tag coordinates refers center of polygon. i.e) need following <placemark> <name>spot 2</name> <description>.....</description> <styleurl>....</styleurl> <multigeometry><polygon><outerboundaryis><line...