javascript - How to hide geoxml3 markers when loading KML files? -
i have geoxml3 parser reading (multiple) kml files onto google map, , have red arrow/markers showing up. there way suppress them?
var myoptions = { center: new google.maps.latlng(39.397, -100.644), zoom: 4, maptypeid: google.maps.maptypeid.roadmap }; var map = new google.maps.map(document.getelementbyid("map_canvas"), myoptions); var geoxml = new geoxml3.parser({ map: map, singleinfowindow: false, afterparse: usethedata }); geoxml.parse('data/file1.kml'); geoxml.parse('data/file2.kml'); geoxml.parse('data/file3.kml');
there several ways suppress markers.
- the simplest remove
<point>
geometries placemarks in kml. - you can write post processing function hide them after created
- you can create custom createmarker function doesn't create markers
Comments
Post a Comment