function newHouseMap(){ |
//创建地图 |
var options = {numZoomLevels: 3}; |
houseLayer = new OpenLayers.Layer.Image( |
'City Lights' , |
'north/north.png' , |
//114.40051,30.52704,114.40143,30.52656 |
new OpenLayers.Bounds(-4.7935,-3.0217,82.0725,40.1759), |
new OpenLayers.Size(775, 400), |
options |
); |
map.addLayer(houseLayer); |
map.setBaseLayer(houseLayer); |
$( "#goBack" ).show(); |
map.zoomToMaxExtent(); |
} |