源代码编辑器
<html>
<head>
</head>
<body onload="onLoad()">
<div id="mapdiv" class="map" style="width:100%;height:350px;background-color:#F4F3F0;"></div>
JSON输出结果:<br>
<text id="result" style="width:100%;height:100px;font-family:微软雅黑;color:blue;font-size:13px;"></text>
</body>
</html>
<script type="text/javascript" language="javascript"
src="http://a.qqearth.com:81/SE_JSAPI?v=ol&uid=您的uid"></script>
<script type="text/javascript">
function onLoad(){
var map = new EV.Map("mapdiv",{deafultTools:false});//创建地图对象
var gc=new EV.ServiceGC(map);
var p=new EV.LngLat(119.212,36.023);
gc.rgcEncoding({location:p},function(data){
var result=document.getElementById("result");
result.innerHTML=JSON.stringify(data);
gc.renderRGC();//将结果显示到地图上
});
}
</script>