kml

unzip strings in javascript [closed]

怎甘沉沦 提交于 2019-12-21 13:02:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Anyone knows a simple JavaScript library implementing the UNZIP algorithm? No disk-file access, only zip and unzip a string of values. There are ActiveX, using WinZIP and other client dependent software for ZIP, written in JS. But no pure JavaScript algorithm implementation. I would use it for displaying KMZ

unzip strings in javascript [closed]

ⅰ亾dé卋堺 提交于 2019-12-21 13:02:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Anyone knows a simple JavaScript library implementing the UNZIP algorithm? No disk-file access, only zip and unzip a string of values. There are ActiveX, using WinZIP and other client dependent software for ZIP, written in JS. But no pure JavaScript algorithm implementation. I would use it for displaying KMZ

Building large KML file

痴心易碎 提交于 2019-12-21 05:39:08
问题 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,

How to override KML colors in Google Map?

早过忘川 提交于 2019-12-21 04:26:14
问题 I am loading a KML file via Google Map's V3 API. The colors in the KML file are being used but I would like to override it with my own color. I actually want to use a solid color for the whole trace. Is there a way to do this? 回答1: KML colors are based on Style api-doc tags that are defined either directly in the KML or using a reference to an external KML style file (similar to CSS). We use an external style file, so that the styles may be applied to multiple KML files. This means that

Styling kml with css in google maps v3?

独自空忆成欢 提交于 2019-12-21 03:12:12
问题 I am using a google maps api v3 to load some data from a kml file. I wish to style the description data when it is shown in an info window to suit my web page. Now I am trying to set the style: style="margin-left:-20px;border:2px dotted #897823; et-a;" ...inside the description tag of a Kml Placemark but it is not rendering it properly. I can see that firebug just shows up the positives values of margin and padding. It entirely ignores the negative margin values. So, I was wondering, are any

How does CSS formatting in a Google Maps bubble work?

非 Y 不嫁゛ 提交于 2019-12-20 17:15:33
问题 I'm using KML and the GGeoXml object to overlay some shapes on an embedded Google map. The placemarks in the KML file have some custom descriptive information that shows up in the balloons. <Placemark> <name /> <description> <![CDATA[ <div class="MapPopup"> <h6>Concession</h6> <h4>~Name~</h4> <p>Description goes here</p> <a class="Button GoRight FloatRight" href="#"><span></span>View details</a> </div> ]]> </description> <styleUrl>#masterPolyStyle</styleUrl> ...Placemarks go here ... <

Create kml from csv in Python

牧云@^-^@ 提交于 2019-12-20 12:47:33
问题 I am new to Python. I am working on gps files. I need to convert a CSV file having all the gps data to kml file. Below is the code in python I am using : import csv #Input the file name. fname = raw_input("Enter file name WITHOUT extension: ") data = csv.reader(open(fname + '.csv'), delimiter = ',') #Skip the 1st header row. data.next() #Open the file to be written. f = open('csv2kml.kml', 'w') #Writing the kml file. f.write("<?xml version='1.0' encoding='UTF-8'?>\n") f.write("<kml xmlns=

Create kml from csv in Python

谁说我不能喝 提交于 2019-12-20 12:46:11
问题 I am new to Python. I am working on gps files. I need to convert a CSV file having all the gps data to kml file. Below is the code in python I am using : import csv #Input the file name. fname = raw_input("Enter file name WITHOUT extension: ") data = csv.reader(open(fname + '.csv'), delimiter = ',') #Skip the 1st header row. data.next() #Open the file to be written. f = open('csv2kml.kml', 'w') #Writing the kml file. f.write("<?xml version='1.0' encoding='UTF-8'?>\n") f.write("<kml xmlns=

Using KMZ Files in Google Maps

余生颓废 提交于 2019-12-20 10:39:17
问题 Is there any way I can use a KMZ file in Google Maps? My KML file is around 10.7MB so it doesn't load on Google Maps. KMZ file is around 2MB. The only way I see it is to have multiple KML but it's too much work. I might end up doing that, but was just wondering if KMZ can be used? Thanks. 回答1: Yes, you can specify a KMZ file using the Maps API: var kmzLayer = new google.maps.KmlLayer('http://www.kmzlinks.com/redirect.asp?id=110&file=PalmIsland%2Ekmz'); kmzLayer.setMap(map); In your specific

With Google Maps API V3, determine if a marker is inside a KML Layer boundary

孤街浪徒 提交于 2019-12-20 10:31:37
问题 Is there a way to determine if a marker has entered an area covered by a KmlLayer? My .kml is mostly made up of a <Polygon> with a bunch of coordinates that define the boundary. There is an article I found that describes some similar to what I'm looking for, created using an overlay: http://www.paulmcilwaine.com/api/google-maps-detecting-markers-in-a-particular-boundary That method has the advantage of using getBounds(), but I am looking for a way to do this with a KmlLayer boundary. KmlLayer