GIF Help

Brian Johnson bjohnson at jecinc.on.ca
Fri Oct 27 08:49:08 EDT 2000


I have the ms_demo working except for the map showing the cached query on
the query page.

On the main page that shows the map, the zoom factor, zoom in, zoom out,
pan, pick list for layers, etc.  I would like to add an image at the top of
the page.  My understanding is that I would edit demo.html to do this.

If I add
<IMG SRC="jeclogob.gif" BORDER="0" WIDTH="198" HEIGHT="76" ALT="JEC Logo">
within the body section, I can't get it to show the image even if a use an
absolute path

I can't even get it to show a background image with
  <BODY BACKGROUND="jecback.gif" TEXT="#000000" LINK="#FFFFFF"
VLINK="#FFFFFF">

I've tried putting the .gif files into the ms_demo directory (where the .map
file is), my apache/htdocs directory, apache/cgi-bin directory, and even
apache/htdocs/tmp directory

If I load the demo.html file directly into my browser, it shows the gif
images but doesn't run mapserver.

If I run demo_init.html which then triggers mapserver to use demo.html - it
doesn't show the gif images - but it does show the map




-----Original Message-----
From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us]
Sent: Thursday, October 26, 2000 5:51 PM
To: bjohnson at jecinc.on.ca
Subject: RE: GIF Help


Ok, let's look at this again. Are you refering to images in a mapserver
template,
images for symbols or images as part of a map? Do you have anything network
accessible where I can look quickly?

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Brian Johnson" <bjohnson at jecinc.on.ca> 10/26/00 10:16AM >>>
The strange thing is that if I load demo.html directly, it finds my .gif
files - but if I get at demo.html through demo_init.html it can't find my
.gif files.

I've tried both absolute and relative paths but still no luck




-----Original Message-----
From: Brian Fischer [mailto:Brian.Fischer at co.sherburne.mn.us]
Sent: Thursday, October 26, 2000 9:22 AM
To: bjohnson at jecinc.on.ca
Subject: Re: GIF Help


Brian,

Take a look at the source for the images.  Mapserver looks for the images
relative to where the map file is.  I usually have to have my img
src="../images/.gif  or something like that.  Just make sure the actual
location the web page is looking for the image is the same place you have it
on the hard drive.

Just a thought at what might be wrong.

Brian

Brian Fischer
GIS Coordinator, Sherburne County
13880 US Hwy 10
Elk River, MN 55330
ph. (763) 241-7006

>>> "Brian Johnson" <bjohnson at jecinc.on.ca> 10/25/00 10:36AM >>>
And now for another topic ...

I'm trying to customize demo.html to display some plain old .gif files, but
I can't get it to work - it displays the picture placeholder and the
alternate text.

I've copied the .gif files into a bunch of diffent directories to see if
that made a difference - but no luck.

My demo_init.html is in /var/lib/apache/htdocs which refers to
/ms_demo/demo.html

The mapserver part works fine, I just can't get it to display the .gif files

I've also tried changing the .gif file properties and adding an absolute
path in the demo.html - no luck


Anyone have any luck with this?




More information about the mapserver-users mailing list