Foros del Web » Programando para Internet » Javascript »

Google Maps KML

Estas en el tema de Google Maps KML en el foro de Javascript en Foros del Web. @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código Javascript : Ver original < script type = "text/javascript" >     var geoxml = null ;       function initialize ...
  #1 (permalink)  
Antiguo 22/12/2011, 08:33
 
Fecha de Ingreso: septiembre-2008
Mensajes: 211
Antigüedad: 15 años, 7 meses
Puntos: 2
Google Maps KML

Código Javascript:
Ver original
  1. <script type="text/javascript">
  2.     var geoxml = null;
  3.  
  4.     function initialize() {
  5.       var myLatlng = new google.maps.LatLng(39.397, -100.644);
  6.       var myOptions = {
  7.         zoom: 5,
  8.         center: myLatlng,
  9.         mapTypeId: google.maps.MapTypeId.ROADMAP
  10.       };
  11.       map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
  12.  
  13.     };
  14.  
  15.  
  16.  
  17.  
  18.    function load_markers_kml(){
  19.  
  20.    geoXml = new geoXML3.parser({map: map, singleInfoWindow: true});
  21.  
  22.             geoXml.parse('state_capitals.xml');
  23.  
  24.    }
  25.  
  26.  
  27.  
  28.    function hide_markers_kml(){
  29.  
  30.             geoXml.hideDocument();  // see geoxml3-modify: http://geocontext.org/pliki/2010/test-geoxml3/test2/geoxml3-modify.js
  31.  
  32.    }
  33.  
  34.    function unhide_markers_kml(){
  35.  
  36.             geoXml.showDocument();  // see geoxml3-modify: http://geocontext.org/pliki/2010/test-geoxml3/test2/geoxml3-modify.js
  37.  
  38.    }
  39.  
  40.  
  41.   </script>
  42.  
  43.  
  44. demo: http://www.geocodezip.com/geoxml3_test/geoxml3_test.html
  45.  
  46.  
  47. Alguien sabria decirme como mostrar SÓLO algunos "Placemarker" con KML?
  48.  
  49. Es decir despues de haver subido el archivo KML como hacer "show" i "hiden" de aquellos elementos del KML que esten marcados con una categoria o otra.
  50.  
  51. Prové con <Folder> pero sin exito.
  52.  
  53. Muchas gracias.

Etiquetas: google, html, js, kml, maps
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:42.