Read KMZ with JavaScript

How I can read the content in a KMZ (not KML) with JavaScript?


Well you need to see if it is possible to unzip the files. I would look at this stackoverflow post on using JavaScript. After that you will probably have a string of XML which you will need to convert to XML using the DOM parser.


You have to use geoxml3.js with ZipFile.complete.js available at KMZ

<script src="js/ZipFile.complete.js"></script> <script src="js/geoxmlv3.js"></script> var map = new google.maps.Map(document.getElementById(mapId), { zoom: 11,center: {lat: 0,lng: 0} }); var myParser = new geoXML3.parser({ map: map }); myParser.parse(fileName);


geoxml3 now supports kmz files (in the kmz branch).


  • highlight a polygon while on click using kml
  • Error when I try to generate a libgdx projet
  • archiving symlinks with python zipfile
  • Archiving a zip file and save it to a location of choice, with no extra file paths?
  • How to change placeholder text in an autocomplete activity of android google place?
  • Upgrade project from WorkLight 6.1 to MobileFirst 7.1
  • Unzip archive in .Net CORE 1.0
  • How to add closing tag for canvas in three js rendered Canvas?
  • Get the pasted content on document on paste event
  • change search magnifying glass to UIActivityIndicatorView
  • Is it possible to run clang with llc flags
  • Magento get URL before current
  • Prevent Tomcat from caching request during starup
  • Uncaught TypeError: $(…).select2 is not a function
  • Convert SQLite database to XML
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • How do I signal completion of my dataflow?
  • Adding elements to a huge XML file
  • WPF Visiblity Binding to Boolean Expression with multiple Variables
  • Conversion from string “a” to type 'Boolean' is not valid
  • How to view images from protected folder with php?
  • How to use JavaScript to determine whether a file exists in a directory?
  • How integrated is Collada to OpenGL ES
  • Display images in Django
  • Jackson Parser: ignore deserializing for type mismatch
  • How to install a .deb file on a jailbroken iphone programmatically?
  • DomPDF {PAGE_NUM} not on first page
  • Javascript simulate pressing enter in input box
  • req.body is undefined - nodejs
  • Resize panoramic image to fixed size
  • Modifying destination and filename of gulp-svg-sprite
  • Importing jscolor library in angular 2
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Arrays break string types in Julia
  • A cron job substitute?
  • using HTMLImports.whenReady not working in chrome
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal