[mapserver-users] asking help

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Aug 18 05:05:39 PDT 2021


Hi Boubacar,

Since you are using MS4W, here are some related points for you:

- you are missing the "MAP=" part of your request, such as:

 
https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&MODE=map&LAYERS=all

- on your MS4W home page (http://127.0.0.1) you can see a link to "open 
map viewer in new window" (which uses the OpenLayers template) such as:

 
https://ms4w.dev/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&MODE=browse&TEMPLATE=openlayers&LAYERS=all

You can modify that url for your local mapfile, such as:

 
http://127.0.0.1/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/local.map&MODE=browse&TEMPLATE=openlayers&LAYERS=all

Make sure that your "MAP=" path to your local mapfile is correct.


Thank-you for using MS4W.
"MS4W: open doors as well as windows"



-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-08-18 6:59 a.m., Boubacar Bah wrote:
>   hello how are you ; i'm using windows, and i'm using openlayer
> and l use this url: 
> http:\\localhost\cgi-bin\mapserv.exe?\C:\ms4w\Apache\hdocs\exe.map&layer=quinzefevrier&mode=map
> this is my web section in my mapfile:
> 
> WEB
>          IMAGEPATH  "/ms4w/tmp/ms_tmp/"
>          IMAGEURL  "/ms_tmp/"
>      END  # WEB
> 
> 





More information about the MapServer-users mailing list