kml

KMLViewer Apple's example not working

徘徊边缘 提交于 2019-12-01 21:31:52
I've been searching for quite sometime an answer to my problem with no success. So here it goes... KMLViewer, Apple's example is not working in some cases. After executing the README steps, i've tried to build up a route between Lisboa, Portugal and Porto, Portugal. And here the strangest thing happens. The annotations are built correctly, although the overlay (MKPolyline) does not, it only draws part of the route and it starts drawing in the middle of an "annotation". What am i missing ? You can try, Madrid - Barcelona, you have also the same issue. Thanks in advance for spending sometime in

Kml layers doesn't update when reloading the page

…衆ロ難τιáo~ 提交于 2019-12-01 16:59:58
[EDIT] it seems the problem comes from google maps which takes some time to update the KML link...I'm not sure, but in the end, it works...[/EDIT] I embedded an existing public google map on this website : http://www.ridetheflavour.fr Here is the link of the public map : https://maps.google.fr/maps/ms?msa=0&msid=211027213468691902621.0004c8616605648d245b2 As you can see, the markers of the website's embedded map don't match the public google map markers. It seems it's not a matter of browser cache... Here is the javascript snippet i'm using (Google map API V3) : var mapOptions = { center: new

Parsed KML file doesn't show route in Google Map in my App

旧城冷巷雨未停 提交于 2019-12-01 14:10:31
I am successfully parsed KML file from server and also from assets folder and get co-ordinates from KML file and able to display route from server side KML file. But the problem for test I have download KML file for route between two location from Google map and put KML file in assets folder and accessing it. It successfully parsed and i got coordinates in log also but i can't able to display route on map using that co-ordinates.. So can anybody tell that can't we display route from downloaded KML file from google map. For test i have checked if that downloaded KML file is valid or not and I

Parsed KML file doesn't show route in Google Map in my App

孤人 提交于 2019-12-01 13:32:14
问题 I am successfully parsed KML file from server and also from assets folder and get co-ordinates from KML file and able to display route from server side KML file. But the problem for test I have download KML file for route between two location from Google map and put KML file in assets folder and accessing it. It successfully parsed and i got coordinates in log also but i can't able to display route on map using that co-ordinates.. So can anybody tell that can't we display route from

How to display multiple KML files on one map

家住魔仙堡 提交于 2019-12-01 12:51:58
I'm trying to display multiple historic shape boundaries on a google map via Google's API using JS. I have one KML file displayed correctly currently, but I'd like to have op to 100 of these displayed at once, and have the ability to highlight a particular one. Here's how I'm loading one kml file now: function loadKmlLayer(src, map) { var kmlLayer = new google.maps.KmlLayer(src, { preserveViewport: false, map: map }); Is there a way to display hundreds of these at once? Is there a limit to how many I can disaply? Thanks in advance geocodezip You can display one in each KmlLayer, but you can't

How to use kml file on mapView in Android

五迷三道 提交于 2019-12-01 11:39:39
I was wondering how to load an already created kml file into the mapview programatically? The kml file is stored in the SDcard. I have a mapActivity already set up. Do I just SAX parse the kml file and use the draw method to create the boundary? Here is a snippet of the kml file stored on the phone <?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> <name>TY09-46.kml</name> <open>1</open> <Style id="sn_ylw-pushpin594">

How to display multiple KML files on one map

こ雲淡風輕ζ 提交于 2019-12-01 10:55:26
问题 I'm trying to display multiple historic shape boundaries on a google map via Google's API using JS. I have one KML file displayed correctly currently, but I'd like to have op to 100 of these displayed at once, and have the ability to highlight a particular one. Here's how I'm loading one kml file now: function loadKmlLayer(src, map) { var kmlLayer = new google.maps.KmlLayer(src, { preserveViewport: false, map: map }); Is there a way to display hundreds of these at once? Is there a limit to

How to use kml file on mapView in Android

混江龙づ霸主 提交于 2019-12-01 09:56:22
问题 I was wondering how to load an already created kml file into the mapview programatically? The kml file is stored in the SDcard. I have a mapActivity already set up. Do I just SAX parse the kml file and use the draw method to create the boundary? Here is a snippet of the kml file stored on the phone <?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

How to load a KML file URL into Google Maps using iOS API?

為{幸葍}努か 提交于 2019-12-01 09:47:43
I've got Google Map embedded in a View Controller in a Map on an iPhone. I can create my map using: GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:39.93 longitude:-75.17 zoom:12]; mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera]; // use GPS to determine location of self mapView_.myLocationEnabled = YES; mapView_.settings.myLocationButton = YES; mapView_.settings.compassButton = YES; Now, I want to add a kml file (from a URL) that displays a route. I would imagine there is something within GMSMapView to allow this either as a layer or something else, but I'm not

Text Overlay in Google Earth KML

耗尽温柔 提交于 2019-12-01 09:03:59
I would like to add a date/time that the KML file was last updated to be displayed as an overaly in Google Earth, is there anyway this could be done? I would be looking at updating text in a KML file and then this being displayed in google earth. Many Thanks. One trick is using the Google Chart API to dynamically create images from text and using that as a screen overlay image in Google Earth. Example: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <ScreenOverlay> <Icon> <href><![CDATA[http://chart.apis.google.com/chart?chst=d_text_outline&chld=FFBBBB|16|h