kml

How to override target=_blank in KML popups in embedded Google map?

戏子无情 提交于 2019-12-06 03:47:30
问题 I'm using KML to overlay shapes on a Google map. Information corresponding to each shape is included in the <description> element, along with a link to a detail page corresponding to that shape. So for example, my KML includes this: <description> <![CDATA[ <div> ... <p> <a href="Concession.20.aspx">View details</a> </p>   </div> ]]> Of course, I would like for that link to open in the same window, since it's just navigating to another page on this same site. Unfortunately, as documented here,

Does Google Maps support KML regions?

狂风中的少年 提交于 2019-12-06 03:28:40
Does Google Maps support KML regions like Google Earth does? Google gives a nice description/tutorial of regions here: https://developers.google.com/kml/documentation/regions which mentions Google Earth specifically, but not Google Maps. According to https://developers.google.com/kml/documentation/kmlelementsinmaps Google Maps DOES support KML regions, but https://developers.google.com/kml/documentation/mapsSupport doesn't mention them explicitly. Zoom levels in kml files on google maps is also ambigious on the issue. I created my own test KML file (stolen almost verbatim from google): <?xml

Using an existant Google 'My Places' map with Maps API v3 styling

余生长醉 提交于 2019-12-06 02:30:21
问题 I am trying to use my custom styling created through Google Maps API v3 with an existant map I created through the My Places tool online, without downloading the KML data. Here is a link to my map with the KML data: https://maps.google.co.uk/maps/ms?msid=214652605574280498452.0004d3cc7c556a8346d32&msa=0 I saw a previous question which addressed this issue: Query existing, public Google Map via the Google Maps API v3 However, rather than downloading the KML data, is there a way to use my map

Loading KML file in to mysql / xpath and x quires

感情迁移 提交于 2019-12-06 01:38:50
hello im coming across a few problems on loading a large kml file i was originally using cold fusion but it just cant handle the large xml/kml files so i thought id give it a bash using php i am fairly new to php and coldfusion so you can get the kmz file ive been working on from http://marinetraffic2.aegean.gr/ais/getkml.aspx you will have to rename it to .zip then expand it there should be a kml file in there called doc.kml change it to xml and there you go there is a Bom at the start of it i got round that on the cfhttp and type=ut-8 thingy then removing the first 3 chars now the part i am

How to prepare KML file for Android Emulator Control?

雨燕双飞 提交于 2019-12-05 19:58:01
问题 I am trying to test my application with location information. You know the Emulator Control has an ability to load from KML file. (Eclipse -> DDMS -> Emulator Control -> Location Controls -> KML -> Load KML...) I've prepared KML file using Google earth application with its "Add path". Then saved it by .kml extension and load it on the Eclipse. Eclipse didn't load this KML file. How to prepare KML file for Android Emulator Control? 回答1: I've found solution : KML format is : <?xml version="1.0"

How to tell KmlLayer about custom map projection?

血红的双手。 提交于 2019-12-05 16:18:16
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? 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, if your custom projection was polar, the object would have distance from a fixed point and an angle from a

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

橙三吉。 提交于 2019-12-05 02:14:38
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. SharpKML - library based on Google's C++ implementation of libkml 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/questions/2496660/what-is-the-best-way-to-generate-kml-files-in-c

Extract coordinates from KML file in Java

Deadly 提交于 2019-12-05 01:29:45
问题 I'm trying to parse a Kml file in Java. Cause I need to take the coordinates of a Placemark, to generate a poligon in java, and use it. But my problem , is that i'm using JAK this library to parse it, and i'm not able to extract the information that i want.(I read the "help" in the official page, but I didn't found any help abut my problem) I'm trying to do something like that: final Kml kml = Kml.unmarshal(new File("C:/Users/A556520/Documents/Proyectos/GeoFencing/res/labasa.kml")); final

Unable to rotate kml layer

被刻印的时光 ゝ 提交于 2019-12-04 23:17:18
I want to rotate the kml layer in my map but it is not rotating however kml file contains the rotation tag. Here is KML file. KML File I am using this code to include the kml file. var myLatLng = {lat: -25.363, lng: 131.044}; var map = new google.maps.Map(document.getElementById('map'), { zoom: 15, mapTypeId: google.maps.MapTypeId.SATELLITE, center: myLatLng }); var ctaLayer = new google.maps.KmlLayer({ url: 'https://s3.amazonaws.com/navizon.its.fp/1001/zk01w7hhv4_o.kml', map: map }); <rotation/> is not supported in KmlLayer, see https://developers.google.com/kml/documentation

Is there a way to divide a map into square grids and retrieve latitude/longitude information from there? [closed]

≡放荡痞女 提交于 2019-12-04 22:39:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a map of a specific area and I need to determine whether a given location -with lat-lon coordinates- falls into any grid that covers this map. I decided to divide the map of the area I was given into 1 km x 1 km square grids using Google Earth -enabling the square grids using CTRL+L and zooming to the