I am removing open layers and trying to use google maps instead. My javascript creates a layer as under
var options = {
"projection": new OpenLayers.Projection(DispProjection),
"strategies": [ new OpenLayers.Strategy.BBOX( {
"ratio": 2,
"resFactor": 3
} )
],
"protocol": new OpenLayers.Protocol.HTTP( {
"url": "kml.asmx",
"params": {},
"format": new OpenLayers.Format.KML( {
"extractStyles": true,
"extractAttributes": true,
"maxDepth": 2
} )
} )};
var itslayer = new OpenLayers.Layer.Vector(
l.name,
options );
The call to "kml.asmx" is in my .NET code which is a HttpHandler. To transform this code, how do I use the 'protocol' in google maps? I have tried to do this which clearly does not work
var itslayer = new google.maps.KmlLayer("kml.asmx");
Please help.