日期:2014-05-18 浏览次数:20745 次
var host = "http://192.168.0.167:8082/geoserver/wms";
var map;
var untiled;
var tiled;
var imgurl = WebRoot + "admin/js/img/";
//标注图标
var icon = {
0 :imgurl+"hong.png",
1 :imgurl+"huang.png",
2 :imgurl+"fei.png",
3 :imgurl+"nui.png"
};
//画线图层
var lineVectors =new OpenLayers.Layer.Vector("line");
//画点图层
var pointVectors = new OpenLayers.Layer.Vector("point");
//标注图层
var markers = new OpenLayers.Layer.Markers( "markers" );
//var WebRoot = "<c:url value="">";
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5;
OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;
OpenLayers.ImgPath = WebRoot + "admin/js/img/";
this.init=function(){
format = 'image/png';
var bounds = new OpenLayers.Bounds(
73.447, 6.319,
135.086, 53.558
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.24077734375,
projection: "EPSG:2010",
resolutions: [
0.1,
// 0.09,
0.08,
// 0.07,
0.06,
// 0.05,
0.04,
// 0.03,
&nbs