kmz

use Google My Maps with geoxml3

社会主义新天地 提交于 2019-12-11 16:26:12
问题 I'm wondering what is the best way to use the data from Googles' My Maps with geoxml3. At the moment it is only possible to export kmz data format from My Maps. I used the exported kmz with the geoxml kmz version (http://geoxml3.googlecode.com/svn/branches/kmz/) but couldn't make it work (but it worked when I loaded it in Google Earth and saved it again as kmz!). I also tried it with the network link to My Maps (which I would like best), but no success, just got the message "XMLHttpRequest

PHP: Converting a KML into a KMZ

微笑、不失礼 提交于 2019-12-11 10:30:08
问题 I've got a custom php script that creates a KML file. Now how do I convert it into KMZ? Should I just run gzcompress() on it? Or should I create a ZipArchive? 回答1: Creating a ZipArchive worked. I add the already created kml file to it. $zip = new ZipArchive(); $zip_name = "c:\\kml\\".$sFilename.".kmz"; $filename = "c:\\kml\\".$sFilename.".kml"; $zip->open($zip_name, ZIPARCHIVE::CREATE); $zip->addFile($filename); $zip->close(); 来源: https://stackoverflow.com/questions/21149383/php-converting-a

ASP.NET VB KML Generator

痴心易碎 提交于 2019-12-09 19:33:27
问题 Here is a handler (ashx) file that generates KMZ files (can generate KML by not using the Ionic compression classes (Ionic = DotNetZip at Codeplex). This handler uses an SQL table to populate the place marks but is a good example of ashx handler use, custom icon use, properly compressing the file, and populating place marks. By using context.Response.OutputStream, this is very efficient within the .NET engine. <%@ WebHandler Language="VB" Class="YourKML" %> Imports System Imports System.Web

How to convert KMZ file to KML using javascript?

送分小仙女□ 提交于 2019-12-06 18:06:27
问题 In am writing JavaScript code for adding kmz,kml and csv file from local folder.All the files will be displayed/added on esri Maps.I am able to add kml and csv, but not kmz.I dont want to include full zip/unzip code or library into my code.I dont need that all.Only need a small code for converting kmz to kml. Also I don't want to store any unzipped or converted file(which will be kml) in any local folder. Just want to read the contents and pass it to my add_kml() function on the fly. Only

Unable to create KMZ file using java.util.zip

岁酱吖の 提交于 2019-12-06 11:03:23
问题 So, I have made some sample KML/KMZ files in the past, largely by hand, and have discovered a few inconsistencies with Google Earth as a result of this work. For the most part, I thought I had a good handle on what I needed to do for specific versions of GE. Recently, I attempted to add some automation to my KML/KMZ sample files to customize them for certain clients based on a given CSV of points and other metadata. I want to reach out to those with experience creating KMZ files from Java

How to convert KMZ file to KML using javascript?

≡放荡痞女 提交于 2019-12-04 22:08:42
In am writing JavaScript code for adding kmz,kml and csv file from local folder.All the files will be displayed/added on esri Maps.I am able to add kml and csv, but not kmz.I dont want to include full zip/unzip code or library into my code.I dont need that all.Only need a small code for converting kmz to kml. Also I don't want to store any unzipped or converted file(which will be kml) in any local folder. Just want to read the contents and pass it to my add_kml() function on the fly. Only want to extract the contents from kmz file which will be kml. The code available everywhere is to store

Unable to create KMZ file using java.util.zip

泄露秘密 提交于 2019-12-04 17:47:49
So, I have made some sample KML/KMZ files in the past, largely by hand, and have discovered a few inconsistencies with Google Earth as a result of this work. For the most part, I thought I had a good handle on what I needed to do for specific versions of GE. Recently, I attempted to add some automation to my KML/KMZ sample files to customize them for certain clients based on a given CSV of points and other metadata. I want to reach out to those with experience creating KMZ files from Java with custom icons or content. Here's the wrinkle I'm stuck on: I created, by hand, a bunch of styles and

ASP.NET VB KML Generator

和自甴很熟 提交于 2019-12-04 16:49:15
Here is a handler (ashx) file that generates KMZ files (can generate KML by not using the Ionic compression classes (Ionic = DotNetZip at Codeplex). This handler uses an SQL table to populate the place marks but is a good example of ashx handler use, custom icon use, properly compressing the file, and populating place marks. By using context.Response.OutputStream, this is very efficient within the .NET engine. <%@ WebHandler Language="VB" Class="YourKML" %> Imports System Imports System.Web Imports System.Web.Configuration Imports System.Xml Imports System.Data Imports System.Data.SqlClient

How to toggle between KML/KMZ layers in Google Maps api v3

青春壹個敷衍的年華 提交于 2019-12-04 08:47:35
问题 I'm developing a web page with a Google maps application. Currently, I have a functional search bar and map that displays three KML/KMZ layers. I need to be able to toggle between each of the layers, either display one of them, two of them or all three. There is a similar function in Google Earth, but I need it in Google Maps. How can I do this? Here is my code for the map and search bar: <script type="text/javascript"> var geocoder; var map; var marker; function initialize() { geocoder = new

Building large KML file

∥☆過路亽.° 提交于 2019-12-03 17:37:24
I generate KML files which may have 50,000 placemarks or more, arranged in Folders based on a domain-specific grouping. The KML file uses custom images which are packed in to a KMZ file. I'm looking to breakup the single KML file in to multiple files, partitioned based on the grouping, so rather than having 1 large document with folders, i'd have a root/index KML file with folders linking to the smaller KML files. Is this possible though? I think that a KMZ file can contain only 1 KML file, regardless of where it's located or its name, in the zip. Furthermore, I'm not exactly sure how a KML