[Mapserver-users] Help with zooming/panning

TOH CZ cz_toh at yahoo.com
Thu Mar 18 19:42:23 PST 2004


Hi, I have done a simple program woith zooming and
panning controls
However when I zoom out, the map does not center on
the point and instead, it moves away from it
Here is my mapfile

  NAME           TPGENMAP
  IMAGETYPE      png
  EXTENT         0 0 758 450
  SIZE           758 450
  SHAPEPATH      "."
  SYMBOLSET      "C:/Program Files/Apache
Group/Apache2/htdocs/tutorial/symbols/symbols35.sym"
  FONTSET        "C:/Program Files/Apache
Group/Apache2/htdocs/tutorial/fonts/fonts.list"

  WEB
    TEMPLATE  'C:/Program Files/Apache
Group/Apache2/htdocs/tutorial/tpzoom.html'
    IMAGEPATH 'C:/Program Files/Apache
Group/Apache2/htdocs/tutorial/tmp/'
    IMAGEURL  'C:/Program Files/Apache
Group/Apache2/htdocs/tutorial/tmp/'
  END

  # Start of LAYER DEFINITIONS
---------------------------------------------
  LAYER # MODIS raster layer begins here
    NAME        tpgenmap
    DATA         tpgenmap.tif
    STATUS       DEFAULT
    TYPE         RASTER
  
    END
  END # MODIS raster layer ends here

  End of LAYER DEFINITIONS
-------------------------------

END # end of map file

Note that the image I use is only a picture



	
	
		
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html



More information about the MapServer-users mailing list