wboykinm

nonfunctioning kml in OL

Sep 10th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. map = new OpenLayers.Map("map", {'theme': null});
  2.     var gmap = new OpenLayers.Layer.GoogleNG({type: google.maps.MapTypeId.HYBRID});
  3.     var sheds = new OpenLayers.Layer.Vector("KML", {
  4.         projection: map.displayProjection,
  5.         strategies: [new OpenLayers.Strategy.Fixed()],
  6.         protocol: new OpenLayers.Protocol.HTTP({
  7.             url: "http://www.geosprocket.com/files/vthuc12a.kml",
  8.             format: new OpenLayers.Format.KML({
  9.                 extractStyles: true,
  10.                 extractAttributes: true
  11.             })
  12.         })
  13. });
  14. map.addLayers([gmap,sheds]);
Advertisement
Add Comment
Please, Sign In to add comment