Compress the KML content and return as KMZ (using the correct MIME type).
(*args, **kwargs)
| 30 | |
| 31 | |
| 32 | def render_to_kmz(*args, **kwargs): |
| 33 | """ |
| 34 | Compress the KML content and return as KMZ (using the correct |
| 35 | MIME type). |
| 36 | """ |
| 37 | return HttpResponse( |
| 38 | compress_kml(loader.render_to_string(*args, **kwargs)), |
| 39 | content_type="application/vnd.google-earth.kmz", |
| 40 | ) |