Viewing 1 replies (of 1 total)
  • Thread Starter jermilbfc

    (@jermilbfc)

    Ok i succeed by editing the “function.js” file… But excuse my dust, i think it’s not the good way at all…

    // Create the map
    			try {
    				$.bgmp.map = new google.maps.Map( $.bgmp.canvas, mapOptions );
    				var ctaLayer = new google.maps.KmlLayer({
    				    url: 'https://developers.google.com/maps/documentation/javascript/examples/kml/westcampus.kml',
    				    map: $.bgmp.map
    				  });
    			} catch ( e ) {
    				$( $.bgmp.canvas ).html( $.bgmp.name + " error: couln't build map." );
    
    				if ( window.console ) {
    					console.log( $.bgmp.prefix + 'buildMap: ' + e );
    				}
    
    				return;
    			}

    I’d like an advice on how to inject properly :

    var ctaLayer = new google.maps.KmlLayer({
    				    url: 'https://developers.google.com/maps/documentation/javascript/examples/kml/westcampus.kml',
    				    map: $.bgmp.map
    				  });

    …Without breaking the updates..

Viewing 1 replies (of 1 total)
  • The topic ‘KML support’ is closed to new replies.