kmlLayer not displaying google maps api -


first time ever posting on stackoverflow tell me , crude if doing terribly wrong anyway. created kml file maps.google.com , uploaded kml site, , trying implement google maps created, stumped have no errors not show @ all.

// north campus shuttle kml implementation var redshuttle = new google.maps.kmllayer (      'http://blazelist.org/maps/test/redshuttle.kml'      ); redshuttle.setmap(map); 

can share more code?

in example code working:

function initialize() {     var map = new google.maps.map(document.getelementbyid("map"),     {         center: new google.maps.latlng(22.7964,73.8456),         maptypeid: google.maps.maptypeid.terrain     });   /*  var kmllayer = new google.maps.kmllayer('http://blazelist.org/maps/test/redshuttle.kml',     {         suppressinfowindows: true,         map: map     });     */     var redshuttle = new google.maps.kmllayer ( 'http://blazelist.org/maps/test/redshuttle.kml' ); redshuttle.setmap(map); } 

http://jsfiddle.net/iambnz/wbzps/


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -