kml

Why not doesn't Google maps view the kml layout?

只谈情不闲聊 提交于 2019-12-20 07:38:09
问题 I do this tutorial. I copied the source code from here. I use the similar .kml file too! <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <script> function initialize() { var chicago = new google.maps.LatLng(41.875696, -87.624207); var mapOptions = { zoom: 11, center: chicago, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var ctaLayer = new google.maps.KmlLayer({ url: 'https://de

Regarding Apple's KMLViewer placemarkDescription and annotation subtitle

会有一股神秘感。 提交于 2019-12-20 04:23:14
问题 In my app I am using Apple's KMLViewer to show annotations that I get from a KML file.In the file KMLParser.m, there is an instance variable, placemarkDescription that converts the information under Description tags from kml file to annotation subtitle.Now, in my file every annotation has the information stored under Description in this way: <table width="280px"><tr><td></td><td></td></tr></table><table width="280px"><tr><td><b>Fitness Bulls</b>---Palester sportive. Sporti dhe koha e lire....

Why is KML not loading in Google Maps?

允我心安 提交于 2019-12-20 03:06:43
问题 I have a KML file that I am trying to load into Google maps. It zooms somewhere in the water with no route trace. This is the code I am trying: var kmlLayer = new google.maps.KmlLayer(kml); kmlLayer.setMap(this.googlemap); "this.googlemap" has a Google map object. It is very simple example, but maybe I am missing something or my KML is not in the right format. My KML file can be download here: http://temp-share.com/show/gFHKdyG0Y. Can anyone help? 回答1: Google Map needs to be able to access

How do I draw a KML file on a MapView in Android?

你。 提交于 2019-12-20 03:02:47
问题 I have to draw a KML file into a MapView. I looked in the internet but I didn't find an example how to do it, if someone can give an example how to do it it wil be great! 回答1: KML is not supported now. You can draw trace like that w/o KML : 1) Make request to Google service : Request : http://maps.googleapis.com/maps/api/directions/output?parameters Info about : https://developers.google.com/maps/documentation/directions/ 2) Send request 3) Parsing JSON response like this : JSONObject

Creating a kml file from a mysql database with php

萝らか妹 提交于 2019-12-19 18:34:12
问题 I hope there is a php genius here somewhere who can help me with this. I have a database table called baeir , it has the following fields: b_id (primary key) b_name hrepparid (does not need to be displayed) stjarna (does not need to be displayed) lat lng comments The table contains a name of a farm (b_name), its geographical coordinates (lat, lng) and comments - if there are any. What I need is to get this data into a kml file. I have tried to go through the tutorial on google's webpage and I

Creating a kml file from a mysql database with php

大兔子大兔子 提交于 2019-12-19 18:33:14
问题 I hope there is a php genius here somewhere who can help me with this. I have a database table called baeir , it has the following fields: b_id (primary key) b_name hrepparid (does not need to be displayed) stjarna (does not need to be displayed) lat lng comments The table contains a name of a farm (b_name), its geographical coordinates (lat, lng) and comments - if there are any. What I need is to get this data into a kml file. I have tried to go through the tutorial on google's webpage and I

Group features in Google Earth to hide detail when zoomed out

人盡茶涼 提交于 2019-12-19 10:31:59
问题 I'm trying to generate a KML file to display a set of features scattered around the UK. I would like the features to be grouped together at higher zoom levels, ideally displaying as an icon with a count of the number of features, so that users can see clusters of features easily. Essentially I'm trying to do something along these lines, but in Google Earth, not Maps. Can anyone point me in the right direction. I'm a bit of a newbie with KML :-) Cheers, RB. ANSWERS : My own research suggests I

Import KML in Maps API V2

荒凉一梦 提交于 2019-12-19 07:55:11
问题 I have multiple KML files which are drawn in google earth and contain different routes. Now I'm trying to display those in my android project with Maps API V2. Is there an existing library for importing KML files in your android project and displaying them in maps? I found some code on stack overflow ( How to draw a path on a map using kml file? ) which isn't a library. If there's no library available I'm just going to build this from scratch. 回答1: For now Ill just assume that theres no

Import KML in Maps API V2

让人想犯罪 __ 提交于 2019-12-19 07:55:03
问题 I have multiple KML files which are drawn in google earth and contain different routes. Now I'm trying to display those in my android project with Maps API V2. Is there an existing library for importing KML files in your android project and displaying them in maps? I found some code on stack overflow ( How to draw a path on a map using kml file? ) which isn't a library. If there's no library available I'm just going to build this from scratch. 回答1: For now Ill just assume that theres no

Google Maps HTTP API for driving and walking directions

十年热恋 提交于 2019-12-18 13:33:29
问题 Do you know how I can get walking directions from Google by giving two specific coordinates? How can I send simple HTTP GET requests and have the result in a KML file? I don't want to geocode, but get the driving directions as the KML file returned by this method: http://www.gringod.com/2008/02/26/save-google-maps-driving-directions/ 回答1: There is no documented and approved method at the moment to access the Google Maps Directions API via an HTTP request ( update : Google added walking and