How to map is not repeated in WMS?

المشرف العام

Administrator
طاقم الإدارة
I have mapfile

MAP NAME "MapChiTieuDau" EXTENT 779275 2222000 788430 2233835 SIZE 800 800 UNITS dd STATUS ON IMAGETYPE PNG SHAPEPATH "/ms4w/apps/openlayers-3.8.2/DuLieuBachLongVy/Maps" IMAGECOLOR 190 232 255 FONTSET "/ms4w/apps/tutorial/fonts/fonts.list" WEB IMAGEPATH "/ms4w/tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/Test/wms/BD_ChiTietDau.map&mode=map" "wms_srs" "EPSG:4326" "wms_enable_request" "*" END #end METADATA END #end web PROJECTION "init=EPSG:4326" END SYMBOL NAME "circlef" TYPE ellipse FILLED true POINTS 10 10 END # POINTS END # SYMBOL LAYER NAME "chitieu_mt" TYPE POINT DUMP true PROJECTION "init=EPSG:4326" END METADATA "wms_title" "chitieu_mt" END DEBUG on STATUS on DATA chitieu_mt CLASSITEM "Dau" LABELITEM "Dau" CLASS Name "chitieu_mt" STYLE SYMBOL "circlef" SIZE 16 COLOR 212 3 255 END TEXT (tostring([Dau],"%.2f")) END # end of CLASS END # end of LAYER END and have javascript

var map, layer; var infoControls; var fromProjection = new OpenLayers.Projection('EPSG:4326'); var ll, popupClass, popupContentHTML; function init(){ format = 'image/png'; var bounds = new OpenLayers.Bounds(779275, 2222000,788430, 2233835); map = new OpenLayers.Map('map', { controls:[ new OpenLayers.Control.Navigation(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Attribution(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.LayerSwitcher({'ascending':false}), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.OverviewMap(), new OpenLayers.Control.KeyboardDefaults() ], numZoomLevels:7, maxExtent : bounds }); VietnamLayer = new OpenLayers.Layer.MapServer("vietnam", "/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/Test/wms/BD_ChiTietDau.map&layer=chitieu_mt&mode=map",{ layers: 'vietnam', transparent: true, srs: 'EPSG:4326', },{ isBaseLayer: false, reproject: true }); var bdhw = new OpenLayers.Layer.WMS( 'MapChiTieuDau','/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/Test/wms/BD_ChiTietDau.map&mode=map', { layers: 'chitieu_mt', srs: 'EPSG:4326', format: format }, { isBaseLayer: true, reproject: true }); map.addLayers([VietnamLayer,bdhw]); map.zoomToExtent(bounds); var vectorLayer = new OpenLayers.Layer.Vector("Overlay"); var product= ; for( var i=0;i
 
أعلى