kml

OpenLayers not displaying kml layer

我与影子孤独终老i 提交于 2019-12-24 00:37:19
问题 I am having problems displaying a kml layer using OpenLayers. Here is my kml file, Light.kml: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.0"> <Folder> <open>1</open> <visibility>1</visibility> <GroundOverlay> <name>2013-05-15 12:00:00Z</name> <visibility>1</visibility> <Icon><href>http://localhost/graphics/Light_0.jpg</href></Icon> <LatLonBox> <north>9.4896821975708</north> <south>-66.0149154663086</south> <east>197.33328247070312</east> <west>90

How to draw path between placemark

天涯浪子 提交于 2019-12-23 08:48:08
问题 I'm new on kml and do not find the way to create a paths between several placemark (each with some coordinate, a name, description). I checked kml tutos but did not find this. Any ideas ? 回答1: create a LineString element with the same coordinates (Longitude, Latitude, Altitude) as your Points. <Folder> <description>Frankie likes walking and stopping</description> <Placemark id="track1"> <name>frankies path</name> <LineString> <coordinates>-46.67,-23.58,100 -46.754,-23.666,100 -46.6616,-23

How to uncheck folders in KML file

扶醉桌前 提交于 2019-12-23 05:01:48
问题 i have made visibility to 0 but no luck at all,still loading all data when i load with Google Earth .How to uncheck all folders and inside items so user can select which ever required in later.i am creating KML through c# and i am posting small part of big KML file which i am converting in to KMZ .What is wrong in following kml snippet <?xml version="1.0" encoding="utf-8"?> <kml:kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www

KML marshal produces zero-length files

烂漫一生 提交于 2019-12-23 02:56:16
问题 In Java code, I spawn a Thread which every second gathers DIS packets from a simulator, and tries to format KML output. In my Java code I am creating a Document, with Styles and Placemarks and Polygons. Once every second I can see that the "marshal" API routine does indeed create a KML file with my data. However, randomly sometimes it creates a complete file, and sometimes it creates a zero-length file. Even when I turn my DIS packet generator off, and leave my Java code still running, it

Debugging KML file

不想你离开。 提交于 2019-12-22 18:34:58
问题 <?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

Extending iOS KMLViewer Sample to Handle KML NetworkLink Elements

谁说我不能喝 提交于 2019-12-22 12:32:26
问题 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

How to tell KmlLayer about custom map projection?

↘锁芯ラ 提交于 2019-12-22 08:04:06
问题 I have a map with a custom projection (for maps.yandex.ru tiles) and default projection (Google and OSM tiles). When I add KmlLayer to map in the default projection it seems ok: But switching map to maps.yandex layer (in custom projection)... and kml-objects are misplaced. How do I tell KmlLayer about custom projection? 回答1: The way I understand it, any given object that has lat/lon (a,b) under a Mercator projection will have a different value than (a,b) under a custom projection. For example

What is the best way to generate KML files in C#?

↘锁芯ラ 提交于 2019-12-22 03:40:30
问题 What is the best way to generate KML files using C#? Is there a class library that I can use? I have looked and struggled to find anything interesting. libkml doesn't have a C# implementation or wrapper. Any help would be great. 回答1: SharpKML - library based on Google's C++ implementation of libkml 回答2: Here are ​​​​​​​​​​​​​​​​some: http://code.google.com/p/kml-library/ http://www.codeproject.com/KB/cs/Google_Earth_KML_Files.aspx http://gekml.boseefus.com/ 来源: https://stackoverflow.com

Display locations based on KML file in Bing Windows Phone 7

故事扮演 提交于 2019-12-22 00:50:34
问题 Currently i am using the following code to display locations on a map in my application: //Bustop 8448 – Pushpin BusStop8448 = new Pushpin(); BusStop8448.Background = new SolidColorBrush(Colors.Red); BusStop8448.Location = new GeoCoordinate(-36.934608, 174.73016); BusStop8448.Content = "Bus Stop: 8448 "; BusStop8448.MouseLeftButtonUp += new MouseButtonEventHandler(BusStop8448_MouseLeftButtonUp); var BusStop8448Press = sender as Pushpin; this.Map.Children.Add(BusStop8448); This is very tedious

Dynamically change colour of KML polygon in Google Maps API v3

ⅰ亾dé卋堺 提交于 2019-12-21 19:27:33
问题 I'm using Google Maps v3 API to load a KML layer and want to be able to change the colour of the KML from its default blue without having to edit the KML file itself. Is this possible using JavaScript or some other means? Thanks, Neil 回答1: From my understanding of the documentation, 'no', but it's not especially clear. I'm trying to do a similar thing (but update the colour of mouseover/mouseout). The KML file is loaded by the Google servers, parsed and sent along to your javascript object to