kml

Adding many circles to a google map

回眸只為那壹抹淺笑 提交于 2019-12-12 07:57:10
问题 I'm attempting to draw many circles (around 1000) on a google map, at various locations and sizes, and then binding a click event to them. But this many calls of new google.maps.Circle(parameters); makes the page loading slow, and sometimes it just hangs forever, so I'd like to figure out if there's a better/faster way to accomplish what I'm trying to do. I see that there's something called a kml layer, but there doesn't appear to be any easy way to draw filled circles with it and I'm not

'The specified input does not represent a valid geography instance' exception when using SqlGeographyBuilder

心已入冬 提交于 2019-12-12 07:20:02
问题 I've written a small application that reads in from a series of KML files and then converts them into the Microsoft.SqlServer.Types.SqlGeography type using the following code: private SqlGeography CreateGeographyFromKML( string kml, bool debug ) { // use SqlGeographyBuilder to help create the SqlGeography type var geographyBuilder = new SqlGeographyBuilder(); // Get co-ordinates var xml = XDocument.Parse(kml); var df = xml.Root.Name.Namespace; XElement coordinates = xml.Descendants(df +

How do I obtain the coordinates along GMaps directions?

久未见 提交于 2019-12-12 06:28:44
问题 I want to create an online map for a hiking trail, and I have been using my smartphone to collect coordinates from it. I have many questions regarding what's good practice when it comes to making such tracks, but for starters: it would look much neater if I could edit the readings so that they are right on top any roads in Google Maps. How can I achieve this? EDIT: I want to find the coordinates that will make a track along a road look exactly as if I'm using snapping/directions even when I'm

KML gx:Track Network Link updates

我与影子孤独终老i 提交于 2019-12-12 04:04:42
问题 I am using a Network Link and Network Link Control to add coordinates to a gx:Track. I know that the network link is working because it changes other updates that I needed to make, but it doesn't change the gx:Track at all. And by that I mean that new coordinates do not get added to the track. Here is my code that the updates get tacked onto: <Folder id="movement"> <name>Position</name> <Placemark id="known_mov"> <name>Known Position - movement</name> <description>position according to GPS

KML overlays with tiled images in incorrect positions

本小妞迷上赌 提交于 2019-12-12 03:52:49
问题 I have made a map with a series of overlays of old maps that I created using MapTiler and the coordinates were definitely correct when I plotted them in Google Earth, but when I load the KML files in Google Maps they are roughly in the correct area but are far from accurate. As the same error is replicated in all the layers can someone suggest what it is that I am doing wrong? http://www.southdevonaonb.org.uk/cordialemapping/kmzdata/withtiledoverlays/19x/doc.kml http://www.southdevonaonb.org

Generate .kml file in Android from GoogleMapsApiV2

旧街凉风 提交于 2019-12-12 03:28:20
问题 I'm making a Google Maps Application which one of the functions is to generate maps from user traveled distance. I do this by adding PolyLines to my map fragment so the user can see the path he just traveled. However, after the user is done recording his route I want to export those PolyLines as a .kml file so the user can travel the same path next time, but I don't know if I should use a XML parser to make the file myself or is there any way to actually export all the contents from the

Markers Not Showing in a Google Maps KML file

妖精的绣舞 提交于 2019-12-12 03:24:35
问题 I have generated a map in the Google MyMaps web-application. Now I want to include it to my page (but not as an embedded map!). I have downloaded a kml file and added it to a html page. Everything is okay except markers are not showing. Does anybody know what the problem is? Here are my 3 files: HTML: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Map</title> <script src="http://maps.googleapis.com/maps/api/js?key=MY-KEY"></script> <script src="script.js"></script> </head> <body

Assertion failed: Invalid: setMap: not an instance of Map

青春壹個敷衍的年華 提交于 2019-12-12 03:19:06
问题 I am Novice at JS and google api. I've developing a custom google map off and on this last year. Basically it loads polygon building outlines from xml, then applies kml layers for certain point of interest.(big thanks to geocodezip for point me in the right direction) Here is a working beta for loading kml layer function that stopped working. devbox But now I have been requested for it have a search box, I rebuilt it with a searchbox, but now the loading kml layer doesn't work and I see the

Google maps api marker info in sidebar

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:17:13
问题 I'm currently creating an interactive web map using Google Maps Javascript API version 3. I'm not sure if this is possible but I would like to create a series of map layers consisting of different kml files that could be toggled from the side bar. I would also like to be able to access the individual points within the kmls so that when the user clicks on a particular point, photos, text etc. can be loaded outside the map window... Any ideas on how to accomplish this? I've been searching for a

Marker scales greater than 1 ignored when using a KML layer with the Google Maps API

我怕爱的太早我们不能终老 提交于 2019-12-12 02:59:44
问题 We're using the Google Maps API and rendering a KML layer with markers. The marker icons though are not rendering at scales greater then 1 even though the scales are defined. If I use geoxml3 the scaling works but a number of other problems crop-up which I'd rather not have to deal with. It's a pretty simple KML, here's a relevant Style block: <Style id="Style1"> <IconStyle> <scale>1.875</scale> <Icon> <href>https://www.smud.org/assets/images/outage/x-lg.png</href> </Icon> </IconStyle> <