kml

lazy / demand load KML in google maps or google earth plugin?

谁说胖子不能爱 提交于 2019-12-06 12:57:24
Is it possible to lazy load KML files once a Google Map or Google Earth Plugin instance is started? Maybe there is there a "bounding box" event that I can use to queue needed KML files? Edit => Found an answer: Found this little tid-bit ( http://code.google.com/apis/maps/documentation/javascript/events.html ): Note: If you are trying to detect a change in the viewport, be sure to use the specific bounds_changed event rather than constituent zoom_changed and center_changed events. Because the Maps API fires these latter events independently, getBounds() may not report useful results until after

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

Extending iOS KMLViewer Sample to Handle KML NetworkLink Elements

你离开我真会死。 提交于 2019-12-06 10:57:23
I am developing an iOS app that displays KML data over an MKMapView. Apple's KMLViewer sample app has gotten me started. Unfortunately, the KML data I am using relies heavily on linked files via the NetworkLink , Link and href KML elements, and KMLViewer's parser doesn't handle those. I can probably figure out how to add such support, but before I go down that road I was wondering if anyone else has already done this, or if there is a better starting point than KMLViewer. I've looked at Simple KML , but it doesn't seem to support NetworkLink either. Here's how my investigations went: I first

How can I use Google Map Feed API to get a list of my Google Maps using Python?

社会主义新天地 提交于 2019-12-06 10:49:23
I want to create a script in Python which downloads the current KML files of all the Maps I created on Google Maps. To do so manually, I can use this: http://maps.google.com.br/maps/ms?msid=USER_ID.MAP_ID&msa=0&output=kml where USER_ID is a constant number Google uses to identify me, and MAP_ID is the individual map identifier generated by the link icon on top-right corner. This is not very straightforward, because I have to manually browse "My Places" page on Google Maps, and get the links one by one. From Google Maps API HTTP Protocol Reference : The Map Feed is a feed of user-created maps.

Search engine optimization for kml file type

烈酒焚心 提交于 2019-12-06 10:47:45
I've a web site that generates kml files. An uri like this: /tokml?gid=2846 Generates a file like this: Mt. Dana Summit Trail.kml Using Header('Content-Disposition: inline; filename="Mt. Dana Summit Trail.kml"'); in a PHP script and running on Apache http server. But a Google search on filetype:kml will not give any results from my web site. I could cache all kml files and build an uri like this: /kml/Mt. Dana Summit Trail.kml But are there any other solutions? From my experience, Google usually index URLs with an identifier in the query string quite well - thus, it seems strange that nothing

Debugging KML file

戏子无情 提交于 2019-12-06 09:11:57
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <Document> <Placemark> <Name>Test Name</Name> <Description><b>Project Information</b><br><ul><li>Project Name: Test Name</li><li>Project Number: Test Number</li><li>Project Location: Test Location</li><li>System: Test System</li></ul><br><b>Project Team</b><br><br><ul><li>Regional Manager: Mem 1</li><li>Project Manager: Mem 2</li></ul><br>YouTube Video URL: <a href="http://youtu.be

Creating x and y distance coordinates for R from a .kml file

本秂侑毒 提交于 2019-12-06 06:45:29
问题 I would like to use a .kml track file to make a set of x, y coordinates for use in R. What I have right now is a GoogleEarth track, which I believe is a LineString. I have heard that the rgdal package is usually what people use, but it doesn't work on Mac versions of R. If possible, I'd like to do this on a Mac, where I do the rest of my analyses. If necessary, I can do the conversion on R64 with Windows, and then bring the coordinates to my Mac, but that seems...clunky. The beginning of the

Generate PDF on the server from Google Maps API?

﹥>﹥吖頭↗ 提交于 2019-12-06 05:15:06
问题 We have a hosted web app that uses the Google Maps API for various types of geographical reports, using a combination of the javascript API for adding markers and shapes, plus KML overlays for other layers. There's some demand from customers for turning these into nice downloadable & printable PDF maps. I'm not sure where to begin with that. Any ideas? 回答1: As Mark Storer pointed out, you can use wkhtmltopdf. If you have polylines or other stuff in your map you will likely need wkhtmltopdf to

Maps API v3: New InfoWindow, with pixelOffset, w/ data from KML.

爱⌒轻易说出口 提交于 2019-12-06 04:16:11
Hello: I'm making progress on my Google Map (see my previous post: KML markers missing on Google Maps API v3: What's wrong? ), but I'm now stuck, and hoping for help. My custom-styled map pulls from a KML file with about 20 Placemarks. For design reasons, I want my Placemarks to open on the RIGHT side of the anchor, rather than the default top/center. I've tried searching in vain for a simple way to do this; closest I've come is: Issue with infowindows remaining active when another KML layer is selected - Google Maps API V3 , which I can't make work for me. Here is an example of what I'm

How to parse KML files using perl?

試著忘記壹切 提交于 2019-12-06 04:14:43
问题 I am trying to parse a KML file using perl. I am trying to use XML::Simple module for doing this. I want to go through each placemarker and extract some data namely 1) Mcode 2) coordinates After reading several posts, I tried the following just to print the coordinates of all the points, but it fails use strict; use warnings; use XML::Simple; use Data::Dumper; my $myFile = XMLin('ExperimentMap.kml'); foreach my $folder (@{$myFile->{Document}->{Folder}->{Placemark}}) { print $folder->{Point}->