标签:
OpenLayers.Request.GET({
url: "/Panos/" + name + "/Editer" + name + ".xml",
success: function (request) {
var direction = 0;
var panoXmlFormat = new OpenLayers.Format.XML();
var panoXml = panoXmlFormat.read(request.responseXML || request.responseText);
if (panoXml.documentElement.getElementsByTagName(‘hotspot‘)) {
direction = parseFloat(panoXml.documentElement.getElementsByTagName(‘hotspot‘)[0].getAttribute(‘direction‘));
}
ShowPanorama(name, evt.feature.geometry, direction);
},
failure: function () {
},
scope: this
});
标签:
原文地址:http://www.cnblogs.com/firekylin/p/4234804.html