geoxml3

Load a map with geoxml using parseKmlString() and parse()

你离开我真会死。 提交于 2021-02-11 13:49:40
问题 OLD POST How can I use parse and parseKmlString together?? I need show a map loading one KML file (I use parse(<kml_file>) ) and two XML string (I use parseKmlString(<xml_string>) ). How I use useTheData in afterParse property?? I don't know how I must manage this case. Can I use only one geoxml = new geoxml.parser() for three "layers"? How would I manage doc parameter in userTheData to get a "KML file layer" or "XML string layer"? PD: Sorry for my english. It's very difficult to explain what

GeoXML3 - Open an info window automatically

一世执手 提交于 2020-02-02 13:35:10
问题 I have created a polygon and would like the info window to open automatically on load. How do I do this? This is what I have so far: var geoxml = null; function initialize() { infoWindow = new google.maps.InfoWindow(); var myLatlng = new google.maps.LatLng(100.9530044, 110.8574693); var myOptions = { maxZoom: 13, center: myLatlng, streetViewControl: false, zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL }, mapTypeId: google.maps.MapTypeId.ROADMAP, }; map = new google.maps.Map

GeoXML3 - Open an info window automatically

安稳与你 提交于 2020-02-02 13:34:07
问题 I have created a polygon and would like the info window to open automatically on load. How do I do this? This is what I have so far: var geoxml = null; function initialize() { infoWindow = new google.maps.InfoWindow(); var myLatlng = new google.maps.LatLng(100.9530044, 110.8574693); var myOptions = { maxZoom: 13, center: myLatlng, streetViewControl: false, zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL }, mapTypeId: google.maps.MapTypeId.ROADMAP, }; map = new google.maps.Map

Display kml file on a map

时间秒杀一切 提交于 2020-01-07 04:43:21
问题 In my application I would like to display a kml file over the google maps using google map api v3. While I was searching for the solution I came across geoxml3, BUT i don't really understood its use and for what is used. Can anyone explain if its the solution to use geoxml3 to overlay kml file stored locally in my application. Or else what is the main use of geoxml3? 回答1: The Google Maps API v3 method for displaying KML (using tile based rendering) is KmlLayer Developer's Guide (including

Adding custom html to infowindow of KML data

一笑奈何 提交于 2020-01-06 12:07:27
问题 I am hoping a Google maps (geoxml3) expert may be able to help. What I am trying to do is really quite simple, but i'm just not savvy enough with coding to accomplish it. I have a simple map using the google maps api v3 and geoxml3 which loads some KML data. I then have a custom generated sidebar which corresponds to each placemark. I would simply like to add zoom in and zoom out buttons to the infowindow like in the following example. http://www.geocodezip.com/v3_MW_example_map3_zoom.html I

GeoXML3 accessing KML attribute datas

和自甴很熟 提交于 2019-12-25 08:34:03
问题 My KML File has the following format: <Placemark> <Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style> <ExtendedData><SchemaData schemaUrl="#seb"> <SimpleData name="PR0">CORS</SimpleData> <SimpleData name="PR1">BRB</SimpleData> <SimpleData name="PR2">F15</SimpleData> </SchemaData></ExtendedData> <MultiGeometry><Polygon><altitudeMode>clampToGround</altitudeMode><outerBoundaryIs><LinearRing><altitudeMode>clampToGround</altitudeMode><coordinates>71

Incompatibility with geocodezip map in internet explorer (any version)

青春壹個敷衍的年華 提交于 2019-12-25 01:36:00
问题 I have this map, as an answer of this other question. It uses geocodezip and works well, but it is not working in Internet Explorer. Can you suggest me any solution? This is the link of the map: http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=http://www.geocodezip.com/xmlProxy060215.asp?https%3A%2F%2Fmaps.google.com%2Fmaps%2Fms%3Fhl%3Den%26ie%3DUTF8%26oe%3DUTF8%26authuser%3D0%26msa%3D0%26output%3Dkml%26msid%3D216330649072490208011.0004daf6e6bfde8dd857d This is

How to change color polygon(kml+geoXml)?

半世苍凉 提交于 2019-12-24 09:49:29
问题 I show KML map on my site with help geoXml3. There are polygons and markers. But when I want to do something with polygons on click him, nothing happens. I want to change color pressed polygon and change color siblings polygons. Can help me? It is my code: function initialize(){ myLatLng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { center: {lat: 55.864237, lng: -4.251806}, zoom: 12, scrollwheel: false, mapTypeId: google.maps.MapTypeId.HYBRID }; map = new google.maps.Map

geoXML3 add custom icon for marker

随声附和 提交于 2019-12-13 20:13:37
问题 I am trying to add a custom icon for the marker after parsing a kml file with geoXML3, but I cannot figure out how. I cannot add specifications in the kml files, so I am trying to do it with Javascript. I didn't manage to find any useful documentation about it. This is my kml loading: myparser.parse('http://mywebsite.com/myparser/last_feed/now.kml'); var myparser= new geoXML3.parser({map: map,zoom:7,icon: image}); 回答1: To change all the marker icons using geoxml3, set the markerOptions.icon

KML overriding default view after loading

这一生的挚爱 提交于 2019-12-12 02:54:13
问题 I am using geoxml3 from local machine to load kml. However the default view center is changing once kml is loaded. I did try adding line "preserveViewport: true" but still I get full view of kml after loading. any suggestion to stop this. Here is my code <html> <head> <title>Google Map</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> html, body, #map { margin: 0; padding: 0; height: 100%; } </style> <script src="http://code.jquery.com