I'm using MS4W on my local server.
This are some codes inside my mymap.map file.
MAP
etc.....
OUTPUTFORMAT
NAME pnggd
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
OUTPUTFORMAT
NAME pnggd24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
END
OUTPUTFORMAT
NAME AGG
DRIVER "AGG/PNG"
IMAGEMODE RGB
END
OUTPUTFORMAT
NAME AGGA
DRIVER "AGG/PNG"
IMAGEMODE RGBA
END
etc....
and this is my code for my PNG file location to be called.
LAYER
NAME "map1"
STATUS DEFAULT
TYPE RASTER
DATA "/ms4w/Apache/htdocs/my_map/my_map_image/map1.png"
END
Here is my explorer.js file and some codes inside the file:
var view_map1 = new OpenLayers.Layer.WMS(
"map1 overlay", "http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/Apache/htdocs/my_map/mymap.map&LAYERS=map1&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png",
{
layers: 'map1',
format: 'image/png'
},{
'ratio':1,
singleTile: false,
maxExtent: my_extent,
isBaseLayer: false
})
map.addLayer(view_map1);
Is my code inside the .map file and .js file correct? or it should be not like that when to declare the OpenLayers and also for the shapefile.
Can anyone spare me some ideas and suggestions?
DATA
should point to it, andTYPE
should be polygon or line or point...