利用这种方法,可以在天地图上加上自己的图层,代码如下:
var map;
function init(){
var bounds = new GeoSurf.Bounds(
59.99166666666667,0.008333333333333304,152.49166666666667,90.00833333333334
);
var options = {
units: 'degrees'
};
map = new GeoSurf.PortalMap('map', options);
var ll = new GeoSurf.Layer.WMS(
"TerrainShade", "http://localhost:8080/geoserver/wms",
{
layers: 'wuhan:GG_TerrainShade',
tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom
},
{