kml

Generate KML file within iphone app

 ̄綄美尐妖づ 提交于 2019-12-03 08:59:35
In my app i have to draw route between user location and destination location in MKMapView with help of MKAnnotation and MKOverlay classes. I had gone through the KMLViewer sample code from apple in there they mentioned to create KML file outside the programming steps, but i need KML file generation inside iPhone app programming. is it possible? and i need help on doing that.. Steps to get KML file manually The process to obtain a KML is as follows: Go to: "http://maps.google.com/" Click "Get Directions" link Type in the start and destination addresses (for example) Start = 451 University

Reading in XML/KML files using C#

只愿长相守 提交于 2019-12-03 07:34:22
问题 I'm trying to import the kml xml Google earth file into an application, but i can't seem to get the xDocument syntax right in order to do what i want, i'm wondering if anyone could suggest a way to read in the kml xml file. I understand the basics of xml import but can't get anything working with xDocument and Linq, ideally i'd like to get each Placemark as an object and add them to my Entity Framework driven db. Any suggestions as to how i should do this would be great, as i'm just starting

How can I send a kml file to Google Earth, like MyTracks (open source) do?

白昼怎懂夜的黑 提交于 2019-12-03 06:23:33
问题 I don't know if you have seen the amazing Mytrack update, but it allow to send a kml file to Google Earth app and display it inside the Google app (if installed, of course). The source code is there: http://code.google.com/p/mytracks/source/browse/ but I cannot find the way to achieve such a thing. I think I found something here: http://code.google.com/r/jshih-mytracks3/source/browse/MyTracks/src/com/google/android/apps/mytracks/io/file/SaveActivity.java?spec

How does CSS formatting in a Google Maps bubble work?

时光怂恿深爱的人放手 提交于 2019-12-03 04:57:58
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 ... </Placemark> So far so good - the popups show up and have the correct text in them. Here's the weird thing: I'm

Generating a KML heatmap from given data set of [lat, lon, density]

你说的曾经没有我的故事 提交于 2019-12-03 04:42:20
I am looking to build a static KML (Google Earth markup) file which displays a heatmap-style rendering of a few given data sets in the form of [lat, lon, density] tuples. A very straightforward data set I have is for population density. My requirements are: Must be able to feed in data for a given lat, lon Must be able to specify the density of the data at that lat, lon Must export to KML The requirements are language agnostic for this project as I will be generating these files offline in order to build the KML used elsewhere. I have looked at a few projects, most notably heatmap.py , which

Importing CSV File to Google Maps

余生颓废 提交于 2019-12-03 03:12:42
I have an quite big CSv File I want to have in Google Maps or just on a map. These are just coordinates but I have 600.000 of them.. Do you have any Idea how I can do this? I've added an screenshot from XTabulator below: The easiest way to do this is generate a KML file (see http://code.google.com/apis/kml/articles/csvtokml.html for a possible solution). You can then open that up in Google Maps by storing it online and linking to it from Google Maps as described at http://code.google.com/apis/kml/documentation/whatiskml.html EDIT: http://www.gpsbabel.org/ may let you do it without coding. We

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 00:51:57
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 google.maps.Geocoder (); var latlng = new google.maps.LatLng (40.43, -74.00); var myOptions = { zoom:

Openlayers write and save a KML based on your map

落爺英雄遲暮 提交于 2019-12-03 00:30:37
Is it possible to write and save a KML from OpenLayers? Anyone know of an example of exporting one? You can export only the vector features to KML. function GetKMLFromFeatures(features) { var format = new OpenLayers.Format.KML({ 'maxDepth':10, 'extractStyles':true, 'internalProjection': map.baseLayer.projection, 'externalProjection': new OpenLayers.Projection("EPSG:4326") }); return format.write(features); } UPDATE In order to force the browser to download the KML string as a KML file you need to send that string back to the server-side so it can be returned to the browser as a file to

How to create a KML file using R

女生的网名这么多〃 提交于 2019-12-02 23:38:38
I have written a R script to get some map point data (Latitude and Longitude values). I am able to plot them in R and visualize them. But now I want to generate a KML file from this data and view using Google Earth. So that I can share it with colleagues and they can see it on Google Earth too. What is the best method / package to do this ? Check the writeOGR function in the rgdal package. Here is a simple example: library("sp") library("rgdal") data(meuse) coordinates(meuse) <- c("x", "y") proj4string(meuse) <- CRS("+init=epsg:28992") meuse_ll <- spTransform(meuse, CRS("+proj=longlat +datum

Using KMZ Files in Google Maps

天大地大妈咪最大 提交于 2019-12-02 23:31:28
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. 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 case, your script should look like this: <script type="text/javascript"> function initialize() { var