kml

creating a custom layer for KML file to be viewed on mobile devices

情到浓时终转凉″ 提交于 2019-12-13 04:05:17
问题 I will need to push about 200 KML google maps to 200 people. The maps have each around 200-300 placemarks. Every placemark is either, an account, potential account, or past account. I am classifying each type of placemark with a different color pin. I would like to know how the user can see only one type of pins at a time. I know we can do this by using FOLDERS , but i think a better way would be to use LAYERS . The reason I think layers are better is because on mobile devices they are much

How do I access a nested tag in a kml in openlayers?

ぃ、小莉子 提交于 2019-12-12 17:34:08
问题 I am trying to modify the earthquake cluster map to display some of my own data. I am running into problems when using an attribute from my KML to style it. This is a sample feature from my KML: <Placemark> <name>REIERSTAD 2 ORION DW 16-2-7-6</name> <ExtendedData><SchemaData schemaUrl="#alberta_wells"> <SimpleData name="UWI">F2/16-02-007-06W4/0</SimpleData> <SimpleData name="KeyList">0074060216F20</SimpleData> <SimpleData name="Field">0998</SimpleData> <SimpleData name="Pool">0158098<

County KML data that works with Google Maps

 ̄綄美尐妖づ 提交于 2019-12-12 16:42:23
问题 I want to display county lines on my maps. I have found a several KMLs of converted Census data as various resolution but display. I created a Google Site map and uploaded several KMLs, including the CTA.kml that Google uses as an example. The CTA (Chicago) displays w/o issue so I know my site is set up correctly. But when I link to gz_2010_us_050_00_20m.kml(from the US Census Bureau) or cb_2014_us_county_20m.kml, nothing appears. my belief is that the kml format is not valid for Google Maps

android - how to open kml file in android

蓝咒 提交于 2019-12-12 14:13:17
问题 I got a kml file stored in my sdcard.I want to open it through the google map in my app, so i used the below code but i am getting error saying "android illegalstateexception could not execute method of the activity" I dont want to draw map and all just i want to open a kml file which is already stored in my sdcard and show it. When i google it i got lot of items related to drawing map based on the datas,this i dont want. My code : public void showmap(View v){ File file = new File(Environment

Extract CDATA tagged values from .kml in R

筅森魡賤 提交于 2019-12-12 11:43:17
问题 I'd like to extract from a .kml file the value(s) for description using R. Here is the file: <?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:atom="http://www.w3.org/2005/Atom"> <Document> <open>1</open> <visibility>1</visibility> <name><![CDATA[2013-07-06 4:18pm]]></name> ... <Placemark> <name><![CDATA[2013-07-06 4:18pm (Start)]]></name> <description><![CDATA[]]></description> <TimeStamp><when>2013-07-06T20

Convert Kml with multiple features to Geojson

谁说我不能喝 提交于 2019-12-12 11:23:19
问题 I use this code to convert a kml file with a single feature to a GeoJson file. String kmlToGeoJson(String fileName) throws IOException, ParserConfigurationException, SAXException, XMLStreamException { FileInputStream reader = new FileInputStream(fileName); PullParser parser = new PullParser(new KMLConfiguration(),reader, SimpleFeature.class); FeatureJSON fjson = new FeatureJSON(); FileWriter tmp = new FileWriter(fileName + ".geojson"); BufferedWriter writer = new BufferedWriter(tmp);

lazy / demand load KML in google maps or google earth plugin?

ぃ、小莉子 提交于 2019-12-12 10:09:50
问题 Is it possible to lazy load KML files once a Google Map or Google Earth Plugin instance is started? Maybe there is there a "bounding box" event that I can use to queue needed KML files? Edit => Found an answer: Found this little tid-bit ( http://code.google.com/apis/maps/documentation/javascript/events.html ): Note: If you are trying to detect a change in the viewport, be sure to use the specific bounds_changed event rather than constituent zoom_changed and center_changed events. Because the

KML layer does not always respond to clicks [ Google Maps API ]

我与影子孤独终老i 提交于 2019-12-12 09:57:28
问题 I am working on a project .jsp file, that displays 4 kml layers: gas pipes, gas sensors, valves, and areas. The problem is that I want to extract data from the placemark's description and use it, but when I click the placemark, sometimes it works, other it doesn't. And I simply can't see why.. I have created a JSFiddle example of my code. I've added 2 kml layers, one for pipes and one for sensors. Each pipe has multiple sensors( or at least one). I added the layers one after the other on

How to create KML file in Android?

风流意气都作罢 提交于 2019-12-12 08:16:50
问题 At the moment, my app receives KML file from server and displays all the placemarks in the maps. But there is too much data going back and forth, so now i want to receive only a short string (lat,lang for a few points) from the server. Is it possible to create KML file on an Android device (any API for this? 回答1: There does not seem to be any KML libraries that will work well with Android right now. I have been using the Simple XML library for parsing KML, and is working out well. However,

Ruby: KML Library?

梦想与她 提交于 2019-12-12 08:01:38
问题 I am searching for a ruby library to export location data into KML files. The data to be exported contains mainly simple points with latitude and longitude, but I'd also like to be able to export more complex polygons. I tried kamelopard, but didn't find it satisfactory as it is missing a tutorial. It wasn't obvious to me where to start using the library. There is another candidate which is called kamel. Unfortunately I couldn't install that one, due to a missing dependency which I couldn't