kml

How to obtain Element values from a KML by using lmxl

做~自己de王妃 提交于 2019-12-24 15:42:17
问题 My problem is very similar to the one found here: How to pull data from KML/XML? The answer to the above question is to use Nokogiri to fix the format. I wonder if there is a way to solve a similar problem without fixing the format first. How can I get the values of the dict, so that I can get 'FM2' and 'FM3' from the Element SimpleData below? Here is my kml: <?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

Getting KML layer to work locally (e.g. the Google TooManyMarkers Example)

旧街凉风 提交于 2019-12-24 13:32:04
问题 I have copied all of the files for the Google example http://gmaps-samples-v3.googlecode.com/svn/trunk/toomanymarkers/toomanymarkers.html to my PC, but the KML layer does not appear when I tick the checkbox. The files I copied are: functions.js markers.js markers.kml toomanymarkers.html I have also copied these to http://www.performit.co.uk/misc/maps/toomanymarkers/toomanymarkers.html and it doesn't work there either. Am I missing something? Do I need to have an environment set up for the

Issue using NetworkLinkControl for updates in GE plugin

南楼画角 提交于 2019-12-24 10:07:24
问题 I'm using KML to load an image overlay, and then I'm trying to change camera view values such as altitude using NetworkLinkControl. None of my NetworkLinkControl updates are reflected in the GE plugin. I've done quite a bit of research on this issue to no avail. Any help would be appreciated. Here are the details: The process starts with loading a NetworkLink KML file: google.earth.fetchKml(ge, href, function(kmlObject) { ... inside which the .appendChild() is done like this: walkKmlDom

KML markers missing on Google Maps API v3: What's wrong?

不想你离开。 提交于 2019-12-24 09:40:06
问题 I'm new to the Google Maps API v3 and have been closely reading the documentation. My map loads fine, but it's not displaying the Placemarks I've set up in my KML file (http://hepac.ca/wp-content/mapping/wellnessnetworks.kml). The KML validates fine at FeedValidator and displays without issue in Google Earth, so I'm assuming it's a problem with my code below. The placemarks were appearing at one point, but I must have accidentally deleted some crucial code. Thanks in advance for helping!

Using <BaloonStyle> and <LableStyle> together

狂风中的少年 提交于 2019-12-24 09:38:09
问题 I am new to KML and seem to be going round in circles. Hope someone can help. I want to show a HTML balloon and get rid of the ugly driving directions. I am using 'BalloonStyle' to do this. Also want to be able to hide the placemark label, so am using 'LabelStyle' to do this. I can get these to work separately, but don't seem to be able to get them to work together to achieve the desired result. Below is sample code which replicates the issue. Am I doing something wrong? Or do these two items

Google Maps label a marker with KML

折月煮酒 提交于 2019-12-24 08:59:13
问题 I was wondering, say I've got a KML file of points at locations. When I upload the KML and direct google maps to the file, it will show the points. Now is is possible in the KML file to label that point, Just like Google Maps does when I search for airports or plumbers? Example like this: http://localhostr.com/files/boNhHEB/capture.png I want to do the markers with Numbers instead of letters. Is this possible just using KML? or would I have to script this? 回答1: Yes you can using styles and

Why isn't my KML feed working with Google Maps anymore?

烂漫一生 提交于 2019-12-24 07:04:16
问题 I'm really confused. I have a KML feed at https://views.scraperwiki.com/run/hackney_council_planning_kml_output/? ...Which worked perfectly fine with Google Maps up until a few weeks ago: http://maps.google.com/maps?q=https://views.scraperwiki.com/run/hackney_council_planning_kml_output/? Now it gives me a "file not found" error. The feed validates fine: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fviews.scraperwiki.com%2Frun%2Fhackney_council_planning_kml_output%2F ...Any idea what

414 Request URI Too Large Error Google Maps v3

邮差的信 提交于 2019-12-24 04:07:27
问题 This error seems to occur when I call the constructor for creating a new KmlLayer with over 15 different KMZ files. The constructor call is: var layer = new google.maps.KmlLayer('http...'); I can replicate this error every time with 15 different KMZ files. I have tried reducing sizes of the files, but it doesn't seem to matter. Once you go for the 16th request to display a polygon from the KMZ, all the requests will fail stating 414 Request URI Too Large. Once this error happens, none of the

Parse KML file with PHP

人盡茶涼 提交于 2019-12-24 02:48:11
问题 Is there a way to parse google maps *.kml file with simple_xml_load_file("*.kml") ? I need to save in my database name and coordinates of each polygons registered in my KML file. On my PHP script, simple_xml_load_file("*.kml") return false, so I can't read it. <?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> <Schema> ...

kmlLayer causing focus to change (google map api v3)

自作多情 提交于 2019-12-24 00:56:27
问题 I'm layering NOAA radar information over a map with a focus of 8. When the page loads, the map initially renders at 8, then immediately redraws itself to show an entire region. The KML file I'm using contains min/max lat/long coordinates which are used to draw the radar image (in this case over the southeast US area). If I change those coordinates to cover a smaller area, the google map is resized like I want, but radar activity is clipped per the KML file. This is a problem if users zoom out